| 154 | } |
| 155 | |
| 156 | int BIO_write(BIO* b, const void* data, int dlen) { |
| 157 | static int (*origMethod)(BIO * b, const void* data, int dlen) = nullptr; |
| 158 | if (origMethod == nullptr) origMethod = (decltype(origMethod))dlsym(RTLD_NEXT, SYMBOL_NAME("BIO_write")); |
| 159 | bool fail = fail_BIO_write & 1; |
| 160 | fail_BIO_write = fail_BIO_write >> 1; |
| 161 | if (fail) |
| 162 | return 0; |
| 163 | else |
| 164 | return origMethod(b, data, dlen); |
| 165 | } |
| 166 | |
| 167 | EVP_PKEY* PEM_read_bio_PUBKEY(BIO* bp, EVP_PKEY** x, pem_password_cb* cb, void* u) { |
| 168 | static EVP_PKEY* (*origMethod)(BIO * bp, EVP_PKEY * *x, pem_password_cb * cb, void* u) = nullptr; |
no outgoing calls
no test coverage detected