| 176 | } |
| 177 | |
| 178 | EVP_PKEY* PEM_read_bio_PrivateKey(BIO* bp, EVP_PKEY** x, pem_password_cb* cb, void* u) { |
| 179 | static EVP_PKEY* (*origMethod)(BIO * bp, EVP_PKEY * *x, pem_password_cb * cb, void* u) = nullptr; |
| 180 | if (origMethod == nullptr) |
| 181 | origMethod = (decltype(origMethod))dlsym(RTLD_NEXT, SYMBOL_NAME("PEM_read_bio_PrivateKey")); |
| 182 | bool fail = fail_PEM_read_bio_PrivateKey & 1; |
| 183 | fail_PEM_read_bio_PrivateKey = fail_PEM_read_bio_PrivateKey >> 1; |
| 184 | if (fail) |
| 185 | return nullptr; |
| 186 | else |
| 187 | return origMethod(bp, x, cb, u); |
| 188 | } |
| 189 | |
| 190 | #if !defined(LIBWOLFSSL_VERSION_HEX) || LIBWOLFSSL_VERSION_HEX > 0x05007000 |
| 191 | /* wolfSSL definition collides. Fixed after 5.7.0 */ |
no outgoing calls
no test coverage detected