| 520 | } |
| 521 | |
| 522 | int EVP_PKEY_fromdata(EVP_PKEY_CTX* ctx, EVP_PKEY** ppkey, int selection, OSSL_PARAM params[]) { |
| 523 | static int (*origMethod)(EVP_PKEY_CTX * ctx, EVP_PKEY * *ppkey, int selection, OSSL_PARAM params[]) = nullptr; |
| 524 | if (origMethod == nullptr) origMethod = (decltype(origMethod))dlsym(RTLD_NEXT, SYMBOL_NAME("EVP_PKEY_fromdata")); |
| 525 | bool fail = fail_EVP_PKEY_fromdata & 1; |
| 526 | fail_EVP_PKEY_fromdata = fail_EVP_PKEY_fromdata >> 1; |
| 527 | if (fail) |
| 528 | return 0; |
| 529 | else |
| 530 | return origMethod(ctx, ppkey, selection, params); |
| 531 | } |
| 532 | #else |
| 533 | int PEM_write_bio_RSA_PUBKEY(BIO* bp, RSA* x) { |
| 534 | static int (*origMethod)(BIO * bp, RSA * x) = nullptr; |
no outgoing calls
no test coverage detected