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

Function PEM_read_bio_PrivateKey

tests/OpenSSLErrorTest.cpp:178–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178EVP_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 */

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected