| 543 | } |
| 544 | |
| 545 | int RSA_set0_key(RSA* r, BIGNUM* n, BIGNUM* e, BIGNUM* d) { |
| 546 | static int (*origMethod)(RSA * r, BIGNUM * n, BIGNUM * e, BIGNUM * d) = nullptr; |
| 547 | if (origMethod == nullptr) origMethod = (decltype(origMethod))dlsym(RTLD_NEXT, SYMBOL_NAME("RSA_set0_key")); |
| 548 | bool fail = fail_RSA_set0_key & 1; |
| 549 | fail_RSA_set0_key = fail_RSA_set0_key >> 1; |
| 550 | if (fail) |
| 551 | return 0; |
| 552 | else |
| 553 | return origMethod(r, n, e, d); |
| 554 | } |
| 555 | |
| 556 | int PEM_write_bio_EC_PUBKEY(BIO* bp, EC_KEY* x) { |
| 557 | static int (*origMethod)(BIO * bp, EC_KEY * x) = nullptr; |
no outgoing calls
no test coverage detected