| 143 | } |
| 144 | |
| 145 | long BIO_ctrl(BIO* bp, int cmd, long larg, void* parg) { |
| 146 | static long (*origMethod)(BIO * bp, int cmd, long larg, void* parg) = nullptr; |
| 147 | if (origMethod == nullptr) origMethod = (decltype(origMethod))dlsym(RTLD_NEXT, SYMBOL_NAME("BIO_ctrl")); |
| 148 | bool fail = fail_BIO_ctrl & 1; |
| 149 | fail_BIO_ctrl = fail_BIO_ctrl >> 1; |
| 150 | if (fail) |
| 151 | return 0; |
| 152 | else |
| 153 | return origMethod(bp, cmd, larg, parg); |
| 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; |
nothing calls this directly
no outgoing calls
no test coverage detected