MCPcopy Create free account
hub / github.com/Thalhammer/jwt-cpp / BIO_write

Function BIO_write

tests/OpenSSLErrorTest.cpp:156–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156int 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
167EVP_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;

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected