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

Function X509_get_pubkey

tests/OpenSSLErrorTest.cpp:106–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106EVP_PKEY* X509_get_pubkey(X509* x) {
107 static EVP_PKEY* (*origMethod)(X509*) = nullptr;
108 if (origMethod == nullptr) origMethod = (decltype(origMethod))dlsym(RTLD_NEXT, SYMBOL_NAME("X509_get_pubkey"));
109 bool fail = fail_X509_get_pubkey & 1;
110 fail_X509_get_pubkey = fail_X509_get_pubkey >> 1;
111 if (fail)
112 return nullptr;
113 else
114 return origMethod(x);
115}
116
117#ifdef JWT_OPENSSL_3_0
118#define OPENSSL_CONST const

Callers 1

extract_pubkey_from_certFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected