Error: COMPILER_WARNING (CWE-252): [#def1] qca-2.3.10/examples/saslclient/saslclient.cpp: scope_hint: In function ‘QString prompt(const QString&)’ qca-2.3.10/examples/saslclient/saslclient.cpp:41:10: warning[-Wunused-result]: ignoring return value of ‘char* fgets(char*, int, FILE*)’ declared with attribute ‘warn_unused_result’ # 41 | fgets(line, 255, stdin); # | ~~~~~^~~~~~~~~~~~~~~~~~ # 39| fflush(stdout); # 40| char line[256]; # 41|-> fgets(line, 255, stdin); # 42| QString result = QString::fromLatin1(line); # 43| if (result[result.length() - 1] == QLatin1Char('\n')) Error: COMPILER_WARNING (CWE-843): [#def2] qca-2.3.10/plugins/qca-cyrus-sasl/qca-cyrus-sasl.cpp: scope_hint: In member function ‘virtual void saslQCAPlugin::saslContext::startServer(const QString&, bool)’ qca-2.3.10/plugins/qca-cyrus-sasl/qca-cyrus-sasl.cpp:731:32: warning[-Wcast-function-type]: cast between incompatible function types from ‘int (*)(sasl_conn_t*, void*, const char*, unsigned int, const char*, unsigned int, const char*, unsigned int, propctx*)’ {aka ‘int (*)(sasl_conn*, void*, const char*, unsigned int, const char*, unsigned int, const char*, unsigned int, propctx*)’} to ‘int (*)()’ # 731 | callbacks[0].proc = (int (*)())scb_checkauth; # | ^~~~~~~~~~~~~~~~~~~~~~~~ # 729| # 730| callbacks[0].id = SASL_CB_PROXY_POLICY; # 731|-> callbacks[0].proc = (int (*)())scb_checkauth; # 732| callbacks[0].context = this; # 733| Error: COMPILER_WARNING (CWE-477): [#def3] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘void {anonymous}::DsaDeleter::operator()(DSA*)’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:58:21: warning[-Wdeprecated-declarations]: ‘void DSA_free(DSA*)’ is deprecated: Since OpenSSL 3.0 # 58 | DSA_free(pointer); # | ~~~~~~~~^~~~~~~~~ /usr/include/openssl/x509.h:37: included_from: Included from here. /usr/include/openssl/pem.h:23: included_from: Included from here. qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:39: included_from: Included from here. /usr/include/openssl/dsa.h:132:28: note: declared here # 132 | OSSL_DEPRECATEDIN_3_0 void DSA_free(DSA *r); # | ^~~~~~~~ # 56| { # 57| if (pointer) # 58|-> DSA_free(pointer); # 59| } # 60| }; Error: COMPILER_WARNING (CWE-477): [#def4] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In constructor ‘opensslQCAPlugin::opensslHMACContext::opensslHMACContext(const EVP_MD*, QCA::Provider*, const QString&)’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1306:35: warning[-Wdeprecated-declarations]: ‘HMAC_CTX* HMAC_CTX_new()’ is deprecated: Since OpenSSL 3.0 # 1306 | m_context = HMAC_CTX_new(); # | ~~~~~~~~~~~~^~ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:30: included_from: Included from here. /usr/include/openssl/hmac.h:33:33: note: declared here # 33 | OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void); # | ^~~~~~~~~~~~ # 1304| { # 1305| m_algorithm = algorithm; # 1306|-> m_context = HMAC_CTX_new(); # 1307| } # 1308| Error: COMPILER_WARNING (CWE-477): [#def5] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In copy constructor ‘opensslQCAPlugin::opensslHMACContext::opensslHMACContext(const opensslQCAPlugin::opensslHMACContext&)’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1313:35: warning[-Wdeprecated-declarations]: ‘HMAC_CTX* HMAC_CTX_new()’ is deprecated: Since OpenSSL 3.0 # 1313 | m_context = HMAC_CTX_new(); # | ~~~~~~~~~~~~^~ /usr/include/openssl/hmac.h:33:33: note: declared here # 33 | OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void); # | ^~~~~~~~~~~~ # 1311| { # 1312| m_algorithm = other.m_algorithm; # 1313|-> m_context = HMAC_CTX_new(); # 1314| HMAC_CTX_copy(m_context, other.m_context); # 1315| } Error: COMPILER_WARNING (CWE-477): [#def6] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1314:22: warning[-Wdeprecated-declarations]: ‘int HMAC_CTX_copy(HMAC_CTX*, HMAC_CTX*)’ is deprecated: Since OpenSSL 3.0 # 1314 | HMAC_CTX_copy(m_context, other.m_context); # | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/hmac.h:49:34: note: declared here # 49 | OSSL_DEPRECATEDIN_3_0 __owur int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx); # | ^~~~~~~~~~~~~ # 1312| m_algorithm = other.m_algorithm; # 1313| m_context = HMAC_CTX_new(); # 1314|-> HMAC_CTX_copy(m_context, other.m_context); # 1315| } # 1316| Error: COMPILER_WARNING (CWE-477): [#def7] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In destructor ‘virtual opensslQCAPlugin::opensslHMACContext::~opensslHMACContext()’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1319:22: warning[-Wdeprecated-declarations]: ‘void HMAC_CTX_free(HMAC_CTX*)’ is deprecated: Since OpenSSL 3.0 # 1319 | HMAC_CTX_free(m_context); # | ~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/openssl/hmac.h:35:28: note: declared here # 35 | OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_free(HMAC_CTX *ctx); # | ^~~~~~~~~~~~~ # 1317| ~opensslHMACContext() override # 1318| { # 1319|-> HMAC_CTX_free(m_context); # 1320| } # 1321| Error: COMPILER_WARNING (CWE-477): [#def8] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::opensslHMACContext::setup(const QCA::SymmetricKey&)’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1324:21: warning[-Wdeprecated-declarations]: ‘int HMAC_Init_ex(HMAC_CTX*, const void*, int, const EVP_MD*, ENGINE*)’ is deprecated: Since OpenSSL 3.0 # 1324 | HMAC_Init_ex(m_context, key.data(), key.size(), m_algorithm, nullptr); # | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/hmac.h:43:27: note: declared here # 43 | OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, # | ^~~~~~~~~~~~ # 1322| void setup(const SymmetricKey &key) override # 1323| { # 1324|-> HMAC_Init_ex(m_context, key.data(), key.size(), m_algorithm, nullptr); # 1325| } # 1326| Error: COMPILER_WARNING (CWE-477): [#def9] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::opensslHMACContext::update(const QCA::MemoryRegion&)’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1334:20: warning[-Wdeprecated-declarations]: ‘int HMAC_Update(HMAC_CTX*, const unsigned char*, size_t)’ is deprecated: Since OpenSSL 3.0 # 1334 | HMAC_Update(m_context, (unsigned char *)a.data(), a.size()); # | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/hmac.h:45:27: note: declared here # 45 | OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, # | ^~~~~~~~~~~ # 1332| void update(const MemoryRegion &a) override # 1333| { # 1334|-> HMAC_Update(m_context, (unsigned char *)a.data(), a.size()); # 1335| } # 1336| Error: COMPILER_WARNING (CWE-477): [#def10] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::opensslHMACContext::final(QCA::MemoryRegion*)’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1340:19: warning[-Wdeprecated-declarations]: ‘int HMAC_Final(HMAC_CTX*, unsigned char*, unsigned int*)’ is deprecated: Since OpenSSL 3.0 # 1340 | HMAC_Final(m_context, (unsigned char *)sa.data(), nullptr); # | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/hmac.h:47:27: note: declared here # 47 | OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, # | ^~~~~~~~~~ # 1338| { # 1339| SecureArray sa(EVP_MD_size(m_algorithm), 0); # 1340|-> HMAC_Final(m_context, (unsigned char *)sa.data(), nullptr); # 1341| HMAC_CTX_reset(m_context); # 1342| *out = sa; Error: COMPILER_WARNING (CWE-477): [#def11] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1341:23: warning[-Wdeprecated-declarations]: ‘int HMAC_CTX_reset(HMAC_CTX*)’ is deprecated: Since OpenSSL 3.0 # 1341 | HMAC_CTX_reset(m_context); # | ~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/openssl/hmac.h:34:27: note: declared here # 34 | OSSL_DEPRECATEDIN_3_0 int HMAC_CTX_reset(HMAC_CTX *ctx); # | ^~~~~~~~~~~~~~ # 1339| SecureArray sa(EVP_MD_size(m_algorithm), 0); # 1340| HMAC_Final(m_context, (unsigned char *)sa.data(), nullptr); # 1341|-> HMAC_CTX_reset(m_context); # 1342| *out = sa; # 1343| } Error: COMPILER_WARNING (CWE-477): [#def12] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘QCA::SecureArray opensslQCAPlugin::EVPKey::endSign()’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1464:55: warning[-Wdeprecated-declarations]: ‘const rsa_st* EVP_PKEY_get0_RSA(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 1464 | const RSA *rsa = EVP_PKEY_get0_RSA(pkey); # | ~~~~~~~~~~~~~~~~~^~~~~~ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:29: included_from: Included from here. /usr/include/openssl/evp.h:1405:22: note: declared here # 1405 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~~ # 1462| # 1463| if (type == EVP_PKEY_RSA) { # 1464|-> const RSA *rsa = EVP_PKEY_get0_RSA(pkey); # 1465| if (RSA_private_encrypt(raw.size(), # 1466| (unsigned char *)raw.data(), Error: COMPILER_WARNING (CWE-477): [#def13] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1465:44: warning[-Wdeprecated-declarations]: ‘int RSA_private_encrypt(int, const unsigned char*, unsigned char*, RSA*, int)’ is deprecated: Since OpenSSL 3.0 # 1465 | if (RSA_private_encrypt(raw.size(), # | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ # 1466 | (unsigned char *)raw.data(), # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1467 | (unsigned char *)out.data(), # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1468 | (RSA *)rsa, # | ~~~~~~~~~~~ # 1469 | RSA_PKCS1_PADDING) == -1) { # | ~~~~~~~~~~~~~~~~~~ /usr/include/openssl/x509.h:36: included_from: Included from here. /usr/include/openssl/rsa.h:296:5: note: declared here # 296 | int RSA_private_encrypt(int flen, const unsigned char *from, unsigned char *to, # | ^~~~~~~~~~~~~~~~~~~ # 1463| if (type == EVP_PKEY_RSA) { # 1464| const RSA *rsa = EVP_PKEY_get0_RSA(pkey); # 1465|-> if (RSA_private_encrypt(raw.size(), # 1466| (unsigned char *)raw.data(), # 1467| (unsigned char *)out.data(), Error: COMPILER_WARNING (CWE-477): [#def14] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘bool opensslQCAPlugin::EVPKey::endVerify(const QCA::SecureArray&)’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1503:55: warning[-Wdeprecated-declarations]: ‘const rsa_st* EVP_PKEY_get0_RSA(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 1503 | const RSA *rsa = EVP_PKEY_get0_RSA(pkey); # | ~~~~~~~~~~~~~~~~~^~~~~~ /usr/include/openssl/evp.h:1405:22: note: declared here # 1405 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~~ # 1501| # 1502| if (type == EVP_PKEY_RSA) { # 1503|-> const RSA *rsa = EVP_PKEY_get0_RSA(pkey); # 1504| if ((len = RSA_public_decrypt(sig.size(), # 1505| (unsigned char *)sig.data(), Error: COMPILER_WARNING (CWE-477): [#def15] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1504:50: warning[-Wdeprecated-declarations]: ‘int RSA_public_decrypt(int, const unsigned char*, unsigned char*, RSA*, int)’ is deprecated: Since OpenSSL 3.0 # 1504 | if ((len = RSA_public_decrypt(sig.size(), # | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ # 1505 | (unsigned char *)sig.data(), # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1506 | (unsigned char *)out.data(), # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1507 | (RSA *)rsa, # | ~~~~~~~~~~~ # 1508 | RSA_PKCS1_PADDING)) == -1) { # | ~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:299:5: note: declared here # 299 | int RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to, # | ^~~~~~~~~~~~~~~~~~ # 1502| if (type == EVP_PKEY_RSA) { # 1503| const RSA *rsa = EVP_PKEY_get0_RSA(pkey); # 1504|-> if ((len = RSA_public_decrypt(sig.size(), # 1505| (unsigned char *)sig.data(), # 1506| (unsigned char *)out.data(), Error: COMPILER_WARNING (CWE-477): [#def16] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In function ‘bool opensslQCAPlugin::make_dlgroup(const QByteArray&, int, int, DLParams*)’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1636:49: warning[-Wdeprecated-declarations]: ‘DSA* DSA_new()’ is deprecated: Since OpenSSL 3.0 # 1636 | std::unique_ptr<DSA, DsaDeleter> dsa(DSA_new()); # | ~~~~~~~^~ /usr/include/openssl/dsa.h:130:28: note: declared here # 130 | OSSL_DEPRECATEDIN_3_0 DSA *DSA_new(void); # | ^~~~~~~ # 1634| { # 1635| int ret_counter; # 1636|-> std::unique_ptr<DSA, DsaDeleter> dsa(DSA_new()); # 1637| if (!dsa) # 1638| return false; Error: COMPILER_WARNING (CWE-477): [#def17] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1640:35: warning[-Wdeprecated-declarations]: ‘int DSA_generate_parameters_ex(DSA*, int, const unsigned char*, int, int*, long unsigned int*, BN_GENCB*)’ is deprecated: Since OpenSSL 3.0 # 1640 | if (DSA_generate_parameters_ex( # | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ # 1641 | dsa.get(), bits, (const unsigned char *)seed.data(), seed.size(), &ret_counter, nullptr, nullptr) != 1) # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dsa.h:172:27: note: declared here # 172 | OSSL_DEPRECATEDIN_3_0 int DSA_generate_parameters_ex(DSA *dsa, int bits, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 1638| return false; # 1639| # 1640|-> if (DSA_generate_parameters_ex( # 1641| dsa.get(), bits, (const unsigned char *)seed.data(), seed.size(), &ret_counter, nullptr, nullptr) != 1) # 1642| return false; Error: COMPILER_WARNING (CWE-477): [#def18] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1648:17: warning[-Wdeprecated-declarations]: ‘void DSA_get0_pqg(const DSA*, const BIGNUM**, const BIGNUM**, const BIGNUM**)’ is deprecated: Since OpenSSL 3.0 # 1648 | DSA_get0_pqg(dsa.get(), &bnp, &bnq, &bng); # | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dsa.h:206:28: note: declared here # 206 | OSSL_DEPRECATEDIN_3_0 void DSA_get0_pqg(const DSA *d, const BIGNUM **p, # | ^~~~~~~~~~~~ # 1646| # 1647| const BIGNUM *bnp, *bnq, *bng; # 1648|-> DSA_get0_pqg(dsa.get(), &bnp, &bnq, &bng); # 1649| params->p = bn2bi(bnp); # 1650| params->q = bn2bi(bnq); Error: COMPILER_WARNING (CWE-477): [#def19] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In lambda function qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1823:17: warning[-Wdeprecated-declarations]: ‘void RSA_free(RSA*)’ is deprecated: Since OpenSSL 3.0 # 1823 | RSA_free((RSA *)pointer); # | ~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:304:28: note: declared here # 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); # | ^~~~~~~~ # 1821| static const auto RsaDeleter = [](RSA *pointer) { # 1822| if (pointer) # 1823|-> RSA_free((RSA *)pointer); # 1824| }; # 1825| Error: COMPILER_WARNING (CWE-477): [#def20] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In destructor ‘virtual opensslQCAPlugin::RSAKeyMaker::~RSAKeyMaker()’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1851:21: warning[-Wdeprecated-declarations]: ‘void RSA_free(RSA*)’ is deprecated: Since OpenSSL 3.0 # 1851 | RSA_free(result); # | ~~~~~~~~^~~~~~~~ /usr/include/openssl/rsa.h:304:28: note: declared here # 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); # | ^~~~~~~~ # 1849| wait(); # 1850| if (result) # 1851|-> RSA_free(result); # 1852| } # 1853| Error: COMPILER_WARNING (CWE-477): [#def21] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::RSAKeyMaker::run()’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1856:63: warning[-Wdeprecated-declarations]: ‘RSA* RSA_new()’ is deprecated: Since OpenSSL 3.0 # 1856 | std::unique_ptr<RSA, decltype(RsaDeleter)> rsa(RSA_new(), RsaDeleter); # | ~~~~~~~^~ /usr/include/openssl/rsa.h:212:28: note: declared here # 212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); # | ^~~~~~~ # 1854| void run() override # 1855| { # 1856|-> std::unique_ptr<RSA, decltype(RsaDeleter)> rsa(RSA_new(), RsaDeleter); # 1857| if (!rsa) # 1858| return; Error: COMPILER_WARNING (CWE-477): [#def22] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1868:32: warning[-Wdeprecated-declarations]: ‘int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)’ is deprecated: Since OpenSSL 3.0 # 1868 | if (RSA_generate_key_ex(rsa.get(), bits, e.get(), nullptr) == 0) { # | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:271:27: note: declared here # 271 | OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, # | ^~~~~~~~~~~~~~~~~~~ # 1866| return; # 1867| # 1868|-> if (RSA_generate_key_ex(rsa.get(), bits, e.get(), nullptr) == 0) { # 1869| return; # 1870| } Error: COMPILER_WARNING (CWE-477): [#def23] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::RSAKey::convertToPublic()’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1943:52: warning[-Wdeprecated-declarations]: ‘const rsa_st* EVP_PKEY_get0_RSA(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 1943 | const RSA *rsa_pkey = EVP_PKEY_get0_RSA(evp.pkey); # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/openssl/evp.h:1405:22: note: declared here # 1405 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~~ # 1941| # 1942| // extract the public key into DER format # 1943|-> const RSA *rsa_pkey = EVP_PKEY_get0_RSA(evp.pkey); # 1944| int len = i2d_RSAPublicKey(rsa_pkey, nullptr); # 1945| SecureArray result(len); Error: COMPILER_WARNING (CWE-477): [#def24] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1944:51: warning[-Wdeprecated-declarations]: ‘int i2d_RSAPublicKey(const RSA*, unsigned char**)’ is deprecated: Since OpenSSL 3.0 # 1944 | int len = i2d_RSAPublicKey(rsa_pkey, nullptr); # | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/openssl/objects.h:21: included_from: Included from here. /usr/include/openssl/evp.h:47: included_from: Included from here. /usr/include/openssl/rsa.h:318:1: note: declared here # 318 | DECLARE_ASN1_ENCODE_FUNCTIONS_name_attr(OSSL_DEPRECATEDIN_3_0, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1942| // extract the public key into DER format # 1943| const RSA *rsa_pkey = EVP_PKEY_get0_RSA(evp.pkey); # 1944|-> int len = i2d_RSAPublicKey(rsa_pkey, nullptr); # 1945| SecureArray result(len); # 1946| unsigned char *p = (unsigned char *)result.data(); Error: COMPILER_WARNING (CWE-477): [#def25] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1947:25: warning[-Wdeprecated-declarations]: ‘int i2d_RSAPublicKey(const RSA*, unsigned char**)’ is deprecated: Since OpenSSL 3.0 # 1947 | i2d_RSAPublicKey(rsa_pkey, &p); # | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:318:1: note: declared here # 318 | DECLARE_ASN1_ENCODE_FUNCTIONS_name_attr(OSSL_DEPRECATEDIN_3_0, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1945| SecureArray result(len); # 1946| unsigned char *p = (unsigned char *)result.data(); # 1947|-> i2d_RSAPublicKey(rsa_pkey, &p); # 1948| p = (unsigned char *)result.data(); # 1949| Error: COMPILER_WARNING (CWE-477): [#def26] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1952:36: warning[-Wdeprecated-declarations]: ‘RSA* d2i_RSAPublicKey(RSA**, const unsigned char**, long int)’ is deprecated: Since OpenSSL 3.0 # 1952 | RSA *rsa = d2i_RSAPublicKey(nullptr, (const unsigned char **)&p, result.size()); # | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:318:1: note: declared here # 318 | DECLARE_ASN1_ENCODE_FUNCTIONS_name_attr(OSSL_DEPRECATEDIN_3_0, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 1950| // put the DER public key back into openssl # 1951| evp.reset(); # 1952|-> RSA *rsa = d2i_RSAPublicKey(nullptr, (const unsigned char **)&p, result.size()); # 1953| evp.pkey = EVP_PKEY_new(); # 1954| EVP_PKEY_assign_RSA(evp.pkey, rsa); Error: COMPILER_WARNING (CWE-477): [#def27] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual int opensslQCAPlugin::RSAKey::maximumEncryptSize(QCA::EncryptionAlgorithm) const’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1965:44: warning[-Wdeprecated-declarations]: ‘const rsa_st* EVP_PKEY_get0_RSA(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 1965 | const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/openssl/evp.h:1405:22: note: declared here # 1405 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~~ # 1963| int maximumEncryptSize(EncryptionAlgorithm alg) const override # 1964| { # 1965|-> const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # 1966| int size = 0; # 1967| switch (alg) { Error: COMPILER_WARNING (CWE-477): [#def28] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1969:28: warning[-Wdeprecated-declarations]: ‘int RSA_size(const RSA*)’ is deprecated: Since OpenSSL 3.0 # 1969 | size = RSA_size(rsa) - 11 - 1; # | ~~~~~~~~^~~~~ /usr/include/openssl/rsa.h:215:27: note: declared here # 215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); # | ^~~~~~~~ # 1967| switch (alg) { # 1968| case EME_PKCS1v15: # 1969|-> size = RSA_size(rsa) - 11 - 1; # 1970| break; # 1971| case EME_PKCS1_OAEP: Error: COMPILER_WARNING (CWE-477): [#def29] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1972:28: warning[-Wdeprecated-declarations]: ‘int RSA_size(const RSA*)’ is deprecated: Since OpenSSL 3.0 # 1972 | size = RSA_size(rsa) - 41 - 1; # | ~~~~~~~~^~~~~ /usr/include/openssl/rsa.h:215:27: note: declared here # 215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); # | ^~~~~~~~ # 1970| break; # 1971| case EME_PKCS1_OAEP: # 1972|-> size = RSA_size(rsa) - 41 - 1; # 1973| break; # 1974| case EME_PKCS1v15_SSL: Error: COMPILER_WARNING (CWE-477): [#def30] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1975:28: warning[-Wdeprecated-declarations]: ‘int RSA_size(const RSA*)’ is deprecated: Since OpenSSL 3.0 # 1975 | size = RSA_size(rsa) - 11 - 1; # | ~~~~~~~~^~~~~ /usr/include/openssl/rsa.h:215:27: note: declared here # 215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); # | ^~~~~~~~ # 1973| break; # 1974| case EME_PKCS1v15_SSL: # 1975|-> size = RSA_size(rsa) - 11 - 1; # 1976| break; # 1977| case EME_NO_PADDING: Error: COMPILER_WARNING (CWE-477): [#def31] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1978:28: warning[-Wdeprecated-declarations]: ‘int RSA_size(const RSA*)’ is deprecated: Since OpenSSL 3.0 # 1978 | size = RSA_size(rsa) - 1; # | ~~~~~~~~^~~~~ /usr/include/openssl/rsa.h:215:27: note: declared here # 215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); # | ^~~~~~~~ # 1976| break; # 1977| case EME_NO_PADDING: # 1978|-> size = RSA_size(rsa) - 1; # 1979| break; # 1980| } Error: COMPILER_WARNING (CWE-477): [#def32] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::SecureArray opensslQCAPlugin::RSAKey::encrypt(const QCA::SecureArray&, QCA::EncryptionAlgorithm)’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1987:44: warning[-Wdeprecated-declarations]: ‘const rsa_st* EVP_PKEY_get0_RSA(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 1987 | const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/openssl/evp.h:1405:22: note: declared here # 1405 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~~ # 1985| SecureArray encrypt(const SecureArray &in, EncryptionAlgorithm alg) override # 1986| { # 1987|-> const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # 1988| SecureArray buf = in; # 1989| int max = maximumEncryptSize(alg); Error: COMPILER_WARNING (CWE-477): [#def33] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:1993:36: warning[-Wdeprecated-declarations]: ‘int RSA_size(const RSA*)’ is deprecated: Since OpenSSL 3.0 # 1993 | SecureArray result(RSA_size(rsa)); # | ~~~~~~~~^~~~~ /usr/include/openssl/rsa.h:215:27: note: declared here # 215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); # | ^~~~~~~~ # 1991| if (buf.size() > max) # 1992| buf.resize(max); # 1993|-> SecureArray result(RSA_size(rsa)); # 1994| # 1995| int pad; Error: COMPILER_WARNING (CWE-477): [#def34] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2020:38: warning[-Wdeprecated-declarations]: ‘int RSA_private_encrypt(int, const unsigned char*, unsigned char*, RSA*, int)’ is deprecated: Since OpenSSL 3.0 # 2020 | ret = RSA_private_encrypt( # | ~~~~~~~~~~~~~~~~~~~^ # 2021 | buf.size(), (unsigned char *)buf.data(), (unsigned char *)result.data(), (RSA *)rsa, pad); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:296:5: note: declared here # 296 | int RSA_private_encrypt(int flen, const unsigned char *from, unsigned char *to, # | ^~~~~~~~~~~~~~~~~~~ # 2018| int ret; # 2019| if (isPrivate()) # 2020|-> ret = RSA_private_encrypt( # 2021| buf.size(), (unsigned char *)buf.data(), (unsigned char *)result.data(), (RSA *)rsa, pad); # 2022| else Error: COMPILER_WARNING (CWE-477): [#def35] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2023:37: warning[-Wdeprecated-declarations]: ‘int RSA_public_encrypt(int, const unsigned char*, unsigned char*, RSA*, int)’ is deprecated: Since OpenSSL 3.0 # 2023 | ret = RSA_public_encrypt( # | ~~~~~~~~~~~~~~~~~~^ # 2024 | buf.size(), (unsigned char *)buf.data(), (unsigned char *)result.data(), (RSA *)rsa, pad); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:293:5: note: declared here # 293 | int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, # | ^~~~~~~~~~~~~~~~~~ # 2021| buf.size(), (unsigned char *)buf.data(), (unsigned char *)result.data(), (RSA *)rsa, pad); # 2022| else # 2023|-> ret = RSA_public_encrypt( # 2024| buf.size(), (unsigned char *)buf.data(), (unsigned char *)result.data(), (RSA *)rsa, pad); # 2025| Error: COMPILER_WARNING (CWE-477): [#def36] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual bool opensslQCAPlugin::RSAKey::decrypt(const QCA::SecureArray&, QCA::SecureArray*, QCA::EncryptionAlgorithm)’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2035:44: warning[-Wdeprecated-declarations]: ‘const rsa_st* EVP_PKEY_get0_RSA(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 2035 | const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/openssl/evp.h:1405:22: note: declared here # 1405 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~~ # 2033| bool decrypt(const SecureArray &in, SecureArray *out, EncryptionAlgorithm alg) override # 2034| { # 2035|-> const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # 2036| SecureArray result(RSA_size(rsa)); # 2037| int pad; Error: COMPILER_WARNING (CWE-477): [#def37] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2036:36: warning[-Wdeprecated-declarations]: ‘int RSA_size(const RSA*)’ is deprecated: Since OpenSSL 3.0 # 2036 | SecureArray result(RSA_size(rsa)); # | ~~~~~~~~^~~~~ /usr/include/openssl/rsa.h:215:27: note: declared here # 215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); # | ^~~~~~~~ # 2034| { # 2035| const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # 2036|-> SecureArray result(RSA_size(rsa)); # 2037| int pad; # 2038| Error: COMPILER_WARNING (CWE-477): [#def38] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2063:38: warning[-Wdeprecated-declarations]: ‘int RSA_private_decrypt(int, const unsigned char*, unsigned char*, RSA*, int)’ is deprecated: Since OpenSSL 3.0 # 2063 | ret = RSA_private_decrypt( # | ~~~~~~~~~~~~~~~~~~~^ # 2064 | in.size(), (unsigned char *)in.data(), (unsigned char *)result.data(), (RSA *)rsa, pad); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:302:5: note: declared here # 302 | int RSA_private_decrypt(int flen, const unsigned char *from, unsigned char *to, # | ^~~~~~~~~~~~~~~~~~~ # 2061| int ret; # 2062| if (isPrivate()) # 2063|-> ret = RSA_private_decrypt( # 2064| in.size(), (unsigned char *)in.data(), (unsigned char *)result.data(), (RSA *)rsa, pad); # 2065| else Error: COMPILER_WARNING (CWE-477): [#def39] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2066:37: warning[-Wdeprecated-declarations]: ‘int RSA_public_decrypt(int, const unsigned char*, unsigned char*, RSA*, int)’ is deprecated: Since OpenSSL 3.0 # 2066 | ret = RSA_public_decrypt( # | ~~~~~~~~~~~~~~~~~~^ # 2067 | in.size(), (unsigned char *)in.data(), (unsigned char *)result.data(), (RSA *)rsa, pad); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:299:5: note: declared here # 299 | int RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to, # | ^~~~~~~~~~~~~~~~~~ # 2064| in.size(), (unsigned char *)in.data(), (unsigned char *)result.data(), (RSA *)rsa, pad); # 2065| else # 2066|-> ret = RSA_public_decrypt( # 2067| in.size(), (unsigned char *)in.data(), (unsigned char *)result.data(), (RSA *)rsa, pad); # 2068| Error: COMPILER_WARNING (CWE-477): [#def40] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::RSAKey::createPrivate(const QCA::BigInteger&, const QCA::BigInteger&, const QCA::BigInteger&, const QCA::BigInteger&, const QCA::BigInteger&)’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2172:27: warning[-Wdeprecated-declarations]: ‘RSA* RSA_new()’ is deprecated: Since OpenSSL 3.0 # 2172 | RSA *rsa = RSA_new(); # | ~~~~~~~^~ /usr/include/openssl/rsa.h:212:28: note: declared here # 212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); # | ^~~~~~~ # 2170| evp.reset(); # 2171| # 2172|-> RSA *rsa = RSA_new(); # 2173| if (RSA_set0_key(rsa, bi2bn(n), bi2bn(e), bi2bn(d)) == 0 || RSA_set0_factors(rsa, bi2bn(p), bi2bn(q)) == 0) { # 2174| // Free BIGNUMS? Error: COMPILER_WARNING (CWE-477): [#def41] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2173:25: warning[-Wdeprecated-declarations]: ‘int RSA_set0_key(RSA*, BIGNUM*, BIGNUM*, BIGNUM*)’ is deprecated: Since OpenSSL 3.0 # 2173 | if (RSA_set0_key(rsa, bi2bn(n), bi2bn(e), bi2bn(d)) == 0 || RSA_set0_factors(rsa, bi2bn(p), bi2bn(q)) == 0) { # | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:218:27: note: declared here # 218 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d); # | ^~~~~~~~~~~~ # 2171| # 2172| RSA *rsa = RSA_new(); # 2173|-> if (RSA_set0_key(rsa, bi2bn(n), bi2bn(e), bi2bn(d)) == 0 || RSA_set0_factors(rsa, bi2bn(p), bi2bn(q)) == 0) { # 2174| // Free BIGNUMS? # 2175| RSA_free(rsa); Error: COMPILER_WARNING (CWE-477): [#def42] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2173:85: warning[-Wdeprecated-declarations]: ‘int RSA_set0_factors(RSA*, BIGNUM*, BIGNUM*)’ is deprecated: Since OpenSSL 3.0 # 2173 | if (RSA_set0_key(rsa, bi2bn(n), bi2bn(e), bi2bn(d)) == 0 || RSA_set0_factors(rsa, bi2bn(p), bi2bn(q)) == 0) { # | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:219:27: note: declared here # 219 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q); # | ^~~~~~~~~~~~~~~~ # 2171| # 2172| RSA *rsa = RSA_new(); # 2173|-> if (RSA_set0_key(rsa, bi2bn(n), bi2bn(e), bi2bn(d)) == 0 || RSA_set0_factors(rsa, bi2bn(p), bi2bn(q)) == 0) { # 2174| // Free BIGNUMS? # 2175| RSA_free(rsa); Error: COMPILER_WARNING (CWE-477): [#def43] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2175:21: warning[-Wdeprecated-declarations]: ‘void RSA_free(RSA*)’ is deprecated: Since OpenSSL 3.0 # 2175 | RSA_free(rsa); # | ~~~~~~~~^~~~~ /usr/include/openssl/rsa.h:304:28: note: declared here # 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); # | ^~~~~~~~ # 2173| if (RSA_set0_key(rsa, bi2bn(n), bi2bn(e), bi2bn(d)) == 0 || RSA_set0_factors(rsa, bi2bn(p), bi2bn(q)) == 0) { # 2174| // Free BIGNUMS? # 2175|-> RSA_free(rsa); # 2176| return; # 2177| } Error: COMPILER_WARNING (CWE-477): [#def44] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2183:29: warning[-Wdeprecated-declarations]: ‘void RSA_blinding_off(RSA*)’ is deprecated: Since OpenSSL 3.0 # 2183 | RSA_blinding_off(rsa); # | ~~~~~~~~~~~~~~~~^~~~~ /usr/include/openssl/rsa.h:383:28: note: declared here # 383 | OSSL_DEPRECATEDIN_3_0 void RSA_blinding_off(RSA *rsa); # | ^~~~~~~~~~~~~~~~ # 2181| // http://www.mail-archive.com/openssl-users@openssl.org/msg63530.html # 2182| if (e == BigInteger(0) || d == BigInteger(0)) # 2183|-> RSA_blinding_off(rsa); # 2184| # 2185| evp.pkey = EVP_PKEY_new(); Error: COMPILER_WARNING (CWE-477): [#def45] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::RSAKey::createPublic(const QCA::BigInteger&, const QCA::BigInteger&)’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2194:27: warning[-Wdeprecated-declarations]: ‘RSA* RSA_new()’ is deprecated: Since OpenSSL 3.0 # 2194 | RSA *rsa = RSA_new(); # | ~~~~~~~^~ /usr/include/openssl/rsa.h:212:28: note: declared here # 212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); # | ^~~~~~~ # 2192| evp.reset(); # 2193| # 2194|-> RSA *rsa = RSA_new(); # 2195| if (RSA_set0_key(rsa, bi2bn(n), bi2bn(e), nullptr) == 0) { # 2196| RSA_free(rsa); Error: COMPILER_WARNING (CWE-477): [#def46] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2195:25: warning[-Wdeprecated-declarations]: ‘int RSA_set0_key(RSA*, BIGNUM*, BIGNUM*, BIGNUM*)’ is deprecated: Since OpenSSL 3.0 # 2195 | if (RSA_set0_key(rsa, bi2bn(n), bi2bn(e), nullptr) == 0) { # | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:218:27: note: declared here # 218 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d); # | ^~~~~~~~~~~~ # 2193| # 2194| RSA *rsa = RSA_new(); # 2195|-> if (RSA_set0_key(rsa, bi2bn(n), bi2bn(e), nullptr) == 0) { # 2196| RSA_free(rsa); # 2197| return; Error: COMPILER_WARNING (CWE-477): [#def47] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2196:21: warning[-Wdeprecated-declarations]: ‘void RSA_free(RSA*)’ is deprecated: Since OpenSSL 3.0 # 2196 | RSA_free(rsa); # | ~~~~~~~~^~~~~ /usr/include/openssl/rsa.h:304:28: note: declared here # 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); # | ^~~~~~~~ # 2194| RSA *rsa = RSA_new(); # 2195| if (RSA_set0_key(rsa, bi2bn(n), bi2bn(e), nullptr) == 0) { # 2196|-> RSA_free(rsa); # 2197| return; # 2198| } Error: COMPILER_WARNING (CWE-477): [#def48] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::BigInteger opensslQCAPlugin::RSAKey::n() const’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2207:46: warning[-Wdeprecated-declarations]: ‘const rsa_st* EVP_PKEY_get0_RSA(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 2207 | const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/openssl/evp.h:1405:22: note: declared here # 1405 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~~ # 2205| BigInteger n() const override # 2206| { # 2207|-> const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # 2208| const BIGNUM *bnn; # 2209| RSA_get0_key(rsa, &bnn, nullptr, nullptr); Error: COMPILER_WARNING (CWE-477): [#def49] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2209:21: warning[-Wdeprecated-declarations]: ‘void RSA_get0_key(const RSA*, const BIGNUM**, const BIGNUM**, const BIGNUM**)’ is deprecated: Since OpenSSL 3.0 # 2209 | RSA_get0_key(rsa, &bnn, nullptr, nullptr); # | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:228:28: note: declared here # 228 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r, # | ^~~~~~~~~~~~ # 2207| const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # 2208| const BIGNUM *bnn; # 2209|-> RSA_get0_key(rsa, &bnn, nullptr, nullptr); # 2210| return bn2bi(bnn); # 2211| } Error: COMPILER_WARNING (CWE-477): [#def50] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::BigInteger opensslQCAPlugin::RSAKey::e() const’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2215:46: warning[-Wdeprecated-declarations]: ‘const rsa_st* EVP_PKEY_get0_RSA(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 2215 | const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/openssl/evp.h:1405:22: note: declared here # 1405 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~~ # 2213| BigInteger e() const override # 2214| { # 2215|-> const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # 2216| const BIGNUM *bne; # 2217| RSA_get0_key(rsa, nullptr, &bne, nullptr); Error: COMPILER_WARNING (CWE-477): [#def51] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2217:21: warning[-Wdeprecated-declarations]: ‘void RSA_get0_key(const RSA*, const BIGNUM**, const BIGNUM**, const BIGNUM**)’ is deprecated: Since OpenSSL 3.0 # 2217 | RSA_get0_key(rsa, nullptr, &bne, nullptr); # | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:228:28: note: declared here # 228 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r, # | ^~~~~~~~~~~~ # 2215| const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # 2216| const BIGNUM *bne; # 2217|-> RSA_get0_key(rsa, nullptr, &bne, nullptr); # 2218| return bn2bi(bne); # 2219| } Error: COMPILER_WARNING (CWE-477): [#def52] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::BigInteger opensslQCAPlugin::RSAKey::p() const’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2223:46: warning[-Wdeprecated-declarations]: ‘const rsa_st* EVP_PKEY_get0_RSA(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 2223 | const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/openssl/evp.h:1405:22: note: declared here # 1405 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~~ # 2221| BigInteger p() const override # 2222| { # 2223|-> const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # 2224| const BIGNUM *bnp; # 2225| RSA_get0_factors(rsa, &bnp, nullptr); Error: COMPILER_WARNING (CWE-477): [#def53] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2225:25: warning[-Wdeprecated-declarations]: ‘void RSA_get0_factors(const RSA*, const BIGNUM**, const BIGNUM**)’ is deprecated: Since OpenSSL 3.0 # 2225 | RSA_get0_factors(rsa, &bnp, nullptr); # | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:231:28: note: declared here # 231 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_factors(const RSA *r, # | ^~~~~~~~~~~~~~~~ # 2223| const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # 2224| const BIGNUM *bnp; # 2225|-> RSA_get0_factors(rsa, &bnp, nullptr); # 2226| return bn2bi(bnp); # 2227| } Error: COMPILER_WARNING (CWE-477): [#def54] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::BigInteger opensslQCAPlugin::RSAKey::q() const’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2231:46: warning[-Wdeprecated-declarations]: ‘const rsa_st* EVP_PKEY_get0_RSA(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 2231 | const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/openssl/evp.h:1405:22: note: declared here # 1405 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~~ # 2229| BigInteger q() const override # 2230| { # 2231|-> const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # 2232| const BIGNUM *bnq; # 2233| RSA_get0_factors(rsa, nullptr, &bnq); Error: COMPILER_WARNING (CWE-477): [#def55] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2233:25: warning[-Wdeprecated-declarations]: ‘void RSA_get0_factors(const RSA*, const BIGNUM**, const BIGNUM**)’ is deprecated: Since OpenSSL 3.0 # 2233 | RSA_get0_factors(rsa, nullptr, &bnq); # | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:231:28: note: declared here # 231 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_factors(const RSA *r, # | ^~~~~~~~~~~~~~~~ # 2231| const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # 2232| const BIGNUM *bnq; # 2233|-> RSA_get0_factors(rsa, nullptr, &bnq); # 2234| return bn2bi(bnq); # 2235| } Error: COMPILER_WARNING (CWE-477): [#def56] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::BigInteger opensslQCAPlugin::RSAKey::d() const’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2239:46: warning[-Wdeprecated-declarations]: ‘const rsa_st* EVP_PKEY_get0_RSA(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 2239 | const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/openssl/evp.h:1405:22: note: declared here # 1405 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~~ # 2237| BigInteger d() const override # 2238| { # 2239|-> const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # 2240| const BIGNUM *bnd; # 2241| RSA_get0_key(rsa, nullptr, nullptr, &bnd); Error: COMPILER_WARNING (CWE-477): [#def57] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2241:21: warning[-Wdeprecated-declarations]: ‘void RSA_get0_key(const RSA*, const BIGNUM**, const BIGNUM**, const BIGNUM**)’ is deprecated: Since OpenSSL 3.0 # 2241 | RSA_get0_key(rsa, nullptr, nullptr, &bnd); # | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:228:28: note: declared here # 228 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r, # | ^~~~~~~~~~~~ # 2239| const RSA *rsa = EVP_PKEY_get0_RSA(evp.pkey); # 2240| const BIGNUM *bnd; # 2241|-> RSA_get0_key(rsa, nullptr, nullptr, &bnd); # 2242| return bn2bi(bnd); # 2243| } Error: COMPILER_WARNING (CWE-477): [#def58] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In destructor ‘virtual opensslQCAPlugin::DSAKeyMaker::~DSAKeyMaker()’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2287:21: warning[-Wdeprecated-declarations]: ‘void DSA_free(DSA*)’ is deprecated: Since OpenSSL 3.0 # 2287 | DSA_free(result); # | ~~~~~~~~^~~~~~~~ /usr/include/openssl/dsa.h:132:28: note: declared here # 132 | OSSL_DEPRECATEDIN_3_0 void DSA_free(DSA *r); # | ^~~~~~~~ # 2285| wait(); # 2286| if (result) # 2287|-> DSA_free(result); # 2288| } # 2289| Error: COMPILER_WARNING (CWE-477): [#def59] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::DSAKeyMaker::run()’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2292:53: warning[-Wdeprecated-declarations]: ‘DSA* DSA_new()’ is deprecated: Since OpenSSL 3.0 # 2292 | std::unique_ptr<DSA, DsaDeleter> dsa(DSA_new()); # | ~~~~~~~^~ /usr/include/openssl/dsa.h:130:28: note: declared here # 130 | OSSL_DEPRECATEDIN_3_0 DSA *DSA_new(void); # | ^~~~~~~ # 2290| void run() override # 2291| { # 2292|-> std::unique_ptr<DSA, DsaDeleter> dsa(DSA_new()); # 2293| BIGNUM *pne = bi2bn(domain.p()), *qne = bi2bn(domain.q()), *gne = bi2bn(domain.g()); # 2294| Error: COMPILER_WARNING (CWE-477): [#def60] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2295:26: warning[-Wdeprecated-declarations]: ‘int DSA_set0_pqg(DSA*, BIGNUM*, BIGNUM*, BIGNUM*)’ is deprecated: Since OpenSSL 3.0 # 2295 | if (!DSA_set0_pqg(dsa.get(), pne, qne, gne)) { # | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dsa.h:208:27: note: declared here # 208 | OSSL_DEPRECATEDIN_3_0 int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g); # | ^~~~~~~~~~~~ # 2293| BIGNUM *pne = bi2bn(domain.p()), *qne = bi2bn(domain.q()), *gne = bi2bn(domain.g()); # 2294| # 2295|-> if (!DSA_set0_pqg(dsa.get(), pne, qne, gne)) { # 2296| return; # 2297| } Error: COMPILER_WARNING (CWE-477): [#def61] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2298:30: warning[-Wdeprecated-declarations]: ‘int DSA_generate_key(DSA*)’ is deprecated: Since OpenSSL 3.0 # 2298 | if (!DSA_generate_key(dsa.get())) { # | ~~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/openssl/dsa.h:179:27: note: declared here # 179 | OSSL_DEPRECATEDIN_3_0 int DSA_generate_key(DSA *a); # | ^~~~~~~~~~~~~~~~ # 2296| return; # 2297| } # 2298|-> if (!DSA_generate_key(dsa.get())) { # 2299| // OPENSSL_VERSION_MAJOR is only defined in openssl3 # 2300| #ifdef OPENSSL_VERSION_MAJOR Error: COMPILER_WARNING (CWE-477): [#def62] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2310:34: warning[-Wdeprecated-declarations]: ‘DSA* DSA_new()’ is deprecated: Since OpenSSL 3.0 # 2310 | dsa.reset(DSA_new()); # | ~~~~~~~^~ /usr/include/openssl/dsa.h:130:28: note: declared here # 130 | OSSL_DEPRECATEDIN_3_0 DSA *DSA_new(void); # | ^~~~~~~ # 2308| if (BN_num_bits(pne) < 2048) { # 2309| int dummy; # 2310|-> dsa.reset(DSA_new()); # 2311| if (DSA_generate_parameters_ex( # 2312| dsa.get(), 512, (const unsigned char *)"THIS_IS_A_DUMMY_SEED", 20, &dummy, nullptr, nullptr) != Error: COMPILER_WARNING (CWE-477): [#def63] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2311:47: warning[-Wdeprecated-declarations]: ‘int DSA_generate_parameters_ex(DSA*, int, const unsigned char*, int, int*, long unsigned int*, BN_GENCB*)’ is deprecated: Since OpenSSL 3.0 # 2311 | if (DSA_generate_parameters_ex( # | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ # 2312 | dsa.get(), 512, (const unsigned char *)"THIS_IS_A_DUMMY_SEED", 20, &dummy, nullptr, nullptr) != # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dsa.h:172:27: note: declared here # 172 | OSSL_DEPRECATEDIN_3_0 int DSA_generate_parameters_ex(DSA *dsa, int bits, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~ # 2309| int dummy; # 2310| dsa.reset(DSA_new()); # 2311|-> if (DSA_generate_parameters_ex( # 2312| dsa.get(), 512, (const unsigned char *)"THIS_IS_A_DUMMY_SEED", 20, &dummy, nullptr, nullptr) != # 2313| 1) { Error: COMPILER_WARNING (CWE-477): [#def64] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2319:34: warning[-Wdeprecated-declarations]: ‘int DSA_set0_pqg(DSA*, BIGNUM*, BIGNUM*, BIGNUM*)’ is deprecated: Since OpenSSL 3.0 # 2319 | if (!DSA_set0_pqg(dsa.get(), pne, qne, gne)) { # | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dsa.h:208:27: note: declared here # 208 | OSSL_DEPRECATEDIN_3_0 int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g); # | ^~~~~~~~~~~~ # 2317| qne = bi2bn(domain.q()); # 2318| gne = bi2bn(domain.g()); # 2319|-> if (!DSA_set0_pqg(dsa.get(), pne, qne, gne)) { # 2320| return; # 2321| } Error: COMPILER_WARNING (CWE-477): [#def65] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2322:38: warning[-Wdeprecated-declarations]: ‘int DSA_generate_key(DSA*)’ is deprecated: Since OpenSSL 3.0 # 2322 | if (!DSA_generate_key(dsa.get())) { # | ~~~~~~~~~~~~~~~~^~~~~~~~~~~ /usr/include/openssl/dsa.h:179:27: note: declared here # 179 | OSSL_DEPRECATEDIN_3_0 int DSA_generate_key(DSA *a); # | ^~~~~~~~~~~~~~~~ # 2320| return; # 2321| } # 2322|-> if (!DSA_generate_key(dsa.get())) { # 2323| return; # 2324| } Error: COMPILER_WARNING (CWE-477): [#def66] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::DSAKey::convertToPublic()’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2405:52: warning[-Wdeprecated-declarations]: ‘const dsa_st* EVP_PKEY_get0_DSA(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 2405 | const DSA *dsa_pkey = EVP_PKEY_get0_DSA(evp.pkey); # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/openssl/evp.h:1414:22: note: declared here # 1414 | const struct dsa_st *EVP_PKEY_get0_DSA(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~~ # 2403| # 2404| // extract the public key into DER format # 2405|-> const DSA *dsa_pkey = EVP_PKEY_get0_DSA(evp.pkey); # 2406| int len = i2d_DSAPublicKey(dsa_pkey, nullptr); # 2407| SecureArray result(len); Error: COMPILER_WARNING (CWE-477): [#def67] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2406:51: warning[-Wdeprecated-declarations]: ‘int i2d_DSAPublicKey(const DSA*, unsigned char**)’ is deprecated: Since OpenSSL 3.0 # 2406 | int len = i2d_DSAPublicKey(dsa_pkey, nullptr); # | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dsa.h:153:1: note: declared here # 153 | DECLARE_ASN1_ENCODE_FUNCTIONS_only_attr(OSSL_DEPRECATEDIN_3_0, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 2404| // extract the public key into DER format # 2405| const DSA *dsa_pkey = EVP_PKEY_get0_DSA(evp.pkey); # 2406|-> int len = i2d_DSAPublicKey(dsa_pkey, nullptr); # 2407| SecureArray result(len); # 2408| unsigned char *p = (unsigned char *)result.data(); Error: COMPILER_WARNING (CWE-477): [#def68] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2409:25: warning[-Wdeprecated-declarations]: ‘int i2d_DSAPublicKey(const DSA*, unsigned char**)’ is deprecated: Since OpenSSL 3.0 # 2409 | i2d_DSAPublicKey(dsa_pkey, &p); # | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/openssl/dsa.h:153:1: note: declared here # 153 | DECLARE_ASN1_ENCODE_FUNCTIONS_only_attr(OSSL_DEPRECATEDIN_3_0, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 2407| SecureArray result(len); # 2408| unsigned char *p = (unsigned char *)result.data(); # 2409|-> i2d_DSAPublicKey(dsa_pkey, &p); # 2410| p = (unsigned char *)result.data(); # 2411| Error: COMPILER_WARNING (CWE-477): [#def69] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2414:36: warning[-Wdeprecated-declarations]: ‘DSA* d2i_DSAPublicKey(DSA**, const unsigned char**, long int)’ is deprecated: Since OpenSSL 3.0 # 2414 | DSA *dsa = d2i_DSAPublicKey(nullptr, (const unsigned char **)&p, result.size()); # | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dsa.h:153:1: note: declared here # 153 | DECLARE_ASN1_ENCODE_FUNCTIONS_only_attr(OSSL_DEPRECATEDIN_3_0, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 2412| // put the DER public key back into openssl # 2413| evp.reset(); # 2414|-> DSA *dsa = d2i_DSAPublicKey(nullptr, (const unsigned char **)&p, result.size()); # 2415| evp.pkey = EVP_PKEY_new(); # 2416| EVP_PKEY_assign_DSA(evp.pkey, dsa); Error: COMPILER_WARNING (CWE-477): [#def70] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::DSAKey::createPrivate(const QCA::DLGroup&, const QCA::BigInteger&, const QCA::BigInteger&)’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2490:37: warning[-Wdeprecated-declarations]: ‘DSA* DSA_new()’ is deprecated: Since OpenSSL 3.0 # 2490 | DSA *dsa = DSA_new(); # | ~~~~~~~^~ /usr/include/openssl/dsa.h:130:28: note: declared here # 130 | OSSL_DEPRECATEDIN_3_0 DSA *DSA_new(void); # | ^~~~~~~ # 2488| evp.reset(); # 2489| # 2490|-> DSA *dsa = DSA_new(); # 2491| BIGNUM *bnp = bi2bn(domain.p()); # 2492| BIGNUM *bnq = bi2bn(domain.q()); Error: COMPILER_WARNING (CWE-477): [#def71] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2497:26: warning[-Wdeprecated-declarations]: ‘int DSA_set0_pqg(DSA*, BIGNUM*, BIGNUM*, BIGNUM*)’ is deprecated: Since OpenSSL 3.0 # 2497 | if (!DSA_set0_pqg(dsa, bnp, bnq, bng) || !DSA_set0_key(dsa, bnpub_key, bnpriv_key)) { # | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dsa.h:208:27: note: declared here # 208 | OSSL_DEPRECATEDIN_3_0 int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g); # | ^~~~~~~~~~~~ # 2495| BIGNUM *bnpriv_key = bi2bn(x); # 2496| # 2497|-> if (!DSA_set0_pqg(dsa, bnp, bnq, bng) || !DSA_set0_key(dsa, bnpub_key, bnpriv_key)) { # 2498| DSA_free(dsa); # 2499| return; Error: COMPILER_WARNING (CWE-477): [#def72] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2497:63: warning[-Wdeprecated-declarations]: ‘int DSA_set0_key(DSA*, BIGNUM*, BIGNUM*)’ is deprecated: Since OpenSSL 3.0 # 2497 | if (!DSA_set0_pqg(dsa, bnp, bnq, bng) || !DSA_set0_key(dsa, bnpub_key, bnpriv_key)) { # | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dsa.h:211:27: note: declared here # 211 | OSSL_DEPRECATEDIN_3_0 int DSA_set0_key(DSA *d, BIGNUM *pub_key, # | ^~~~~~~~~~~~ # 2495| BIGNUM *bnpriv_key = bi2bn(x); # 2496| # 2497|-> if (!DSA_set0_pqg(dsa, bnp, bnq, bng) || !DSA_set0_key(dsa, bnpub_key, bnpriv_key)) { # 2498| DSA_free(dsa); # 2499| return; Error: COMPILER_WARNING (CWE-477): [#def73] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2498:21: warning[-Wdeprecated-declarations]: ‘void DSA_free(DSA*)’ is deprecated: Since OpenSSL 3.0 # 2498 | DSA_free(dsa); # | ~~~~~~~~^~~~~ /usr/include/openssl/dsa.h:132:28: note: declared here # 132 | OSSL_DEPRECATEDIN_3_0 void DSA_free(DSA *r); # | ^~~~~~~~ # 2496| # 2497| if (!DSA_set0_pqg(dsa, bnp, bnq, bng) || !DSA_set0_key(dsa, bnpub_key, bnpriv_key)) { # 2498|-> DSA_free(dsa); # 2499| return; # 2500| } Error: COMPILER_WARNING (CWE-477): [#def74] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::DSAKey::createPublic(const QCA::DLGroup&, const QCA::BigInteger&)’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2511:36: warning[-Wdeprecated-declarations]: ‘DSA* DSA_new()’ is deprecated: Since OpenSSL 3.0 # 2511 | DSA *dsa = DSA_new(); # | ~~~~~~~^~ /usr/include/openssl/dsa.h:130:28: note: declared here # 130 | OSSL_DEPRECATEDIN_3_0 DSA *DSA_new(void); # | ^~~~~~~ # 2509| evp.reset(); # 2510| # 2511|-> DSA *dsa = DSA_new(); # 2512| BIGNUM *bnp = bi2bn(domain.p()); # 2513| BIGNUM *bnq = bi2bn(domain.q()); Error: COMPILER_WARNING (CWE-477): [#def75] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2517:26: warning[-Wdeprecated-declarations]: ‘int DSA_set0_pqg(DSA*, BIGNUM*, BIGNUM*, BIGNUM*)’ is deprecated: Since OpenSSL 3.0 # 2517 | if (!DSA_set0_pqg(dsa, bnp, bnq, bng) || !DSA_set0_key(dsa, bnpub_key, nullptr)) { # | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dsa.h:208:27: note: declared here # 208 | OSSL_DEPRECATEDIN_3_0 int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g); # | ^~~~~~~~~~~~ # 2515| BIGNUM *bnpub_key = bi2bn(y); # 2516| # 2517|-> if (!DSA_set0_pqg(dsa, bnp, bnq, bng) || !DSA_set0_key(dsa, bnpub_key, nullptr)) { # 2518| DSA_free(dsa); # 2519| return; Error: COMPILER_WARNING (CWE-477): [#def76] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2517:63: warning[-Wdeprecated-declarations]: ‘int DSA_set0_key(DSA*, BIGNUM*, BIGNUM*)’ is deprecated: Since OpenSSL 3.0 # 2517 | if (!DSA_set0_pqg(dsa, bnp, bnq, bng) || !DSA_set0_key(dsa, bnpub_key, nullptr)) { # | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dsa.h:211:27: note: declared here # 211 | OSSL_DEPRECATEDIN_3_0 int DSA_set0_key(DSA *d, BIGNUM *pub_key, # | ^~~~~~~~~~~~ # 2515| BIGNUM *bnpub_key = bi2bn(y); # 2516| # 2517|-> if (!DSA_set0_pqg(dsa, bnp, bnq, bng) || !DSA_set0_key(dsa, bnpub_key, nullptr)) { # 2518| DSA_free(dsa); # 2519| return; Error: COMPILER_WARNING (CWE-477): [#def77] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2518:21: warning[-Wdeprecated-declarations]: ‘void DSA_free(DSA*)’ is deprecated: Since OpenSSL 3.0 # 2518 | DSA_free(dsa); # | ~~~~~~~~^~~~~ /usr/include/openssl/dsa.h:132:28: note: declared here # 132 | OSSL_DEPRECATEDIN_3_0 void DSA_free(DSA *r); # | ^~~~~~~~ # 2516| # 2517| if (!DSA_set0_pqg(dsa, bnp, bnq, bng) || !DSA_set0_key(dsa, bnpub_key, nullptr)) { # 2518|-> DSA_free(dsa); # 2519| return; # 2520| } Error: COMPILER_WARNING (CWE-477): [#def78] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::DLGroup opensslQCAPlugin::DSAKey::domain() const’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2529:46: warning[-Wdeprecated-declarations]: ‘const dsa_st* EVP_PKEY_get0_DSA(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 2529 | const DSA *dsa = EVP_PKEY_get0_DSA(evp.pkey); # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/openssl/evp.h:1414:22: note: declared here # 1414 | const struct dsa_st *EVP_PKEY_get0_DSA(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~~ # 2527| DLGroup domain() const override # 2528| { # 2529|-> const DSA *dsa = EVP_PKEY_get0_DSA(evp.pkey); # 2530| const BIGNUM *bnp, *bnq, *bng; # 2531| DSA_get0_pqg(dsa, &bnp, &bnq, &bng); Error: COMPILER_WARNING (CWE-477): [#def79] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2531:21: warning[-Wdeprecated-declarations]: ‘void DSA_get0_pqg(const DSA*, const BIGNUM**, const BIGNUM**, const BIGNUM**)’ is deprecated: Since OpenSSL 3.0 # 2531 | DSA_get0_pqg(dsa, &bnp, &bnq, &bng); # | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dsa.h:206:28: note: declared here # 206 | OSSL_DEPRECATEDIN_3_0 void DSA_get0_pqg(const DSA *d, const BIGNUM **p, # | ^~~~~~~~~~~~ # 2529| const DSA *dsa = EVP_PKEY_get0_DSA(evp.pkey); # 2530| const BIGNUM *bnp, *bnq, *bng; # 2531|-> DSA_get0_pqg(dsa, &bnp, &bnq, &bng); # 2532| return DLGroup(bn2bi(bnp), bn2bi(bnq), bn2bi(bng)); # 2533| } Error: COMPILER_WARNING (CWE-477): [#def80] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::BigInteger opensslQCAPlugin::DSAKey::y() const’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2537:46: warning[-Wdeprecated-declarations]: ‘const dsa_st* EVP_PKEY_get0_DSA(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 2537 | const DSA *dsa = EVP_PKEY_get0_DSA(evp.pkey); # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/openssl/evp.h:1414:22: note: declared here # 1414 | const struct dsa_st *EVP_PKEY_get0_DSA(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~~ # 2535| BigInteger y() const override # 2536| { # 2537|-> const DSA *dsa = EVP_PKEY_get0_DSA(evp.pkey); # 2538| const BIGNUM *bnpub_key; # 2539| DSA_get0_key(dsa, &bnpub_key, nullptr); Error: COMPILER_WARNING (CWE-477): [#def81] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2539:21: warning[-Wdeprecated-declarations]: ‘void DSA_get0_key(const DSA*, const BIGNUM**, const BIGNUM**)’ is deprecated: Since OpenSSL 3.0 # 2539 | DSA_get0_key(dsa, &bnpub_key, nullptr); # | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dsa.h:209:28: note: declared here # 209 | OSSL_DEPRECATEDIN_3_0 void DSA_get0_key(const DSA *d, const BIGNUM **pub_key, # | ^~~~~~~~~~~~ # 2537| const DSA *dsa = EVP_PKEY_get0_DSA(evp.pkey); # 2538| const BIGNUM *bnpub_key; # 2539|-> DSA_get0_key(dsa, &bnpub_key, nullptr); # 2540| return bn2bi(bnpub_key); # 2541| } Error: COMPILER_WARNING (CWE-477): [#def82] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::BigInteger opensslQCAPlugin::DSAKey::x() const’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2545:46: warning[-Wdeprecated-declarations]: ‘const dsa_st* EVP_PKEY_get0_DSA(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 2545 | const DSA *dsa = EVP_PKEY_get0_DSA(evp.pkey); # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/openssl/evp.h:1414:22: note: declared here # 1414 | const struct dsa_st *EVP_PKEY_get0_DSA(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~~ # 2543| BigInteger x() const override # 2544| { # 2545|-> const DSA *dsa = EVP_PKEY_get0_DSA(evp.pkey); # 2546| const BIGNUM *bnpriv_key; # 2547| DSA_get0_key(dsa, nullptr, &bnpriv_key); Error: COMPILER_WARNING (CWE-477): [#def83] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2547:21: warning[-Wdeprecated-declarations]: ‘void DSA_get0_key(const DSA*, const BIGNUM**, const BIGNUM**)’ is deprecated: Since OpenSSL 3.0 # 2547 | DSA_get0_key(dsa, nullptr, &bnpriv_key); # | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dsa.h:209:28: note: declared here # 209 | OSSL_DEPRECATEDIN_3_0 void DSA_get0_key(const DSA *d, const BIGNUM **pub_key, # | ^~~~~~~~~~~~ # 2545| const DSA *dsa = EVP_PKEY_get0_DSA(evp.pkey); # 2546| const BIGNUM *bnpriv_key; # 2547|-> DSA_get0_key(dsa, nullptr, &bnpriv_key); # 2548| return bn2bi(bnpriv_key); # 2549| } Error: COMPILER_WARNING (CWE-477): [#def84] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In destructor ‘virtual opensslQCAPlugin::DHKeyMaker::~DHKeyMaker()’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2593:20: warning[-Wdeprecated-declarations]: ‘void DH_free(DH*)’ is deprecated: Since OpenSSL 3.0 # 2593 | DH_free(result); # | ~~~~~~~^~~~~~~~ /usr/include/openssl/dsa.h:31: included_from: Included from here. /usr/include/openssl/dh.h:211:28: note: declared here # 211 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh); # | ^~~~~~~ # 2591| wait(); # 2592| if (result) # 2593|-> DH_free(result); # 2594| } # 2595| Error: COMPILER_WARNING (CWE-477): [#def85] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::DHKeyMaker::run()’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2598:29: warning[-Wdeprecated-declarations]: ‘DH* DH_new()’ is deprecated: Since OpenSSL 3.0 # 2598 | DH *dh = DH_new(); # | ~~~~~~^~ /usr/include/openssl/dh.h:210:27: note: declared here # 210 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void); # | ^~~~~~ # 2596| void run() override # 2597| { # 2598|-> DH *dh = DH_new(); # 2599| BIGNUM *bnp = bi2bn(domain.p()); # 2600| BIGNUM *bng = bi2bn(domain.g()); Error: COMPILER_WARNING (CWE-477): [#def86] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2601:25: warning[-Wdeprecated-declarations]: ‘int DH_set0_pqg(DH*, BIGNUM*, BIGNUM*, BIGNUM*)’ is deprecated: Since OpenSSL 3.0 # 2601 | if (!DH_set0_pqg(dh, bnp, nullptr, bng) || !DH_generate_key(dh)) { # | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dh.h:266:27: note: declared here # 266 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g); # | ^~~~~~~~~~~ # 2599| BIGNUM *bnp = bi2bn(domain.p()); # 2600| BIGNUM *bng = bi2bn(domain.g()); # 2601|-> if (!DH_set0_pqg(dh, bnp, nullptr, bng) || !DH_generate_key(dh)) { # 2602| DH_free(dh); # 2603| return; Error: COMPILER_WARNING (CWE-477): [#def87] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2601:68: warning[-Wdeprecated-declarations]: ‘int DH_generate_key(DH*)’ is deprecated: Since OpenSSL 3.0 # 2601 | if (!DH_set0_pqg(dh, bnp, nullptr, bng) || !DH_generate_key(dh)) { # | ~~~~~~~~~~~~~~~^~~~ /usr/include/openssl/dh.h:234:27: note: declared here # 234 | OSSL_DEPRECATEDIN_3_0 int DH_generate_key(DH *dh); # | ^~~~~~~~~~~~~~~ # 2599| BIGNUM *bnp = bi2bn(domain.p()); # 2600| BIGNUM *bng = bi2bn(domain.g()); # 2601|-> if (!DH_set0_pqg(dh, bnp, nullptr, bng) || !DH_generate_key(dh)) { # 2602| DH_free(dh); # 2603| return; Error: COMPILER_WARNING (CWE-477): [#def88] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2602:20: warning[-Wdeprecated-declarations]: ‘void DH_free(DH*)’ is deprecated: Since OpenSSL 3.0 # 2602 | DH_free(dh); # | ~~~~~~~^~~~ /usr/include/openssl/dh.h:211:28: note: declared here # 211 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh); # | ^~~~~~~ # 2600| BIGNUM *bng = bi2bn(domain.g()); # 2601| if (!DH_set0_pqg(dh, bnp, nullptr, bng) || !DH_generate_key(dh)) { # 2602|-> DH_free(dh); # 2603| return; # 2604| } Error: COMPILER_WARNING (CWE-477): [#def89] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::DHKey::convertToPublic()’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2675:46: warning[-Wdeprecated-declarations]: ‘const dh_st* EVP_PKEY_get0_DH(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 2675 | const DH *orig = EVP_PKEY_get0_DH(evp.pkey); # | ~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/openssl/evp.h:1422:43: note: declared here # 1422 | OSSL_DEPRECATEDIN_3_0 const struct dh_st *EVP_PKEY_get0_DH(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~ # 2673| return; # 2674| # 2675|-> const DH *orig = EVP_PKEY_get0_DH(evp.pkey); # 2676| DH *dh = DH_new(); # 2677| const BIGNUM *bnp, *bng, *bnpub_key; Error: COMPILER_WARNING (CWE-477): [#def90] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2676:36: warning[-Wdeprecated-declarations]: ‘DH* DH_new()’ is deprecated: Since OpenSSL 3.0 # 2676 | DH *dh = DH_new(); # | ~~~~~~^~ /usr/include/openssl/dh.h:210:27: note: declared here # 210 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void); # | ^~~~~~ # 2674| # 2675| const DH *orig = EVP_PKEY_get0_DH(evp.pkey); # 2676|-> DH *dh = DH_new(); # 2677| const BIGNUM *bnp, *bng, *bnpub_key; # 2678| DH_get0_pqg(orig, &bnp, nullptr, &bng); Error: COMPILER_WARNING (CWE-477): [#def91] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2678:20: warning[-Wdeprecated-declarations]: ‘void DH_get0_pqg(const DH*, const BIGNUM**, const BIGNUM**, const BIGNUM**)’ is deprecated: Since OpenSSL 3.0 # 2678 | DH_get0_pqg(orig, &bnp, nullptr, &bng); # | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dh.h:264:28: note: declared here # 264 | OSSL_DEPRECATEDIN_3_0 void DH_get0_pqg(const DH *dh, const BIGNUM **p, # | ^~~~~~~~~~~ # 2676| DH *dh = DH_new(); # 2677| const BIGNUM *bnp, *bng, *bnpub_key; # 2678|-> DH_get0_pqg(orig, &bnp, nullptr, &bng); # 2679| DH_get0_key(orig, &bnpub_key, nullptr); # 2680| Error: COMPILER_WARNING (CWE-477): [#def92] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2679:20: warning[-Wdeprecated-declarations]: ‘void DH_get0_key(const DH*, const BIGNUM**, const BIGNUM**)’ is deprecated: Since OpenSSL 3.0 # 2679 | DH_get0_key(orig, &bnpub_key, nullptr); # | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dh.h:267:28: note: declared here # 267 | OSSL_DEPRECATEDIN_3_0 void DH_get0_key(const DH *dh, const BIGNUM **pub_key, # | ^~~~~~~~~~~ # 2677| const BIGNUM *bnp, *bng, *bnpub_key; # 2678| DH_get0_pqg(orig, &bnp, nullptr, &bng); # 2679|-> DH_get0_key(orig, &bnpub_key, nullptr); # 2680| # 2681| DH_set0_key(dh, BN_dup(bnpub_key), nullptr); Error: COMPILER_WARNING (CWE-477): [#def93] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2681:20: warning[-Wdeprecated-declarations]: ‘int DH_set0_key(DH*, BIGNUM*, BIGNUM*)’ is deprecated: Since OpenSSL 3.0 # 2681 | DH_set0_key(dh, BN_dup(bnpub_key), nullptr); # | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dh.h:269:27: note: declared here # 269 | OSSL_DEPRECATEDIN_3_0 int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key); # | ^~~~~~~~~~~ # 2679| DH_get0_key(orig, &bnpub_key, nullptr); # 2680| # 2681|-> DH_set0_key(dh, BN_dup(bnpub_key), nullptr); # 2682| DH_set0_pqg(dh, BN_dup(bnp), nullptr, BN_dup(bng)); # 2683| Error: COMPILER_WARNING (CWE-477): [#def94] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2682:20: warning[-Wdeprecated-declarations]: ‘int DH_set0_pqg(DH*, BIGNUM*, BIGNUM*, BIGNUM*)’ is deprecated: Since OpenSSL 3.0 # 2682 | DH_set0_pqg(dh, BN_dup(bnp), nullptr, BN_dup(bng)); # | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dh.h:266:27: note: declared here # 266 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g); # | ^~~~~~~~~~~ # 2680| # 2681| DH_set0_key(dh, BN_dup(bnpub_key), nullptr); # 2682|-> DH_set0_pqg(dh, BN_dup(bnp), nullptr, BN_dup(bng)); # 2683| # 2684| evp.reset(); Error: COMPILER_WARNING (CWE-477): [#def95] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::SymmetricKey opensslQCAPlugin::DHKey::deriveKey(const QCA::PKeyBase&)’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2698:46: warning[-Wdeprecated-declarations]: ‘const dh_st* EVP_PKEY_get0_DH(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 2698 | const DH *dh = EVP_PKEY_get0_DH(evp.pkey); # | ~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/openssl/evp.h:1422:43: note: declared here # 1422 | OSSL_DEPRECATEDIN_3_0 const struct dh_st *EVP_PKEY_get0_DH(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~ # 2696| SymmetricKey deriveKey(const PKeyBase &theirs) override # 2697| { # 2698|-> const DH *dh = EVP_PKEY_get0_DH(evp.pkey); # 2699| const DH *them = EVP_PKEY_get0_DH(static_cast<const DHKey *>(&theirs)->evp.pkey); # 2700| const BIGNUM *bnpub_key; Error: COMPILER_WARNING (CWE-477): [#def96] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2699:46: warning[-Wdeprecated-declarations]: ‘const dh_st* EVP_PKEY_get0_DH(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 2699 | const DH *them = EVP_PKEY_get0_DH(static_cast<const DHKey *>(&theirs)->evp.pkey); # | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/evp.h:1422:43: note: declared here # 1422 | OSSL_DEPRECATEDIN_3_0 const struct dh_st *EVP_PKEY_get0_DH(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~ # 2697| { # 2698| const DH *dh = EVP_PKEY_get0_DH(evp.pkey); # 2699|-> const DH *them = EVP_PKEY_get0_DH(static_cast<const DHKey *>(&theirs)->evp.pkey); # 2700| const BIGNUM *bnpub_key; # 2701| DH_get0_key(them, &bnpub_key, nullptr); Error: COMPILER_WARNING (CWE-477): [#def97] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2701:20: warning[-Wdeprecated-declarations]: ‘void DH_get0_key(const DH*, const BIGNUM**, const BIGNUM**)’ is deprecated: Since OpenSSL 3.0 # 2701 | DH_get0_key(them, &bnpub_key, nullptr); # | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dh.h:267:28: note: declared here # 267 | OSSL_DEPRECATEDIN_3_0 void DH_get0_key(const DH *dh, const BIGNUM **pub_key, # | ^~~~~~~~~~~ # 2699| const DH *them = EVP_PKEY_get0_DH(static_cast<const DHKey *>(&theirs)->evp.pkey); # 2700| const BIGNUM *bnpub_key; # 2701|-> DH_get0_key(them, &bnpub_key, nullptr); # 2702| # 2703| SecureArray result(DH_size(dh)); Error: COMPILER_WARNING (CWE-477): [#def98] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2703:35: warning[-Wdeprecated-declarations]: ‘int DH_size(const DH*)’ is deprecated: Since OpenSSL 3.0 # 2703 | SecureArray result(DH_size(dh)); # | ~~~~~~~^~~~ /usr/include/openssl/dh.h:214:27: note: declared here # 214 | OSSL_DEPRECATEDIN_3_0 int DH_size(const DH *dh); # | ^~~~~~~ # 2701| DH_get0_key(them, &bnpub_key, nullptr); # 2702| # 2703|-> SecureArray result(DH_size(dh)); # 2704| int ret = DH_compute_key((unsigned char *)result.data(), bnpub_key, (DH *)dh); # 2705| if (ret <= 0) Error: COMPILER_WARNING (CWE-477): [#def99] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2704:41: warning[-Wdeprecated-declarations]: ‘int DH_compute_key(unsigned char*, const BIGNUM*, DH*)’ is deprecated: Since OpenSSL 3.0 # 2704 | int ret = DH_compute_key((unsigned char *)result.data(), bnpub_key, (DH *)dh); # | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dh.h:235:27: note: declared here # 235 | OSSL_DEPRECATEDIN_3_0 int DH_compute_key(unsigned char *key, # | ^~~~~~~~~~~~~~ # 2702| # 2703| SecureArray result(DH_size(dh)); # 2704|-> int ret = DH_compute_key((unsigned char *)result.data(), bnpub_key, (DH *)dh); # 2705| if (ret <= 0) # 2706| return SymmetricKey(); Error: COMPILER_WARNING (CWE-477): [#def100] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::DHKey::createPrivate(const QCA::DLGroup&, const QCA::BigInteger&, const QCA::BigInteger&)’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2730:36: warning[-Wdeprecated-declarations]: ‘DH* DH_new()’ is deprecated: Since OpenSSL 3.0 # 2730 | DH *dh = DH_new(); # | ~~~~~~^~ /usr/include/openssl/dh.h:210:27: note: declared here # 210 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void); # | ^~~~~~ # 2728| evp.reset(); # 2729| # 2730|-> DH *dh = DH_new(); # 2731| BIGNUM *bnp = bi2bn(domain.p()); # 2732| BIGNUM *bng = bi2bn(domain.g()); Error: COMPILER_WARNING (CWE-477): [#def101] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2736:25: warning[-Wdeprecated-declarations]: ‘int DH_set0_key(DH*, BIGNUM*, BIGNUM*)’ is deprecated: Since OpenSSL 3.0 # 2736 | if (!DH_set0_key(dh, bnpub_key, bnpriv_key) || !DH_set0_pqg(dh, bnp, nullptr, bng)) { # | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dh.h:269:27: note: declared here # 269 | OSSL_DEPRECATEDIN_3_0 int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key); # | ^~~~~~~~~~~ # 2734| BIGNUM *bnpriv_key = bi2bn(x); # 2735| # 2736|-> if (!DH_set0_key(dh, bnpub_key, bnpriv_key) || !DH_set0_pqg(dh, bnp, nullptr, bng)) { # 2737| DH_free(dh); # 2738| return; Error: COMPILER_WARNING (CWE-477): [#def102] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2736:68: warning[-Wdeprecated-declarations]: ‘int DH_set0_pqg(DH*, BIGNUM*, BIGNUM*, BIGNUM*)’ is deprecated: Since OpenSSL 3.0 # 2736 | if (!DH_set0_key(dh, bnpub_key, bnpriv_key) || !DH_set0_pqg(dh, bnp, nullptr, bng)) { # | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dh.h:266:27: note: declared here # 266 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g); # | ^~~~~~~~~~~ # 2734| BIGNUM *bnpriv_key = bi2bn(x); # 2735| # 2736|-> if (!DH_set0_key(dh, bnpub_key, bnpriv_key) || !DH_set0_pqg(dh, bnp, nullptr, bng)) { # 2737| DH_free(dh); # 2738| return; Error: COMPILER_WARNING (CWE-477): [#def103] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2737:20: warning[-Wdeprecated-declarations]: ‘void DH_free(DH*)’ is deprecated: Since OpenSSL 3.0 # 2737 | DH_free(dh); # | ~~~~~~~^~~~ /usr/include/openssl/dh.h:211:28: note: declared here # 211 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh); # | ^~~~~~~ # 2735| # 2736| if (!DH_set0_key(dh, bnpub_key, bnpriv_key) || !DH_set0_pqg(dh, bnp, nullptr, bng)) { # 2737|-> DH_free(dh); # 2738| return; # 2739| } Error: COMPILER_WARNING (CWE-477): [#def104] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::DHKey::createPublic(const QCA::DLGroup&, const QCA::BigInteger&)’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2750:35: warning[-Wdeprecated-declarations]: ‘DH* DH_new()’ is deprecated: Since OpenSSL 3.0 # 2750 | DH *dh = DH_new(); # | ~~~~~~^~ /usr/include/openssl/dh.h:210:27: note: declared here # 210 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void); # | ^~~~~~ # 2748| evp.reset(); # 2749| # 2750|-> DH *dh = DH_new(); # 2751| BIGNUM *bnp = bi2bn(domain.p()); # 2752| BIGNUM *bng = bi2bn(domain.g()); Error: COMPILER_WARNING (CWE-477): [#def105] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2755:25: warning[-Wdeprecated-declarations]: ‘int DH_set0_key(DH*, BIGNUM*, BIGNUM*)’ is deprecated: Since OpenSSL 3.0 # 2755 | if (!DH_set0_key(dh, bnpub_key, nullptr) || !DH_set0_pqg(dh, bnp, nullptr, bng)) { # | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dh.h:269:27: note: declared here # 269 | OSSL_DEPRECATEDIN_3_0 int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key); # | ^~~~~~~~~~~ # 2753| BIGNUM *bnpub_key = bi2bn(y); # 2754| # 2755|-> if (!DH_set0_key(dh, bnpub_key, nullptr) || !DH_set0_pqg(dh, bnp, nullptr, bng)) { # 2756| DH_free(dh); # 2757| return; Error: COMPILER_WARNING (CWE-477): [#def106] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2755:65: warning[-Wdeprecated-declarations]: ‘int DH_set0_pqg(DH*, BIGNUM*, BIGNUM*, BIGNUM*)’ is deprecated: Since OpenSSL 3.0 # 2755 | if (!DH_set0_key(dh, bnpub_key, nullptr) || !DH_set0_pqg(dh, bnp, nullptr, bng)) { # | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dh.h:266:27: note: declared here # 266 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g); # | ^~~~~~~~~~~ # 2753| BIGNUM *bnpub_key = bi2bn(y); # 2754| # 2755|-> if (!DH_set0_key(dh, bnpub_key, nullptr) || !DH_set0_pqg(dh, bnp, nullptr, bng)) { # 2756| DH_free(dh); # 2757| return; Error: COMPILER_WARNING (CWE-477): [#def107] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2756:20: warning[-Wdeprecated-declarations]: ‘void DH_free(DH*)’ is deprecated: Since OpenSSL 3.0 # 2756 | DH_free(dh); # | ~~~~~~~^~~~ /usr/include/openssl/dh.h:211:28: note: declared here # 211 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh); # | ^~~~~~~ # 2754| # 2755| if (!DH_set0_key(dh, bnpub_key, nullptr) || !DH_set0_pqg(dh, bnp, nullptr, bng)) { # 2756|-> DH_free(dh); # 2757| return; # 2758| } Error: COMPILER_WARNING (CWE-477): [#def108] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::DLGroup opensslQCAPlugin::DHKey::domain() const’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2767:44: warning[-Wdeprecated-declarations]: ‘const dh_st* EVP_PKEY_get0_DH(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 2767 | const DH *dh = EVP_PKEY_get0_DH(evp.pkey); # | ~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/openssl/evp.h:1422:43: note: declared here # 1422 | OSSL_DEPRECATEDIN_3_0 const struct dh_st *EVP_PKEY_get0_DH(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~ # 2765| DLGroup domain() const override # 2766| { # 2767|-> const DH *dh = EVP_PKEY_get0_DH(evp.pkey); # 2768| const BIGNUM *bnp, *bng; # 2769| DH_get0_pqg(dh, &bnp, nullptr, &bng); Error: COMPILER_WARNING (CWE-477): [#def109] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2769:20: warning[-Wdeprecated-declarations]: ‘void DH_get0_pqg(const DH*, const BIGNUM**, const BIGNUM**, const BIGNUM**)’ is deprecated: Since OpenSSL 3.0 # 2769 | DH_get0_pqg(dh, &bnp, nullptr, &bng); # | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dh.h:264:28: note: declared here # 264 | OSSL_DEPRECATEDIN_3_0 void DH_get0_pqg(const DH *dh, const BIGNUM **p, # | ^~~~~~~~~~~ # 2767| const DH *dh = EVP_PKEY_get0_DH(evp.pkey); # 2768| const BIGNUM *bnp, *bng; # 2769|-> DH_get0_pqg(dh, &bnp, nullptr, &bng); # 2770| return DLGroup(bn2bi(bnp), bn2bi(bng)); # 2771| } Error: COMPILER_WARNING (CWE-477): [#def110] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::BigInteger opensslQCAPlugin::DHKey::y() const’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2775:44: warning[-Wdeprecated-declarations]: ‘const dh_st* EVP_PKEY_get0_DH(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 2775 | const DH *dh = EVP_PKEY_get0_DH(evp.pkey); # | ~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/openssl/evp.h:1422:43: note: declared here # 1422 | OSSL_DEPRECATEDIN_3_0 const struct dh_st *EVP_PKEY_get0_DH(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~ # 2773| BigInteger y() const override # 2774| { # 2775|-> const DH *dh = EVP_PKEY_get0_DH(evp.pkey); # 2776| const BIGNUM *bnpub_key; # 2777| DH_get0_key(dh, &bnpub_key, nullptr); Error: COMPILER_WARNING (CWE-477): [#def111] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2777:20: warning[-Wdeprecated-declarations]: ‘void DH_get0_key(const DH*, const BIGNUM**, const BIGNUM**)’ is deprecated: Since OpenSSL 3.0 # 2777 | DH_get0_key(dh, &bnpub_key, nullptr); # | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dh.h:267:28: note: declared here # 267 | OSSL_DEPRECATEDIN_3_0 void DH_get0_key(const DH *dh, const BIGNUM **pub_key, # | ^~~~~~~~~~~ # 2775| const DH *dh = EVP_PKEY_get0_DH(evp.pkey); # 2776| const BIGNUM *bnpub_key; # 2777|-> DH_get0_key(dh, &bnpub_key, nullptr); # 2778| return bn2bi(bnpub_key); # 2779| } Error: COMPILER_WARNING (CWE-477): [#def112] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::BigInteger opensslQCAPlugin::DHKey::x() const’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2783:44: warning[-Wdeprecated-declarations]: ‘const dh_st* EVP_PKEY_get0_DH(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 # 2783 | const DH *dh = EVP_PKEY_get0_DH(evp.pkey); # | ~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/openssl/evp.h:1422:43: note: declared here # 1422 | OSSL_DEPRECATEDIN_3_0 const struct dh_st *EVP_PKEY_get0_DH(const EVP_PKEY *pkey); # | ^~~~~~~~~~~~~~~~ # 2781| BigInteger x() const override # 2782| { # 2783|-> const DH *dh = EVP_PKEY_get0_DH(evp.pkey); # 2784| const BIGNUM *bnpriv_key; # 2785| DH_get0_key(dh, nullptr, &bnpriv_key); Error: COMPILER_WARNING (CWE-477): [#def113] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2785:20: warning[-Wdeprecated-declarations]: ‘void DH_get0_key(const DH*, const BIGNUM**, const BIGNUM**)’ is deprecated: Since OpenSSL 3.0 # 2785 | DH_get0_key(dh, nullptr, &bnpriv_key); # | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/dh.h:267:28: note: declared here # 267 | OSSL_DEPRECATEDIN_3_0 void DH_get0_key(const DH *dh, const BIGNUM **pub_key, # | ^~~~~~~~~~~ # 2783| const DH *dh = EVP_PKEY_get0_DH(evp.pkey); # 2784| const BIGNUM *bnpriv_key; # 2785|-> DH_get0_key(dh, nullptr, &bnpriv_key); # 2786| return bn2bi(bnpriv_key); # 2787| } Error: COMPILER_WARNING (CWE-477): [#def114] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In constructor ‘opensslQCAPlugin::QCA_RSA_METHOD::QCA_RSA_METHOD(const QCA::RSAPrivateKey&, RSA*)’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2823:23: warning[-Wdeprecated-declarations]: ‘int RSA_set_method(RSA*, const RSA_METHOD*)’ is deprecated: Since OpenSSL 3.0 # 2823 | RSA_set_method(rsa, rsa_method()); # | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:313:27: note: declared here # 313 | OSSL_DEPRECATEDIN_3_0 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth); # | ^~~~~~~~~~~~~~ # 2821| { # 2822| key = _key; # 2823|-> RSA_set_method(rsa, rsa_method()); # 2824| RSA_set_app_data(rsa, this); # 2825| BIGNUM *bnn = bi2bn(_key.n()); Error: COMPILER_WARNING (CWE-477): [#def115] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2828:21: warning[-Wdeprecated-declarations]: ‘int RSA_set0_key(RSA*, BIGNUM*, BIGNUM*, BIGNUM*)’ is deprecated: Since OpenSSL 3.0 # 2828 | RSA_set0_key(rsa, bnn, bne, nullptr); # | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:218:27: note: declared here # 218 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d); # | ^~~~~~~~~~~~ # 2826| BIGNUM *bne = bi2bn(_key.e()); # 2827| # 2828|-> RSA_set0_key(rsa, bnn, bne, nullptr); # 2829| } # 2830| Error: COMPILER_WARNING (CWE-477): [#def116] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2836:31: warning[-Wdeprecated-declarations]: ‘RSA_METHOD* RSA_meth_dup(const RSA_METHOD*)’ is deprecated: Since OpenSSL 3.0 # 2836 | ops = RSA_meth_dup(RSA_get_default_method()); # | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:486:35: note: declared here # 486 | OSSL_DEPRECATEDIN_3_0 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth); # | ^~~~~~~~~~~~ # 2834| # 2835| if (!ops) { # 2836|-> ops = RSA_meth_dup(RSA_get_default_method()); # 2837| RSA_meth_set_priv_enc(ops, nullptr); // pkcs11_rsa_encrypt # 2838| RSA_meth_set_priv_dec(ops, rsa_priv_dec); // pkcs11_rsa_encrypt Error: COMPILER_WARNING (CWE-477): [#def117] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘RSA_METHOD* opensslQCAPlugin::QCA_RSA_METHOD::rsa_method()’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2836:54: warning[-Wdeprecated-declarations]: ‘const RSA_METHOD* RSA_get_default_method()’ is deprecated: Since OpenSSL 3.0 # 2836 | ops = RSA_meth_dup(RSA_get_default_method()); # | ~~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/openssl/rsa.h:310:41: note: declared here # 310 | OSSL_DEPRECATEDIN_3_0 const RSA_METHOD *RSA_get_default_method(void); # | ^~~~~~~~~~~~~~~~~~~~~~ # 2834| # 2835| if (!ops) { # 2836|-> ops = RSA_meth_dup(RSA_get_default_method()); # 2837| RSA_meth_set_priv_enc(ops, nullptr); // pkcs11_rsa_encrypt # 2838| RSA_meth_set_priv_dec(ops, rsa_priv_dec); // pkcs11_rsa_encrypt Error: COMPILER_WARNING (CWE-477): [#def118] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2837:34: warning[-Wdeprecated-declarations]: ‘int RSA_meth_set_priv_enc(RSA_METHOD*, int (*)(int, const unsigned char*, unsigned char*, RSA*, int))’ is deprecated: Since OpenSSL 3.0 # 2837 | RSA_meth_set_priv_enc(ops, nullptr); // pkcs11_rsa_encrypt # | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:521:5: note: declared here # 521 | int RSA_meth_set_priv_enc(RSA_METHOD *rsa, # | ^~~~~~~~~~~~~~~~~~~~~ # 2835| if (!ops) { # 2836| ops = RSA_meth_dup(RSA_get_default_method()); # 2837|-> RSA_meth_set_priv_enc(ops, nullptr); // pkcs11_rsa_encrypt # 2838| RSA_meth_set_priv_dec(ops, rsa_priv_dec); // pkcs11_rsa_encrypt # 2839| RSA_meth_set_sign(ops, nullptr); Error: COMPILER_WARNING (CWE-477): [#def119] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2838:34: warning[-Wdeprecated-declarations]: ‘int RSA_meth_set_priv_dec(RSA_METHOD*, int (*)(int, const unsigned char*, unsigned char*, RSA*, int))’ is deprecated: Since OpenSSL 3.0 # 2838 | RSA_meth_set_priv_dec(ops, rsa_priv_dec); // pkcs11_rsa_encrypt # | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:531:5: note: declared here # 531 | int RSA_meth_set_priv_dec(RSA_METHOD *rsa, # | ^~~~~~~~~~~~~~~~~~~~~ # 2836| ops = RSA_meth_dup(RSA_get_default_method()); # 2837| RSA_meth_set_priv_enc(ops, nullptr); // pkcs11_rsa_encrypt # 2838|-> RSA_meth_set_priv_dec(ops, rsa_priv_dec); // pkcs11_rsa_encrypt # 2839| RSA_meth_set_sign(ops, nullptr); # 2840| RSA_meth_set_verify(ops, nullptr); // pkcs11_rsa_verify Error: COMPILER_WARNING (CWE-477): [#def120] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2839:30: warning[-Wdeprecated-declarations]: ‘int RSA_meth_set_sign(RSA_METHOD*, int (*)(int, const unsigned char*, unsigned int, unsigned char*, unsigned int*, const RSA*))’ is deprecated: Since OpenSSL 3.0 # 2839 | RSA_meth_set_sign(ops, nullptr); # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:574:5: note: declared here # 574 | int RSA_meth_set_sign(RSA_METHOD *rsa, # | ^~~~~~~~~~~~~~~~~ # 2837| RSA_meth_set_priv_enc(ops, nullptr); // pkcs11_rsa_encrypt # 2838| RSA_meth_set_priv_dec(ops, rsa_priv_dec); // pkcs11_rsa_encrypt # 2839|-> RSA_meth_set_sign(ops, nullptr); # 2840| RSA_meth_set_verify(ops, nullptr); // pkcs11_rsa_verify # 2841| RSA_meth_set_finish(ops, rsa_finish); Error: COMPILER_WARNING (CWE-477): [#def121] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2840:32: warning[-Wdeprecated-declarations]: ‘int RSA_meth_set_verify(RSA_METHOD*, int (*)(int, const unsigned char*, unsigned int, const unsigned char*, unsigned int, const RSA*))’ is deprecated: Since OpenSSL 3.0 # 2840 | RSA_meth_set_verify(ops, nullptr); // pkcs11_rsa_verify # | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:587:5: note: declared here # 587 | int RSA_meth_set_verify(RSA_METHOD *rsa, # | ^~~~~~~~~~~~~~~~~~~ # 2838| RSA_meth_set_priv_dec(ops, rsa_priv_dec); // pkcs11_rsa_encrypt # 2839| RSA_meth_set_sign(ops, nullptr); # 2840|-> RSA_meth_set_verify(ops, nullptr); // pkcs11_rsa_verify # 2841| RSA_meth_set_finish(ops, rsa_finish); # 2842| } Error: COMPILER_WARNING (CWE-477): [#def122] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2841:32: warning[-Wdeprecated-declarations]: ‘int RSA_meth_set_finish(RSA_METHOD*, int (*)(RSA*))’ is deprecated: Since OpenSSL 3.0 # 2841 | RSA_meth_set_finish(ops, rsa_finish); # | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/openssl/rsa.h:565:5: note: declared here # 565 | int RSA_meth_set_finish(RSA_METHOD *rsa, int (*finish) (RSA *rsa)); # | ^~~~~~~~~~~~~~~~~~~ # 2839| RSA_meth_set_sign(ops, nullptr); # 2840| RSA_meth_set_verify(ops, nullptr); // pkcs11_rsa_verify # 2841|-> RSA_meth_set_finish(ops, rsa_finish); # 2842| } # 2843| return ops; Error: COMPILER_WARNING (CWE-477): [#def123] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In function ‘RSA* opensslQCAPlugin::createFromExisting(const QCA::RSAPrivateKey&)’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:2886:21: warning[-Wdeprecated-declarations]: ‘RSA* RSA_new()’ is deprecated: Since OpenSSL 3.0 # 2886 | RSA *r = RSA_new(); # | ~~~~~~~^~ /usr/include/openssl/rsa.h:212:28: note: declared here # 212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); # | ^~~~~~~ # 2884| static RSA *createFromExisting(const RSAPrivateKey &key) # 2885| { # 2886|-> RSA *r = RSA_new(); # 2887| new QCA_RSA_METHOD(key, r); // will delete itself on RSA_free # 2888| return r; Error: COMPILER_WARNING (CWE-477): [#def124] qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In function ‘QDateTime opensslQCAPlugin::ASN1_UTCTIME_QDateTime(const ASN1_UTCTIME*, int*)’ qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:3373:24: warning[-Wdeprecated-declarations]: ‘void QDateTime::setTimeSpec(Qt::TimeSpec)’ is deprecated: Use setTimeZone() instead # 3373 | qdt.setTimeSpec(Qt::UTC); # | ~~~~~~~~~~~~~~~^~~~~~~~~ /usr/include/qt6/QtCore/QDateTime:1: included_from: Included from here. qca-2.3.10/include/QtCrypto/qca_cert.h:38: included_from: Included from here. qca-2.3.10/include/QtCrypto/qca.h:37: included_from: Included from here. qca-2.3.10/include/QtCrypto/QtCrypto:1: included_from: Included from here. qca-2.3.10/plugins/qca-ossl/qca-ossl.cpp:25: included_from: Included from here. /usr/include/qt6/QtCore/qdatetime.h:407:10: note: declared here # 407 | void setTimeSpec(Qt::TimeSpec spec); # | ^~~~~~~~~~~ # 3371| qdt.setTime(qtime); # 3372| if (gmt) # 3373|-> qdt.setTimeSpec(Qt::UTC); # 3374| auq_err: # 3375| if (isGmt) Error: COMPILER_WARNING (CWE-477): [#def125] qca-2.3.10/plugins/qca-pkcs11/qca-pkcs11.cpp: scope_hint: In member function ‘void pkcs11Provider::_logHook(unsigned int, const char*, __va_list_tag*)’ qca-2.3.10/plugins/qca-pkcs11/qca-pkcs11.cpp:2177:15: warning[-Wdeprecated-declarations]: ‘int qvsnprintf(char*, size_t, const char*, __va_list_tag*)’ is deprecated: Use C++11 std::vsnprintf() instead, taking care to ensure that you didn't rely on QString::asprintf() idiosyncrasies that qvsnprintf might, but std::vsnprintf() does not, support. # 2177 | qvsnprintf(buffer, sizeof(buffer) - 1, format, args); # | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt6/QtCore/qbytearray.h:14: included_from: Included from here. /usr/include/qt6/QtCore/qmetatype.h:11: included_from: Included from here. /usr/include/qt6/QtCore/QMetaType:1: included_from: Included from here. qca-2.3.10/include/QtCrypto/qca_tools.h:40: included_from: Included from here. qca-2.3.10/include/QtCrypto/qca_support.h:40: included_from: Included from here. qca-2.3.10/include/QtCrypto/qca_core.h:38: included_from: Included from here. qca-2.3.10/include/QtCrypto/qca_basic.h:37: included_from: Included from here. qca-2.3.10/include/QtCrypto/qca.h:36: included_from: Included from here. qca-2.3.10/include/QtCrypto/QtCrypto:1: included_from: Included from here. qca-2.3.10/plugins/qca-pkcs11/qca-pkcs11.cpp:21: included_from: Included from here. /usr/include/qt6/QtCore/qbytearrayalgorithms.h:150:19: note: declared here # 150 | Q_CORE_EXPORT int qvsnprintf(char *str, size_t n, const char *fmt, va_list ap) # | ^~~~~~~~~~ # 2175| // QCA_logTextMessage (QString ().vsprintf (format, args), severity); # 2176| char buffer[2048]; # 2177|-> qvsnprintf(buffer, sizeof(buffer) - 1, format, args); # 2178| buffer[sizeof(buffer) - 1] = '\x0'; # 2179| QCA_logTextMessage(QString::fromLatin1(buffer), severity); Error: COMPILER_WARNING (CWE-252): [#def126] qca-2.3.10/src/qca_core.cpp: scope_hint: In function ‘void QCA::init(MemoryMode, int)’ qca-2.3.10/src/qca_core.cpp:220:15: warning[-Wunused-result]: ignoring return value of ‘int setuid(__uid_t)’ declared with attribute ‘warn_unused_result’ # 220 | setuid(getuid()); # | ~~~~~~^~~~~~~~~~ # 218| #if defined(Q_OS_UNIX) # 219| if ((geteuid() == 0) && drop_root) { # 220|-> setuid(getuid()); # 221| } # 222| #endif Error: COMPILER_WARNING (CWE-477): [#def127] /usr/include/qt6/QtTest/qtest.h:13: included_from: Included from here. /usr/include/qt6/QtTest/QTest:1: included_from: Included from here. qca-2.3.10/unittest/certunittest/certunittest.cpp:26: included_from: Included from here. qca-2.3.10/unittest/certunittest/certunittest.cpp: scope_hint: In member function ‘void CertUnitTest::CAcertstest()’ qca-2.3.10/unittest/certunittest/certunittest.cpp:137:77: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 137 | QDateTime(QDate(2001, 8, 17), QTime(8, 30, 39), Qt::UTC).toString()); # | ^ /usr/include/qt6/QtCore/qcborvalue.h:10: included_from: Included from here. /usr/include/qt6/QtCore/qcborarray.h:7: included_from: Included from here. /usr/include/qt6/QtTest/qtesttostring.h:17: included_from: Included from here. /usr/include/qt6/QtTest/qtestcase.h:8: included_from: Included from here. /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 135| # 136| QCOMPARE(ca1.notValidBefore().toString(), # 137|-> QDateTime(QDate(2001, 8, 17), QTime(8, 30, 39), Qt::UTC).toString()); # 138| QCOMPARE(ca1.notValidAfter().toString(), # 139| QDateTime(QDate(2011, 8, 15), QTime(8, 30, 39), Qt::UTC).toString()); Error: COMPILER_WARNING (CWE-477): [#def128] qca-2.3.10/unittest/certunittest/certunittest.cpp:139:77: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 139 | QDateTime(QDate(2011, 8, 15), QTime(8, 30, 39), Qt::UTC).toString()); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 137| QDateTime(QDate(2001, 8, 17), QTime(8, 30, 39), Qt::UTC).toString()); # 138| QCOMPARE(ca1.notValidAfter().toString(), # 139|-> QDateTime(QDate(2011, 8, 15), QTime(8, 30, 39), Qt::UTC).toString()); # 140| # 141| QCOMPARE(ca1.constraints().contains(QCA::DigitalSignature) == true, true); Error: COMPILER_WARNING (CWE-477): [#def129] qca-2.3.10/unittest/certunittest/certunittest.cpp: scope_hint: In member function ‘void CertUnitTest::qualitysslcatest()’ qca-2.3.10/unittest/certunittest/certunittest.cpp:192:78: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 192 | QDateTime(QDate(2002, 8, 27), QTime(19, 02, 00), Qt::UTC).toString()); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 190| # 191| QCOMPARE(ca1.notValidBefore().toString(), # 192|-> QDateTime(QDate(2002, 8, 27), QTime(19, 02, 00), Qt::UTC).toString()); # 193| QCOMPARE(ca1.notValidAfter().toString(), # 194| QDateTime(QDate(2012, 8, 27), QTime(23, 59, 00), Qt::UTC).toString()); Error: COMPILER_WARNING (CWE-477): [#def130] qca-2.3.10/unittest/certunittest/certunittest.cpp:194:78: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 194 | QDateTime(QDate(2012, 8, 27), QTime(23, 59, 00), Qt::UTC).toString()); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 192| QDateTime(QDate(2002, 8, 27), QTime(19, 02, 00), Qt::UTC).toString()); # 193| QCOMPARE(ca1.notValidAfter().toString(), # 194|-> QDateTime(QDate(2012, 8, 27), QTime(23, 59, 00), Qt::UTC).toString()); # 195| # 196| QCOMPARE(ca1.pathLimit(), 0); Error: COMPILER_WARNING (CWE-477): [#def131] qca-2.3.10/unittest/certunittest/certunittest.cpp: scope_hint: In member function ‘void CertUnitTest::checkExpiredClientCerts()’ qca-2.3.10/unittest/certunittest/certunittest.cpp:243:77: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 243 | QDateTime(QDate(2001, 8, 17), QTime(8, 32, 38), Qt::UTC).toString()); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 241| # 242| QCOMPARE(client1.notValidBefore().toString(), # 243|-> QDateTime(QDate(2001, 8, 17), QTime(8, 32, 38), Qt::UTC).toString()); # 244| QCOMPARE(client1.notValidAfter().toString(), # 245| QDateTime(QDate(2006, 8, 16), QTime(8, 32, 38), Qt::UTC).toString()); Error: COMPILER_WARNING (CWE-477): [#def132] qca-2.3.10/unittest/certunittest/certunittest.cpp:245:77: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 245 | QDateTime(QDate(2006, 8, 16), QTime(8, 32, 38), Qt::UTC).toString()); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 243| QDateTime(QDate(2001, 8, 17), QTime(8, 32, 38), Qt::UTC).toString()); # 244| QCOMPARE(client1.notValidAfter().toString(), # 245|-> QDateTime(QDate(2006, 8, 16), QTime(8, 32, 38), Qt::UTC).toString()); # 246| # 247| QCOMPARE(client1.constraints().contains(QCA::DigitalSignature) == true, true); Error: COMPILER_WARNING (CWE-477): [#def133] qca-2.3.10/unittest/certunittest/certunittest.cpp: scope_hint: In member function ‘void CertUnitTest::checkClientCerts()’ qca-2.3.10/unittest/certunittest/certunittest.cpp:357:78: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 357 | QDateTime(QDate(2013, 7, 31), QTime(15, 14, 28), Qt::UTC).toString()); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 355| # 356| QCOMPARE(client2.notValidBefore().toString(), # 357|-> QDateTime(QDate(2013, 7, 31), QTime(15, 14, 28), Qt::UTC).toString()); # 358| QCOMPARE(client2.notValidAfter().toString(), # 359| QDateTime(QDate(2033, 7, 26), QTime(15, 14, 28), Qt::UTC).toString()); Error: COMPILER_WARNING (CWE-477): [#def134] qca-2.3.10/unittest/certunittest/certunittest.cpp:359:78: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 359 | QDateTime(QDate(2033, 7, 26), QTime(15, 14, 28), Qt::UTC).toString()); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 357| QDateTime(QDate(2013, 7, 31), QTime(15, 14, 28), Qt::UTC).toString()); # 358| QCOMPARE(client2.notValidAfter().toString(), # 359|-> QDateTime(QDate(2033, 7, 26), QTime(15, 14, 28), Qt::UTC).toString()); # 360| # 361| QCOMPARE(client2.constraints().contains(QCA::DigitalSignature) == true, true); Error: COMPILER_WARNING (CWE-477): [#def135] qca-2.3.10/unittest/certunittest/certunittest.cpp: scope_hint: In member function ‘void CertUnitTest::derCAcertstest()’ qca-2.3.10/unittest/certunittest/certunittest.cpp:490:77: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 490 | QDateTime(QDate(2001, 8, 17), QTime(8, 30, 39), Qt::UTC).toString()); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 488| # 489| QCOMPARE(ca1.notValidBefore().toString(), # 490|-> QDateTime(QDate(2001, 8, 17), QTime(8, 30, 39), Qt::UTC).toString()); # 491| QCOMPARE(ca1.notValidAfter().toString(), # 492| QDateTime(QDate(2011, 8, 15), QTime(8, 30, 39), Qt::UTC).toString()); Error: COMPILER_WARNING (CWE-477): [#def136] qca-2.3.10/unittest/certunittest/certunittest.cpp:492:77: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 492 | QDateTime(QDate(2011, 8, 15), QTime(8, 30, 39), Qt::UTC).toString()); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 490| QDateTime(QDate(2001, 8, 17), QTime(8, 30, 39), Qt::UTC).toString()); # 491| QCOMPARE(ca1.notValidAfter().toString(), # 492|-> QDateTime(QDate(2011, 8, 15), QTime(8, 30, 39), Qt::UTC).toString()); # 493| # 494| QCOMPARE(ca1.constraints().contains(QCA::DigitalSignature) == true, true); Error: COMPILER_WARNING (CWE-477): [#def137] qca-2.3.10/unittest/certunittest/certunittest.cpp: scope_hint: In member function ‘void CertUnitTest::checkExpiredServerCerts()’ qca-2.3.10/unittest/certunittest/certunittest.cpp:802:77: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 802 | QDateTime(QDate(2001, 8, 17), QTime(8, 46, 24), Qt::UTC).toString()); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 800| # 801| QCOMPARE(server1.notValidBefore().toString(), # 802|-> QDateTime(QDate(2001, 8, 17), QTime(8, 46, 24), Qt::UTC).toString()); # 803| QCOMPARE(server1.notValidAfter().toString(), # 804| QDateTime(QDate(2006, 8, 16), QTime(8, 46, 24), Qt::UTC).toString()); Error: COMPILER_WARNING (CWE-477): [#def138] qca-2.3.10/unittest/certunittest/certunittest.cpp:804:77: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 804 | QDateTime(QDate(2006, 8, 16), QTime(8, 46, 24), Qt::UTC).toString()); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 802| QDateTime(QDate(2001, 8, 17), QTime(8, 46, 24), Qt::UTC).toString()); # 803| QCOMPARE(server1.notValidAfter().toString(), # 804|-> QDateTime(QDate(2006, 8, 16), QTime(8, 46, 24), Qt::UTC).toString()); # 805| # 806| QCOMPARE(server1.constraints().contains(QCA::DigitalSignature) == true, true); Error: COMPILER_WARNING (CWE-477): [#def139] qca-2.3.10/unittest/certunittest/certunittest.cpp: scope_hint: In member function ‘void CertUnitTest::checkServerCerts()’ qca-2.3.10/unittest/certunittest/certunittest.cpp:910:78: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 910 | QDateTime(QDate(2013, 7, 31), QTime(15, 23, 25), Qt::UTC).toString()); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 908| # 909| QCOMPARE(server1.notValidBefore().toString(), # 910|-> QDateTime(QDate(2013, 7, 31), QTime(15, 23, 25), Qt::UTC).toString()); # 911| QCOMPARE(server1.notValidAfter().toString(), # 912| QDateTime(QDate(2033, 7, 26), QTime(15, 23, 25), Qt::UTC).toString()); Error: COMPILER_WARNING (CWE-477): [#def140] qca-2.3.10/unittest/certunittest/certunittest.cpp:912:78: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 912 | QDateTime(QDate(2033, 7, 26), QTime(15, 23, 25), Qt::UTC).toString()); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 910| QDateTime(QDate(2013, 7, 31), QTime(15, 23, 25), Qt::UTC).toString()); # 911| QCOMPARE(server1.notValidAfter().toString(), # 912|-> QDateTime(QDate(2033, 7, 26), QTime(15, 23, 25), Qt::UTC).toString()); # 913| # 914| QCOMPARE(server1.constraints().contains(QCA::DigitalSignature) == true, true); Error: COMPILER_WARNING (CWE-477): [#def141] qca-2.3.10/unittest/certunittest/certunittest.cpp: scope_hint: In member function ‘void CertUnitTest::crl()’ qca-2.3.10/unittest/certunittest/certunittest.cpp:1038:97: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 1038 | QCOMPARE(crl1.thisUpdate(), QDateTime(QDate(2001, 8, 17), QTime(11, 12, 03), Qt::UTC)); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 1036| QCOMPARE(QCA::arrayToHex(crl1.issuerKeyId()), QLatin1String("")); # 1037| # 1038|-> QCOMPARE(crl1.thisUpdate(), QDateTime(QDate(2001, 8, 17), QTime(11, 12, 03), Qt::UTC)); # 1039| QCOMPARE(crl1.nextUpdate(), QDateTime(QDate(2006, 8, 16), QTime(11, 12, 03), Qt::UTC)); # 1040| Error: COMPILER_WARNING (CWE-477): [#def142] qca-2.3.10/unittest/certunittest/certunittest.cpp:1039:97: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 1039 | QCOMPARE(crl1.nextUpdate(), QDateTime(QDate(2006, 8, 16), QTime(11, 12, 03), Qt::UTC)); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 1037| # 1038| QCOMPARE(crl1.thisUpdate(), QDateTime(QDate(2001, 8, 17), QTime(11, 12, 03), Qt::UTC)); # 1039|-> QCOMPARE(crl1.nextUpdate(), QDateTime(QDate(2006, 8, 16), QTime(11, 12, 03), Qt::UTC)); # 1040| # 1041| QCOMPARE(crl1.signatureAlgorithm(), QCA::EMSA3_MD5); Error: COMPILER_WARNING (CWE-477): [#def143] qca-2.3.10/unittest/certunittest/certunittest.cpp:1055:101: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 1055 | QCOMPARE(revokedList[0].time(), QDateTime(QDate(2001, 8, 17), QTime(11, 10, 39), Qt::UTC)); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 1053| QCOMPARE(revokedList[0].reason(), QCA::CRLEntry::Unspecified); # 1054| QCOMPARE(revokedList[1].reason(), QCA::CRLEntry::Unspecified); # 1055|-> QCOMPARE(revokedList[0].time(), QDateTime(QDate(2001, 8, 17), QTime(11, 10, 39), Qt::UTC)); # 1056| QCOMPARE(revokedList[1].time(), QDateTime(QDate(2001, 8, 17), QTime(11, 11, 59), Qt::UTC)); # 1057| Error: COMPILER_WARNING (CWE-477): [#def144] qca-2.3.10/unittest/certunittest/certunittest.cpp:1056:101: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 1056 | QCOMPARE(revokedList[1].time(), QDateTime(QDate(2001, 8, 17), QTime(11, 11, 59), Qt::UTC)); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 1054| QCOMPARE(revokedList[1].reason(), QCA::CRLEntry::Unspecified); # 1055| QCOMPARE(revokedList[0].time(), QDateTime(QDate(2001, 8, 17), QTime(11, 10, 39), Qt::UTC)); # 1056|-> QCOMPARE(revokedList[1].time(), QDateTime(QDate(2001, 8, 17), QTime(11, 11, 59), Qt::UTC)); # 1057| # 1058| // convert to DER Error: COMPILER_WARNING (CWE-477): [#def145] qca-2.3.10/unittest/certunittest/certunittest.cpp: scope_hint: In member function ‘void CertUnitTest::crl2()’ qca-2.3.10/unittest/certunittest/certunittest.cpp:1094:97: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 1094 | QCOMPARE(crl1.thisUpdate(), QDateTime(QDate(2001, 4, 19), QTime(14, 57, 20), Qt::UTC)); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 1092| QVERIFY(issuer.contains(QCA::CommonName, QStringLiteral("Good CA"))); # 1093| # 1094|-> QCOMPARE(crl1.thisUpdate(), QDateTime(QDate(2001, 4, 19), QTime(14, 57, 20), Qt::UTC)); # 1095| QCOMPARE(crl1.nextUpdate(), QDateTime(QDate(2011, 4, 19), QTime(14, 57, 20), Qt::UTC)); # 1096| Error: COMPILER_WARNING (CWE-477): [#def146] qca-2.3.10/unittest/certunittest/certunittest.cpp:1095:97: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 1095 | QCOMPARE(crl1.nextUpdate(), QDateTime(QDate(2011, 4, 19), QTime(14, 57, 20), Qt::UTC)); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 1093| # 1094| QCOMPARE(crl1.thisUpdate(), QDateTime(QDate(2001, 4, 19), QTime(14, 57, 20), Qt::UTC)); # 1095|-> QCOMPARE(crl1.nextUpdate(), QDateTime(QDate(2011, 4, 19), QTime(14, 57, 20), Qt::UTC)); # 1096| # 1097| QCOMPARE(crl1.signatureAlgorithm(), QCA::EMSA3_SHA1); Error: COMPILER_WARNING (CWE-477): [#def147] qca-2.3.10/unittest/certunittest/certunittest.cpp:1111:101: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 1111 | QCOMPARE(revokedList[0].time(), QDateTime(QDate(2001, 4, 19), QTime(14, 57, 20), Qt::UTC)); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 1109| QCOMPARE(revokedList[0].reason(), QCA::CRLEntry::KeyCompromise); # 1110| QCOMPARE(revokedList[1].reason(), QCA::CRLEntry::KeyCompromise); # 1111|-> QCOMPARE(revokedList[0].time(), QDateTime(QDate(2001, 4, 19), QTime(14, 57, 20), Qt::UTC)); # 1112| QCOMPARE(revokedList[1].time(), QDateTime(QDate(2001, 4, 19), QTime(14, 57, 20), Qt::UTC)); # 1113| Error: COMPILER_WARNING (CWE-477): [#def148] qca-2.3.10/unittest/certunittest/certunittest.cpp:1112:101: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead # 1112 | QCOMPARE(revokedList[1].time(), QDateTime(QDate(2001, 4, 19), QTime(14, 57, 20), Qt::UTC)); # | ^ /usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here # 362 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); # | ^~~~~~~~~ # 1110| QCOMPARE(revokedList[1].reason(), QCA::CRLEntry::KeyCompromise); # 1111| QCOMPARE(revokedList[0].time(), QDateTime(QDate(2001, 4, 19), QTime(14, 57, 20), Qt::UTC)); # 1112|-> QCOMPARE(revokedList[1].time(), QDateTime(QDate(2001, 4, 19), QTime(14, 57, 20), Qt::UTC)); # 1113| # 1114| // convert to DER
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-175.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | qca-2.3.10-1.fc43 |
store-results-to | /tmp/tmp20wh29ll/qca-2.3.10-1.fc43.tar.xz |
time-created | 2025-04-25 15:18:23 |
time-finished | 2025-04-25 15:24:35 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp20wh29ll/qca-2.3.10-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp20wh29ll/qca-2.3.10-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |