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

Function BIO_ctrl

tests/OpenSSLErrorTest.cpp:145–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145long 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
156int BIO_write(BIO* b, const void* data, int dlen) {
157 static int (*origMethod)(BIO * b, const void* data, int dlen) = nullptr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected