Snippets for xml-security-c 3.0.0 from Nix aarch64-darwin
Sourced from https://hydra.nixos.org/log/76jqarjyq5k4j12hhgbqq12pab8p4pln-xml-security-c-3.0.0.drv.
-
../xsec/utils/XSECSafeBufferFormatter.hpp:63:73: warning: unused parameter 'formatter' [-Wunused-parameter] 63 | XERCES_CPP_NAMESPACE_QUALIFIER XMLFormatter * const formatter) | ^ -
canon/XSECC14n20010315.cpp:1047:8: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] 1047 | !currentValue.sbStrcmp("") == 0) | ^ ~~ -
canon/XSECC14n20010315.cpp:1196:6: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] 1196 | !currentValue.sbStrcmp("") == 0) | ^ ~~ -
framework/XSECEnv.cpp:234:2: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result] 234 | m_idAttributeNameList.empty(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
enc/OpenSSL/OpenSSLCryptoHashHMAC.cpp:48:13: warning: 'HMAC_CTX_new' is deprecated [-Wdeprecated-declarations] 48 | mp_hctx(HMAC_CTX_new()) | ^ -
enc/OpenSSL/OpenSSLCryptoHashHMAC.cpp:145:5: warning: 'HMAC_Init' is deprecated [-Wdeprecated-declarations] 145 | HMAC_Init(mp_hctx, | ^ -
enc/OpenSSL/OpenSSLCryptoHashHMAC.cpp:160:5: warning: 'HMAC_CTX_free' is deprecated [-Wdeprecated-declarations] 160 | HMAC_CTX_free(mp_hctx); | ^ -
enc/OpenSSL/OpenSSLCryptoHashHMAC.cpp:176:9: warning: 'HMAC_Init' is deprecated [-Wdeprecated-declarations] 176 | HMAC_Init(mp_hctx, | ^ -
enc/OpenSSL/OpenSSLCryptoHashHMAC.cpp:193:5: warning: 'HMAC_Update' is deprecated [-Wdeprecated-declarations] 193 | HMAC_Update(mp_hctx, data, (int) length); | ^ -
enc/OpenSSL/OpenSSLCryptoHashHMAC.cpp:204:5: warning: 'HMAC_Final' is deprecated [-Wdeprecated-declarations] 204 | HMAC_Final(mp_hctx, m_mdValue, &m_mdLen); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:108:16: warning: 'PKCS1_MGF1' is deprecated [-Wdeprecated-declarations] 108 | return PKCS1_MGF1(mask, len, seed, seedlen, digest); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:304:9: warning: 'RSA_free' is deprecated [-Wdeprecated-declarations] 304 | RSA_free(mp_rsaKey); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:327:5: warning: 'RSA_get0_key' is deprecated [-Wdeprecated-declarations] 327 | RSA_get0_key(mp_rsaKey, &n, NULL, &d); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:348:21: warning: 'RSA_new' is deprecated [-Wdeprecated-declarations] 348 | mp_rsaKey = RSA_new(); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:373:21: warning: 'RSA_new' is deprecated [-Wdeprecated-declarations] 373 | mp_rsaKey = RSA_new(); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:394:5: warning: 'RSA_set0_key' is deprecated [-Wdeprecated-declarations] 394 | RSA_set0_key(mp_rsaKey, mp_accumN, mp_accumE, NULL); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:411:17: warning: 'RSA_new' is deprecated [-Wdeprecated-declarations] 411 | mp_rsaKey = RSA_new(); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:416:22: warning: 'EVP_PKEY_get0_RSA' is deprecated [-Wdeprecated-declarations] 416 | const RSA *rsa = EVP_PKEY_get0_RSA(k); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:419:5: warning: 'RSA_get0_key' is deprecated [-Wdeprecated-declarations] 419 | RSA_get0_key(rsa, &n, &e, &d); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:421:9: warning: 'RSA_set0_key' is deprecated [-Wdeprecated-declarations] 421 | RSA_set0_key(mp_rsaKey, DUP_NON_NULL(n), DUP_NON_NULL(e), DUP_NON_NULL(d)); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:424:5: warning: 'RSA_get0_factors' is deprecated [-Wdeprecated-declarations] 424 | RSA_get0_factors(rsa, &p, &q); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:426:9: warning: 'RSA_set0_factors' is deprecated [-Wdeprecated-declarations] 426 | RSA_set0_factors(mp_rsaKey, DUP_NON_NULL(p), DUP_NON_NULL(q)); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:429:5: warning: 'RSA_get0_crt_params' is deprecated [-Wdeprecated-declarations] 429 | RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:431:9: warning: 'RSA_set0_crt_params' is deprecated [-Wdeprecated-declarations] 431 | RSA_set0_crt_params(mp_rsaKey, DUP_NON_NULL(dmp1), DUP_NON_NULL(dmq1), DUP_NON_NULL(iqmp)); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:497:19: warning: 'RSA_size' is deprecated [-Wdeprecated-declarations] 497 | int keySize = RSA_size(mp_rsaKey); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:508:36: warning: 'RSA_size' is deprecated [-Wdeprecated-declarations] 508 | decryptBuf = new unsigned char[RSA_size(mp_rsaKey)]; | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:518:23: warning: 'RSA_public_decrypt' is deprecated [-Wdeprecated-declarations] 518 | int decryptSize = RSA_public_decrypt(sigValLen, | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:606:36: warning: 'RSA_size' is deprecated [-Wdeprecated-declarations] 606 | encryptBuf = new unsigned char[RSA_size(mp_rsaKey)]; | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:613:18: warning: 'RSA_private_encrypt' is deprecated [-Wdeprecated-declarations] 613 | encryptLen = RSA_private_encrypt(preEncryptLen, | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:694:23: warning: 'RSA_private_decrypt' is deprecated [-Wdeprecated-declarations] 694 | decryptSize = RSA_private_decrypt(inLength, | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:727:23: warning: 'RSA_size' is deprecated [-Wdeprecated-declarations] 727 | int num = RSA_size(mp_rsaKey); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:731:27: warning: 'RSA_private_decrypt' is deprecated [-Wdeprecated-declarations] 731 | decryptSize = RSA_private_decrypt(inLength, | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:815:23: warning: 'RSA_public_encrypt' is deprecated [-Wdeprecated-declarations] 815 | encryptSize = RSA_public_encrypt(inLength, | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:835:32: warning: 'RSA_size' is deprecated [-Wdeprecated-declarations] 835 | unsigned int num = RSA_size(mp_rsaKey); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:876:27: warning: 'RSA_public_encrypt' is deprecated [-Wdeprecated-declarations] 876 | encryptSize = RSA_public_encrypt(num, | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:903:16: warning: 'RSA_size' is deprecated [-Wdeprecated-declarations] 903 | return RSA_size(mp_rsaKey); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:918:22: warning: 'RSA_new' is deprecated [-Wdeprecated-declarations] 918 | ret->mp_rsaKey = RSA_new(); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:922:5: warning: 'RSA_get0_key' is deprecated [-Wdeprecated-declarations] 922 | RSA_get0_key(mp_rsaKey, &n, &e, &d); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:924:9: warning: 'RSA_set0_key' is deprecated [-Wdeprecated-declarations] 924 | RSA_set0_key(ret->mp_rsaKey, DUP_NON_NULL(n), DUP_NON_NULL(e), DUP_NON_NULL(d)); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:927:5: warning: 'RSA_get0_factors' is deprecated [-Wdeprecated-declarations] 927 | RSA_get0_factors(mp_rsaKey, &p, &q); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:929:9: warning: 'RSA_set0_factors' is deprecated [-Wdeprecated-declarations] 929 | RSA_set0_factors(ret->mp_rsaKey, DUP_NON_NULL(p), DUP_NON_NULL(q)); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:932:5: warning: 'RSA_get0_crt_params' is deprecated [-Wdeprecated-declarations] 932 | RSA_get0_crt_params(mp_rsaKey, &dmp1, &dmq1, &iqmp); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp:934:9: warning: 'RSA_set0_crt_params' is deprecated [-Wdeprecated-declarations] 934 | RSA_set0_crt_params(ret->mp_rsaKey, DUP_NON_NULL(dmp1), DUP_NON_NULL(dmq1), DUP_NON_NULL(iqmp)); | ^ -
enc/OpenSSL/OpenSSLCryptoProvider.cpp:156:5: warning: 'ERR_remove_state' is deprecated [-Wdeprecated-declarations] 156 | ERR_remove_state(0); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:74:9: warning: 'DSA_free' is deprecated [-Wdeprecated-declarations] 74 | DSA_free(mp_dsaKey); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:120:21: warning: 'DSA_new' is deprecated [-Wdeprecated-declarations] 120 | mp_dsaKey = DSA_new(); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:149:21: warning: 'DSA_new' is deprecated [-Wdeprecated-declarations] 149 | mp_dsaKey = DSA_new(); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:176:21: warning: 'DSA_new' is deprecated [-Wdeprecated-declarations] 176 | mp_dsaKey = DSA_new(); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:199:9: warning: 'DSA_set0_pqg' is deprecated [-Wdeprecated-declarations] 199 | DSA_set0_pqg(mp_dsaKey, mp_accumP, mp_accumQ, mp_accumG); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:211:21: warning: 'DSA_new' is deprecated [-Wdeprecated-declarations] 211 | mp_dsaKey = DSA_new(); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:215:5: warning: 'DSA_get0_key' is deprecated [-Wdeprecated-declarations] 215 | DSA_get0_key(mp_dsaKey, NULL, &oldPriv); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:217:5: warning: 'DSA_set0_key' is deprecated [-Wdeprecated-declarations] 217 | DSA_set0_key(mp_dsaKey, newPub, (oldPriv?BN_dup(oldPriv):NULL)); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:223:21: warning: 'DSA_new' is deprecated [-Wdeprecated-declarations] 223 | mp_dsaKey = DSA_new(); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:235:17: warning: 'DSA_new' is deprecated [-Wdeprecated-declarations] 235 | mp_dsaKey = DSA_new(); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:244:18: warning: 'EVP_PKEY_get0_DSA' is deprecated [-Wdeprecated-declarations] 244 | DSA_get0_pqg(EVP_PKEY_get0_DSA(k), &otherP, &otherQ, &otherG); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:244:5: warning: 'DSA_get0_pqg' is deprecated [-Wdeprecated-declarations] 244 | DSA_get0_pqg(EVP_PKEY_get0_DSA(k), &otherP, &otherQ, &otherG); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:247:9: warning: 'DSA_set0_pqg' is deprecated [-Wdeprecated-declarations] 247 | DSA_set0_pqg(mp_dsaKey, BN_dup(otherP), BN_dup(otherQ), BN_dup(otherG)); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:251:18: warning: 'EVP_PKEY_get0_DSA' is deprecated [-Wdeprecated-declarations] 251 | DSA_get0_key(EVP_PKEY_get0_DSA(k), &otherPub, &otherPriv); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:251:5: warning: 'DSA_get0_key' is deprecated [-Wdeprecated-declarations] 251 | DSA_get0_key(EVP_PKEY_get0_DSA(k), &otherPub, &otherPriv); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:260:9: warning: 'DSA_set0_key' is deprecated [-Wdeprecated-declarations] 260 | DSA_set0_key(mp_dsaKey, BN_dup(otherPub), newPriv); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:361:15: warning: 'DSA_do_verify' is deprecated [-Wdeprecated-declarations] 361 | int err = DSA_do_verify(hashBuf, hashLen, dsa_sig, mp_dsaKey); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:399:24: warning: 'DSA_do_sign' is deprecated [-Wdeprecated-declarations] 399 | DSA_SIG* dsa_sig = DSA_do_sign(hashBuf, hashLen, mp_dsaKey); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:460:22: warning: 'DSA_new' is deprecated [-Wdeprecated-declarations] 460 | ret->mp_dsaKey = DSA_new(); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:465:5: warning: 'DSA_get0_pqg' is deprecated [-Wdeprecated-declarations] 465 | DSA_get0_pqg(mp_dsaKey, &p, &q, &g); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:468:9: warning: 'DSA_set0_pqg' is deprecated [-Wdeprecated-declarations] 468 | DSA_set0_pqg(ret->mp_dsaKey, BN_dup(p), BN_dup(q), BN_dup(g)); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:471:5: warning: 'DSA_get0_key' is deprecated [-Wdeprecated-declarations] 471 | DSA_get0_key(mp_dsaKey, &oldPub, &oldPriv); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyDSA.cpp:477:9: warning: 'DSA_set0_key' is deprecated [-Wdeprecated-declarations] 477 | DSA_set0_key(ret->mp_dsaKey, BN_dup(oldPub), (oldPriv?BN_dup(oldPriv):NULL)); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyEC.cpp:62:9: warning: 'EC_KEY_free' is deprecated [-Wdeprecated-declarations] 62 | EC_KEY_free(mp_ecKey); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyEC.cpp:78:9: warning: 'EC_KEY_get0_private_key' is deprecated [-Wdeprecated-declarations] 78 | if (EC_KEY_get0_private_key(mp_ecKey) && EC_KEY_get0_public_key(mp_ecKey)) | ^ -
enc/OpenSSL/OpenSSLCryptoKeyEC.cpp:78:46: warning: 'EC_KEY_get0_public_key' is deprecated [-Wdeprecated-declarations] 78 | if (EC_KEY_get0_private_key(mp_ecKey) && EC_KEY_get0_public_key(mp_ecKey)) | ^ -
enc/OpenSSL/OpenSSLCryptoKeyEC.cpp:81:9: warning: 'EC_KEY_get0_private_key' is deprecated [-Wdeprecated-declarations] 81 | if (EC_KEY_get0_private_key(mp_ecKey)) | ^ -
enc/OpenSSL/OpenSSLCryptoKeyEC.cpp:84:9: warning: 'EC_KEY_get0_public_key' is deprecated [-Wdeprecated-declarations] 84 | if (EC_KEY_get0_public_key(mp_ecKey)) | ^ -
enc/OpenSSL/OpenSSLCryptoKeyEC.cpp:94:9: warning: 'EC_KEY_free' is deprecated [-Wdeprecated-declarations] 94 | EC_KEY_free(mp_ecKey); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyEC.cpp:98:19: warning: 'EC_KEY_new_by_curve_name' is deprecated [-Wdeprecated-declarations] 98 | EC_KEY* key = EC_KEY_new_by_curve_name(static_cast<OpenSSLCryptoProvider*>(XSECPlatformUtils::g_cryptoProvider)->curveNameToNID(curveName)); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyEC.cpp:114:13: warning: 'o2i_ECPublicKey' is deprecated [-Wdeprecated-declarations] 114 | if (o2i_ECPublicKey(&key, (const unsigned char **) &outBuf, bufLen) == NULL) { | ^ -
enc/OpenSSL/OpenSSLCryptoKeyEC.cpp:115:13: warning: 'EC_KEY_free' is deprecated [-Wdeprecated-declarations] 115 | EC_KEY_free(key); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyEC.cpp:140:27: warning: 'EVP_PKEY_get0_EC_KEY' is deprecated [-Wdeprecated-declarations] 140 | mp_ecKey = EC_KEY_dup(EVP_PKEY_get0_EC_KEY(k)); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyEC.cpp:140:16: warning: 'EC_KEY_dup' is deprecated [-Wdeprecated-declarations] 140 | mp_ecKey = EC_KEY_dup(EVP_PKEY_get0_EC_KEY(k)); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyEC.cpp:216:15: warning: 'ECDSA_do_verify' is deprecated [-Wdeprecated-declarations] 216 | int err = ECDSA_do_verify(hashBuf, hashLen, ecdsa_sig, mp_ecKey); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyEC.cpp:253:29: warning: 'ECDSA_do_sign' is deprecated [-Wdeprecated-declarations] 253 | ECDSA_SIG* ecdsa_sig = ECDSA_do_sign(hashBuf, hashLen, mp_ecKey); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyEC.cpp:266:29: warning: 'EC_KEY_get0_group' is deprecated [-Wdeprecated-declarations] 266 | const EC_GROUP* group = EC_KEY_get0_group(mp_ecKey); | ^ -
enc/OpenSSL/OpenSSLCryptoKeyEC.cpp:336:25: warning: 'EC_KEY_dup' is deprecated [-Wdeprecated-declarations] 336 | ret->mp_ecKey = EC_KEY_dup(mp_ecKey); | ^ -
enc/OpenSSL/OpenSSLSupport.cpp:32:5: warning: 'DSA_get0_key' is deprecated [-Wdeprecated-declarations] 32 | DSA_get0_key(dsa, &result, NULL); | ^ -
enc/OpenSSL/OpenSSLSupport.cpp:43:5: warning: 'DSA_get0_key' is deprecated [-Wdeprecated-declarations] 43 | DSA_get0_key(dsa, NULL, &result); | ^ -
tools/templatesign/templatesign.cpp:174:42: warning: unused parameter 'formatter' [-Wunused-parameter] 174 | XMLFormatter * const formatter) | ^ -
tools/templatesign/templatesign.cpp:442:42: warning: unused parameter 'formatter' [-Wunused-parameter] 442 | XMLFormatter * const formatter) | ^ -
tools/txfmout/txfmout.cpp:187:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 187 | sprintf(numBuf, "%d", m_counter); | ^ -
samples/simpleHMAC.cpp:85:15: warning: unused parameter 'argc' [-Wunused-parameter] 85 | int main (int argc, char **argv) { | ^ -
samples/simpleHMAC.cpp:85:28: warning: unused parameter 'argv' [-Wunused-parameter] 85 | int main (int argc, char **argv) { | ^ -
samples/IOStreamOutputter.cpp:128:50: warning: unused parameter 'formatter' [-Wunused-parameter] 128 | XMLFormatter * const formatter) | ^ -
samples/IOStreamOutputter.cpp:446:27: warning: unused parameter 'formatter' [-Wunused-parameter] 446 | XMLFormatter * const formatter) | ^ -
samples/simpleValidate.cpp:105:15: warning: unused parameter 'argc' [-Wunused-parameter] 105 | int main (int argc, char **argv) { | ^ -
samples/simpleValidate.cpp:105:28: warning: unused parameter 'argv' [-Wunused-parameter] 105 | int main (int argc, char **argv) { | ^ -
samples/simpleEncrypt.cpp:109:15: warning: unused parameter 'argc' [-Wunused-parameter] 109 | int main (int argc, char **argv) { | ^ -
samples/simpleEncrypt.cpp:109:28: warning: unused parameter 'argv' [-Wunused-parameter] 109 | int main (int argc, char **argv) { | ^ -
samples/simpleDecrypt.cpp:103:15: warning: unused parameter 'argc' [-Wunused-parameter] 103 | int main (int argc, char **argv) { | ^ -
samples/simpleDecrypt.cpp:103:28: warning: unused parameter 'argv' [-Wunused-parameter] 103 | int main (int argc, char **argv) { | ^