qca-2.3.8-1.fc41
List of Defects
Error: CLANG_WARNING: [#def1]
qca-2.3.8-build/qca-2.3.8/examples/randomtest/randomtest.cpp:69:5: warning[deadcode.DeadStores]: Value stored to 'randChar' is never read
# 67| // This isn't normally the easiest way, but it does work
# 68| QCA::Random myRandomObject;
# 69|-> randChar = myRandomObject.nextByte();
# 70| tenBytes = myRandomObject.nextBytes(10);
# 71| return 0;
Error: COMPILER_WARNING (CWE-252): [#def2]
qca-2.3.8-build/qca-2.3.8/examples/saslclient/saslclient.cpp: scope_hint: In function ‘QString prompt(const QString&)’
qca-2.3.8-build/qca-2.3.8/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: CLANG_WARNING: [#def3]
qca-2.3.8-build/qca-2.3.8/plugins/qca-cyrus-sasl/qca-cyrus-sasl.cpp:441:33: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 439|
# 440| out_mech = QString::fromLatin1(m);
# 441|-> if (in_sendFirst && clientout) {
# 442| out_buf = makeByteArray(clientout, clientoutlen);
# 443| result_haveClientInit = true;
Error: COMPILER_WARNING (CWE-843): [#def4]
qca-2.3.8-build/qca-2.3.8/plugins/qca-cyrus-sasl/qca-cyrus-sasl.cpp: scope_hint: In member function ‘virtual void saslQCAPlugin::saslContext::startServer(const QString&, bool)’
qca-2.3.8-build/qca-2.3.8/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): [#def5]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘void {anonymous}::DsaDeleter::operator()(DSA*)’
qca-2.3.8-build/qca-2.3.8/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.8-build/qca-2.3.8/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): [#def6]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In constructor ‘opensslQCAPlugin::opensslHMACContext::opensslHMACContext(const EVP_MD*, QCA::Provider*, const QString&)’
qca-2.3.8-build/qca-2.3.8/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.8-build/qca-2.3.8/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): [#def7]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In copy constructor ‘opensslQCAPlugin::opensslHMACContext::opensslHMACContext(const opensslQCAPlugin::opensslHMACContext&)’
qca-2.3.8-build/qca-2.3.8/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): [#def8]
qca-2.3.8-build/qca-2.3.8/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): [#def9]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In destructor ‘virtual opensslQCAPlugin::opensslHMACContext::~opensslHMACContext()’
qca-2.3.8-build/qca-2.3.8/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): [#def10]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::opensslHMACContext::setup(const QCA::SymmetricKey&)’
qca-2.3.8-build/qca-2.3.8/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): [#def11]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::opensslHMACContext::update(const QCA::MemoryRegion&)’
qca-2.3.8-build/qca-2.3.8/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): [#def12]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::opensslHMACContext::final(QCA::MemoryRegion*)’
qca-2.3.8-build/qca-2.3.8/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): [#def13]
qca-2.3.8-build/qca-2.3.8/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): [#def14]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘QCA::SecureArray opensslQCAPlugin::EVPKey::endSign()’
qca-2.3.8-build/qca-2.3.8/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.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp:29: included_from: Included from here.
/usr/include/openssl/evp.h:1365:22: note: declared here
# 1365 | 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): [#def15]
qca-2.3.8-build/qca-2.3.8/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): [#def16]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘bool opensslQCAPlugin::EVPKey::endVerify(const QCA::SecureArray&)’
qca-2.3.8-build/qca-2.3.8/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:1365:22: note: declared here
# 1365 | 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): [#def17]
qca-2.3.8-build/qca-2.3.8/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): [#def18]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In function ‘bool opensslQCAPlugin::make_dlgroup(const QByteArray&, int, int, DLParams*)’
qca-2.3.8-build/qca-2.3.8/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): [#def19]
qca-2.3.8-build/qca-2.3.8/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): [#def20]
qca-2.3.8-build/qca-2.3.8/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): [#def21]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In lambda function
qca-2.3.8-build/qca-2.3.8/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): [#def22]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In destructor ‘virtual opensslQCAPlugin::RSAKeyMaker::~RSAKeyMaker()’
qca-2.3.8-build/qca-2.3.8/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): [#def23]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::RSAKeyMaker::run()’
qca-2.3.8-build/qca-2.3.8/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): [#def24]
qca-2.3.8-build/qca-2.3.8/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): [#def25]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::RSAKey::convertToPublic()’
qca-2.3.8-build/qca-2.3.8/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:1365:22: note: declared here
# 1365 | 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): [#def26]
qca-2.3.8-build/qca-2.3.8/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:44: 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): [#def27]
qca-2.3.8-build/qca-2.3.8/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): [#def28]
qca-2.3.8-build/qca-2.3.8/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): [#def29]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual int opensslQCAPlugin::RSAKey::maximumEncryptSize(QCA::EncryptionAlgorithm) const’
qca-2.3.8-build/qca-2.3.8/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:1365:22: note: declared here
# 1365 | 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): [#def30]
qca-2.3.8-build/qca-2.3.8/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): [#def31]
qca-2.3.8-build/qca-2.3.8/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): [#def32]
qca-2.3.8-build/qca-2.3.8/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): [#def33]
qca-2.3.8-build/qca-2.3.8/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): [#def34]
qca-2.3.8-build/qca-2.3.8/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.8-build/qca-2.3.8/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:1365:22: note: declared here
# 1365 | 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): [#def35]
qca-2.3.8-build/qca-2.3.8/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): [#def36]
qca-2.3.8-build/qca-2.3.8/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): [#def37]
qca-2.3.8-build/qca-2.3.8/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): [#def38]
qca-2.3.8-build/qca-2.3.8/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.8-build/qca-2.3.8/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:1365:22: note: declared here
# 1365 | 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): [#def39]
qca-2.3.8-build/qca-2.3.8/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): [#def40]
qca-2.3.8-build/qca-2.3.8/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): [#def41]
qca-2.3.8-build/qca-2.3.8/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): [#def42]
qca-2.3.8-build/qca-2.3.8/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.8-build/qca-2.3.8/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): [#def43]
qca-2.3.8-build/qca-2.3.8/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): [#def44]
qca-2.3.8-build/qca-2.3.8/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): [#def45]
qca-2.3.8-build/qca-2.3.8/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): [#def46]
qca-2.3.8-build/qca-2.3.8/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): [#def47]
qca-2.3.8-build/qca-2.3.8/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.8-build/qca-2.3.8/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): [#def48]
qca-2.3.8-build/qca-2.3.8/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): [#def49]
qca-2.3.8-build/qca-2.3.8/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): [#def50]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::BigInteger opensslQCAPlugin::RSAKey::n() const’
qca-2.3.8-build/qca-2.3.8/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:1365:22: note: declared here
# 1365 | 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): [#def51]
qca-2.3.8-build/qca-2.3.8/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): [#def52]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::BigInteger opensslQCAPlugin::RSAKey::e() const’
qca-2.3.8-build/qca-2.3.8/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:1365:22: note: declared here
# 1365 | 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): [#def53]
qca-2.3.8-build/qca-2.3.8/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): [#def54]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::BigInteger opensslQCAPlugin::RSAKey::p() const’
qca-2.3.8-build/qca-2.3.8/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:1365:22: note: declared here
# 1365 | 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): [#def55]
qca-2.3.8-build/qca-2.3.8/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): [#def56]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::BigInteger opensslQCAPlugin::RSAKey::q() const’
qca-2.3.8-build/qca-2.3.8/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:1365:22: note: declared here
# 1365 | 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): [#def57]
qca-2.3.8-build/qca-2.3.8/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): [#def58]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::BigInteger opensslQCAPlugin::RSAKey::d() const’
qca-2.3.8-build/qca-2.3.8/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:1365:22: note: declared here
# 1365 | 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): [#def59]
qca-2.3.8-build/qca-2.3.8/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): [#def60]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In destructor ‘virtual opensslQCAPlugin::DSAKeyMaker::~DSAKeyMaker()’
qca-2.3.8-build/qca-2.3.8/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): [#def61]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::DSAKeyMaker::run()’
qca-2.3.8-build/qca-2.3.8/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): [#def62]
qca-2.3.8-build/qca-2.3.8/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): [#def63]
qca-2.3.8-build/qca-2.3.8/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): [#def64]
qca-2.3.8-build/qca-2.3.8/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): [#def65]
qca-2.3.8-build/qca-2.3.8/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): [#def66]
qca-2.3.8-build/qca-2.3.8/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): [#def67]
qca-2.3.8-build/qca-2.3.8/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): [#def68]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::DSAKey::convertToPublic()’
qca-2.3.8-build/qca-2.3.8/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:1374:22: note: declared here
# 1374 | 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): [#def69]
qca-2.3.8-build/qca-2.3.8/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): [#def70]
qca-2.3.8-build/qca-2.3.8/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): [#def71]
qca-2.3.8-build/qca-2.3.8/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): [#def72]
qca-2.3.8-build/qca-2.3.8/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.8-build/qca-2.3.8/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): [#def73]
qca-2.3.8-build/qca-2.3.8/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): [#def74]
qca-2.3.8-build/qca-2.3.8/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): [#def75]
qca-2.3.8-build/qca-2.3.8/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): [#def76]
qca-2.3.8-build/qca-2.3.8/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.8-build/qca-2.3.8/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): [#def77]
qca-2.3.8-build/qca-2.3.8/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): [#def78]
qca-2.3.8-build/qca-2.3.8/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): [#def79]
qca-2.3.8-build/qca-2.3.8/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): [#def80]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::DLGroup opensslQCAPlugin::DSAKey::domain() const’
qca-2.3.8-build/qca-2.3.8/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:1374:22: note: declared here
# 1374 | 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): [#def81]
qca-2.3.8-build/qca-2.3.8/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): [#def82]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::BigInteger opensslQCAPlugin::DSAKey::y() const’
qca-2.3.8-build/qca-2.3.8/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:1374:22: note: declared here
# 1374 | 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): [#def83]
qca-2.3.8-build/qca-2.3.8/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): [#def84]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::BigInteger opensslQCAPlugin::DSAKey::x() const’
qca-2.3.8-build/qca-2.3.8/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:1374:22: note: declared here
# 1374 | 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): [#def85]
qca-2.3.8-build/qca-2.3.8/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): [#def86]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In destructor ‘virtual opensslQCAPlugin::DHKeyMaker::~DHKeyMaker()’
qca-2.3.8-build/qca-2.3.8/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:207:28: note: declared here
# 207 | 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): [#def87]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::DHKeyMaker::run()’
qca-2.3.8-build/qca-2.3.8/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:206:27: note: declared here
# 206 | 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): [#def88]
qca-2.3.8-build/qca-2.3.8/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:262:27: note: declared here
# 262 | 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): [#def89]
qca-2.3.8-build/qca-2.3.8/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:230:27: note: declared here
# 230 | 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): [#def90]
qca-2.3.8-build/qca-2.3.8/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:207:28: note: declared here
# 207 | 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): [#def91]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual void opensslQCAPlugin::DHKey::convertToPublic()’
qca-2.3.8-build/qca-2.3.8/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:1382:43: note: declared here
# 1382 | 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): [#def92]
qca-2.3.8-build/qca-2.3.8/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:206:27: note: declared here
# 206 | 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): [#def93]
qca-2.3.8-build/qca-2.3.8/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:260:28: note: declared here
# 260 | 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): [#def94]
qca-2.3.8-build/qca-2.3.8/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:263:28: note: declared here
# 263 | 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): [#def95]
qca-2.3.8-build/qca-2.3.8/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:265:27: note: declared here
# 265 | 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): [#def96]
qca-2.3.8-build/qca-2.3.8/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:262:27: note: declared here
# 262 | 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): [#def97]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::SymmetricKey opensslQCAPlugin::DHKey::deriveKey(const QCA::PKeyBase&)’
qca-2.3.8-build/qca-2.3.8/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:1382:43: note: declared here
# 1382 | 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): [#def98]
qca-2.3.8-build/qca-2.3.8/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:1382:43: note: declared here
# 1382 | 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): [#def99]
qca-2.3.8-build/qca-2.3.8/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:263:28: note: declared here
# 263 | 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): [#def100]
qca-2.3.8-build/qca-2.3.8/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:210:27: note: declared here
# 210 | 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): [#def101]
qca-2.3.8-build/qca-2.3.8/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:231:27: note: declared here
# 231 | 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): [#def102]
qca-2.3.8-build/qca-2.3.8/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.8-build/qca-2.3.8/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:206:27: note: declared here
# 206 | 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): [#def103]
qca-2.3.8-build/qca-2.3.8/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:265:27: note: declared here
# 265 | 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): [#def104]
qca-2.3.8-build/qca-2.3.8/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:262:27: note: declared here
# 262 | 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): [#def105]
qca-2.3.8-build/qca-2.3.8/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:207:28: note: declared here
# 207 | 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): [#def106]
qca-2.3.8-build/qca-2.3.8/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.8-build/qca-2.3.8/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:206:27: note: declared here
# 206 | 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): [#def107]
qca-2.3.8-build/qca-2.3.8/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:265:27: note: declared here
# 265 | 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): [#def108]
qca-2.3.8-build/qca-2.3.8/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:262:27: note: declared here
# 262 | 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): [#def109]
qca-2.3.8-build/qca-2.3.8/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:207:28: note: declared here
# 207 | 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): [#def110]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::DLGroup opensslQCAPlugin::DHKey::domain() const’
qca-2.3.8-build/qca-2.3.8/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:1382:43: note: declared here
# 1382 | 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): [#def111]
qca-2.3.8-build/qca-2.3.8/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:260:28: note: declared here
# 260 | 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): [#def112]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::BigInteger opensslQCAPlugin::DHKey::y() const’
qca-2.3.8-build/qca-2.3.8/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:1382:43: note: declared here
# 1382 | 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): [#def113]
qca-2.3.8-build/qca-2.3.8/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:263:28: note: declared here
# 263 | 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): [#def114]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘virtual QCA::BigInteger opensslQCAPlugin::DHKey::x() const’
qca-2.3.8-build/qca-2.3.8/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:1382:43: note: declared here
# 1382 | 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): [#def115]
qca-2.3.8-build/qca-2.3.8/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:263:28: note: declared here
# 263 | 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): [#def116]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In constructor ‘opensslQCAPlugin::QCA_RSA_METHOD::QCA_RSA_METHOD(const QCA::RSAPrivateKey&, RSA*)’
qca-2.3.8-build/qca-2.3.8/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): [#def117]
qca-2.3.8-build/qca-2.3.8/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): [#def118]
qca-2.3.8-build/qca-2.3.8/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): [#def119]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In member function ‘RSA_METHOD* opensslQCAPlugin::QCA_RSA_METHOD::rsa_method()’
qca-2.3.8-build/qca-2.3.8/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): [#def120]
qca-2.3.8-build/qca-2.3.8/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): [#def121]
qca-2.3.8-build/qca-2.3.8/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): [#def122]
qca-2.3.8-build/qca-2.3.8/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): [#def123]
qca-2.3.8-build/qca-2.3.8/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): [#def124]
qca-2.3.8-build/qca-2.3.8/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): [#def125]
qca-2.3.8-build/qca-2.3.8/plugins/qca-ossl/qca-ossl.cpp: scope_hint: In function ‘RSA* opensslQCAPlugin::createFromExisting(const QCA::RSAPrivateKey&)’
qca-2.3.8-build/qca-2.3.8/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: CLANG_WARNING: [#def126]
qca-2.3.8-build/qca-2.3.8/plugins/qca-pkcs11/qca-pkcs11.cpp:493:13: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
# 491| }
# 492|
# 493|-> rv = out->resize(my_size);
# 494|
# 495| if ((rv = pkcs11h_certificate_releaseSession(_pkcs11h_certificate)) != CKR_OK) {
Error: CLANG_WARNING: [#def127]
qca-2.3.8-build/qca-2.3.8/plugins/qca-softstore/qca-softstore.cpp:861:33: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 859| }
# 860|
# 861|-> if (cresult != ConvertGood) {
# 862| _emit_diagnosticText(QString::asprintf(
# 863| "Software Store: Cannot load certificate of '%s' entry.\n", myPrintable(entry.name)));
Error: CLANG_WARNING: [#def128]
qca-2.3.8-build/qca-2.3.8/src/qca_core.cpp:220:9: warning[security.insecureAPI.UncheckedReturn]: The return value from the call to 'setuid' is not checked. If an error occurs in 'setuid', the following code may execute with unexpected privileges
# 218| #if defined(Q_OS_UNIX)
# 219| if ((geteuid() == 0) && drop_root) {
# 220|-> setuid(getuid());
# 221| }
# 222| #endif
Error: COMPILER_WARNING (CWE-252): [#def129]
qca-2.3.8-build/qca-2.3.8/src/qca_core.cpp: scope_hint: In function ‘void QCA::init(MemoryMode, int)’
qca-2.3.8-build/qca-2.3.8/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: CLANG_WARNING: [#def130]
qca-2.3.8-build/qca-2.3.8/src/qca_core.cpp:844:13: warning[deadcode.DeadStores]: Value stored to 'scanned' is never read
# 842| // before giving up or using default
# 843| global->scan();
# 844|-> scanned = true;
# 845| p = global->manager->findFor(QString(), type);
# 846| }
Error: CLANG_WARNING: [#def131]
qca-2.3.8-build/qca-2.3.8/src/qca_default.cpp:771:9: warning[deadcode.DeadStores]: Value stored to 'a' is never read
# 769|
# 770| // Wipe variables
# 771|-> a = b = c = d = e = 0;
# 772| }
# 773|
Error: CLANG_WARNING: [#def132]
qca-2.3.8-build/qca-2.3.8/src/qca_default.cpp:771:13: warning[deadcode.DeadStores]: Although the value stored to 'b' is used in the enclosing expression, the value is never actually read from 'b'
# 769|
# 770| // Wipe variables
# 771|-> a = b = c = d = e = 0;
# 772| }
# 773|
Error: CLANG_WARNING: [#def133]
qca-2.3.8-build/qca-2.3.8/src/qca_default.cpp:771:17: warning[deadcode.DeadStores]: Although the value stored to 'c' is used in the enclosing expression, the value is never actually read from 'c'
# 769|
# 770| // Wipe variables
# 771|-> a = b = c = d = e = 0;
# 772| }
# 773|
Error: CLANG_WARNING: [#def134]
qca-2.3.8-build/qca-2.3.8/src/qca_default.cpp:771:21: warning[deadcode.DeadStores]: Although the value stored to 'd' is used in the enclosing expression, the value is never actually read from 'd'
# 769|
# 770| // Wipe variables
# 771|-> a = b = c = d = e = 0;
# 772| }
# 773|
Error: CLANG_WARNING: [#def135]
qca-2.3.8-build/qca-2.3.8/src/qca_default.cpp:771:25: warning[deadcode.DeadStores]: Although the value stored to 'e' is used in the enclosing expression, the value is never actually read from 'e'
# 769|
# 770| // Wipe variables
# 771|-> a = b = c = d = e = 0;
# 772| }
# 773|
Error: CLANG_WARNING: [#def136]
qca-2.3.8-build/qca-2.3.8/src/qca_default.cpp:829:9: warning[deadcode.DeadStores]: Value stored to 'i' is never read
# 827|
# 828| // Wipe variables
# 829|-> i = 0;
# 830| memset(context->buffer, 0, 64);
# 831| memset(context->state, 0, 20);
Error: CLANG_WARNING: [#def137]
qca-2.3.8-build/qca-2.3.8/src/qca_publickey.cpp:362:9: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 360|
# 361| // error converting without passphrase? maybe a passphrase is needed
# 362|-> if (use_asker_fallback(r) && passphrase.isEmpty()) {
# 363| SecureArray pass;
# 364| if (ask_passphrase(fileName, ptr, &pass))
Error: CLANG_WARNING: [#def138]
qca-2.3.8-build/qca-2.3.8/src/qca_publickey.cpp:384:9: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 382|
# 383| // error converting without passphrase? maybe a passphrase is needed
# 384|-> if (use_asker_fallback(r) && passphrase.isEmpty()) {
# 385| SecureArray pass;
# 386| if (ask_passphrase(fileName, ptr, &pass))
Error: CLANG_WARNING: [#def139]
qca-2.3.8-build/qca-2.3.8/src/qca_tools.cpp:359:9: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 357| {
# 358| ai_new(&ai, from.size(), sec);
# 359|-> memcpy(ai.data, from.data(), ai.size);
# 360| }
# 361|
Error: CLANG_WARNING: [#def140]
qca-2.3.8-build/qca-2.3.8/src/qca_tools.cpp:359:9: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 357| {
# 358| ai_new(&ai, from.size(), sec);
# 359|-> memcpy(ai.data, from.data(), ai.size);
# 360| }
# 361|
Error: COMPILER_WARNING (CWE-477): [#def141]
qca-2.3.8-build/qca-2.3.8/src/support/logger.cpp: scope_hint: In member function ‘void QCA::Logger::logTextMessage(const QString&, Severity)’
qca-2.3.8-build/qca-2.3.8/src/support/logger.cpp:98:50: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<QCA::AbstractLogDevice*>; typename std::add_const<_Tp>::type = const QList<QCA::AbstractLogDevice*>]’ is deprecated: Use std::as_const() instead.
# 98 | for (AbstractLogDevice *logger : qAsConst(m_loggers)) {
# | ~~~~~~~~^~~~~~~~~~~
/usr/include/qt6/QtCore/qforeach.h:11: included_from: Included from here.
/usr/include/qt6/QtCore/qglobal.h:57: included_from: Included from here.
/usr/include/qt6/QtCore/qmetatype.h:9: included_from: Included from here.
/usr/include/qt6/QtCore/QMetaType:1: included_from: Included from here.
qca-2.3.8-build/qca-2.3.8/include/QtCrypto/qca_tools.h:40: included_from: Included from here.
qca-2.3.8-build/qca-2.3.8/include/QtCrypto/qca_support.h:40: included_from: Included from here.
qca-2.3.8-build/qca-2.3.8/src/support/logger.cpp:21: included_from: Included from here.
/usr/include/qt6/QtCore/qttypetraits.h:33:45: note: declared here
# 33 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
# | ^~~~~~~~
# 96| {
# 97| if (severity <= level()) {
# 98|-> for (AbstractLogDevice *logger : qAsConst(m_loggers)) {
# 99| logger->logTextMessage(message, severity);
# 100| }
Error: COMPILER_WARNING (CWE-477): [#def142]
qca-2.3.8-build/qca-2.3.8/src/support/logger.cpp: scope_hint: In member function ‘void QCA::Logger::logBinaryMessage(const QByteArray&, Severity)’
qca-2.3.8-build/qca-2.3.8/src/support/logger.cpp:107:50: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<QCA::AbstractLogDevice*>; typename std::add_const<_Tp>::type = const QList<QCA::AbstractLogDevice*>]’ is deprecated: Use std::as_const() instead.
# 107 | for (AbstractLogDevice *logger : qAsConst(m_loggers)) {
# | ~~~~~~~~^~~~~~~~~~~
/usr/include/qt6/QtCore/qttypetraits.h:33:45: note: declared here
# 33 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
# | ^~~~~~~~
# 105| {
# 106| if (severity <= level()) {
# 107|-> for (AbstractLogDevice *logger : qAsConst(m_loggers)) {
# 108| logger->logBinaryMessage(blob, severity);
# 109| }
Error: CLANG_WARNING: [#def143]
qca-2.3.8-build/qca-2.3.8/src/support/syncthread.cpp:225:5: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 223| // clang-format off
# 224| // Otherwise the QObject* gets turned into Object * that is not normalized and is slightly slower
# 225|-> ret = QMetaObject::invokeMethod(d->agent, "call_do",
# 226| Qt::QueuedConnection, Q_ARG(QObject*, obj),
# 227| Q_ARG(QByteArray, method), Q_ARG(QVariantList, args));
Error: COMPILER_WARNING (CWE-477): [#def144]
qca-2.3.8-build/qca-2.3.8/tools/qcatool/main.cpp: scope_hint: In function ‘QString get_fingerprint(const QCA::Certificate&, const QString&)’
qca-2.3.8-build/qca-2.3.8/tools/qcatool/main.cpp:1831:34: warning[-Wdeprecated-declarations]: ‘qsizetype QString::count() const’ is deprecated: Use size() or length() instead.
# 1831 | for (int n = 0; n < hex.count(); ++n) {
# | ~~~~~~~~~^~
/usr/include/qt6/QtCore/qhashfunctions.h:8: included_from: Included from here.
/usr/include/qt6/QtCore/qfloat16.h:10: included_from: Included from here.
/usr/include/qt6/QtCore/qmetatype.h:14: included_from: Included from here.
/usr/include/qt6/QtCore/QMetaType:1: included_from: Included from here.
qca-2.3.8-build/qca-2.3.8/include/QtCrypto/qca_tools.h:40: included_from: Included from here.
qca-2.3.8-build/qca-2.3.8/include/QtCrypto/qca_support.h:40: included_from: Included from here.
qca-2.3.8-build/qca-2.3.8/include/QtCrypto/qca_core.h:38: included_from: Included from here.
qca-2.3.8-build/qca-2.3.8/include/QtCrypto/qca_basic.h:37: included_from: Included from here.
qca-2.3.8-build/qca-2.3.8/include/QtCrypto/qca.h:36: included_from: Included from here.
qca-2.3.8-build/qca-2.3.8/include/QtCrypto/QtCrypto:1: included_from: Included from here.
qca-2.3.8-build/qca-2.3.8/tools/qcatool/main.cpp:20: included_from: Included from here.
/usr/include/qt6/QtCore/qstring.h:187:22: note: declared here
# 187 | inline qsizetype count() const { return d.size; }
# | ^~~~~
# 1829| QString hex = QCA::Hash(hashType).hashToString(cert.toDER());
# 1830| QString out;
# 1831|-> for (int n = 0; n < hex.count(); ++n) {
# 1832| if (n != 0 && n % 2 == 0)
# 1833| out += QLatin1Char(':');
Error: CLANG_WARNING: [#def145]
qca-2.3.8-build/qca-2.3.8/tools/qcatool/main.cpp:3035:17: warning[deadcode.DeadStores]: Value stored to 'have_newpass' is never read
# 3033| if (!have_newpass) {
# 3034| while (!promptForNewPassphrase(&newpass)) { }
# 3035|-> have_newpass = true;
# 3036| }
# 3037|
Error: CLANG_WARNING: [#def146]
qca-2.3.8-build/qca-2.3.8/tools/qcatool/main.cpp:3074:17: warning[deadcode.DeadStores]: Value stored to 'have_newpass' is never read
# 3072| if (!have_newpass) {
# 3073| while (!promptForNewPassphrase(&newpass)) { }
# 3074|-> have_newpass = true;
# 3075| }
# 3076|
Error: CLANG_WARNING: [#def147]
qca-2.3.8-build/qca-2.3.8/tools/qcatool/main.cpp:3244:17: warning[deadcode.DeadStores]: Value stored to 'have_newpass' is never read
# 3242| if (!have_newpass) {
# 3243| while (!promptForNewPassphrase(&newpass)) { }
# 3244|-> have_newpass = true;
# 3245| }
# 3246|
Error: CLANG_WARNING: [#def148]
qca-2.3.8-build/qca-2.3.8/tools/qcatool/main.cpp:3284:21: warning[deadcode.DeadStores]: Value stored to 'have_newpass' is never read
# 3282| if (!have_newpass) {
# 3283| while (!promptForNewPassphrase(&newpass)) { }
# 3284|-> have_newpass = true;
# 3285| }
# 3286| }
Error: CLANG_WARNING: [#def149]
qca-2.3.8-build/qca-2.3.8/tools/qcatool/main.cpp:3326:17: warning[deadcode.DeadStores]: Value stored to 'have_newpass' is never read
# 3324| if (!have_newpass) {
# 3325| while (!promptForNewPassphrase(&newpass)) { }
# 3326|-> have_newpass = true;
# 3327| }
# 3328|
Error: CLANG_WARNING: [#def150]
qca-2.3.8-build/qca-2.3.8/unittest/clientplugin/clientplugin.cpp:94:1: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'provider.wp.value'
# 92| QCOMPARE(QCA::findProvider(providerName), static_cast<QCA::Provider *>(nullptr));
# 93| QVERIFY(provider.isNull());
# 94|-> }
# 95|
# 96| QTEST_MAIN(ClientPlugin)
Error: CLANG_WARNING: [#def151]
qca-2.3.8-build/qca-2.3.8/unittest/pgpunittest/pgpunittest.cpp:149:9: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'qcaInit'
# 147| // the Amsterdam Internet Exchange.
# 148| if (qca_setenv("GNUPGHOME", "./keys1_work", 1) != 0) {
# 149|-> QFAIL("Expected to be able to set the GNUPGHOME environment variable, but couldn't");
# 150| }
# 151|
Error: CLANG_WARNING: [#def152]
qca-2.3.8-build/qca-2.3.8/unittest/pgpunittest/pgpunittest.cpp:202:9: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'qcaInit'
# 200| // We now test an empty keyring
# 201| if (qca_setenv("GNUPGHOME", "./keys2_work", 1) != 0) {
# 202|-> QFAIL("Expected to be able to set the GNUPGHOME environment variable, but couldn't");
# 203| }
# 204|
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-150.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | qca-2.3.8-1.fc41 |
store-results-to | /tmp/tmplsaw18rt/qca-2.3.8-1.fc41.tar.xz |
time-created | 2024-07-03 17:41:36 |
time-finished | 2024-07-03 17:48:51 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmplsaw18rt/qca-2.3.8-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmplsaw18rt/qca-2.3.8-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |