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

Function EVP_VerifyFinal

tests/OpenSSLErrorTest.cpp:272–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272int EVP_VerifyFinal(EVP_MD_CTX* ctx, const unsigned char* sigbuf, unsigned int siglen, EVP_PKEY* pkey) {
273 static int (*origMethod)(EVP_MD_CTX * ctx, const unsigned char* sigbuf, unsigned int siglen, EVP_PKEY* pkey) =
274 nullptr;
275 if (origMethod == nullptr) origMethod = (decltype(origMethod))dlsym(RTLD_NEXT, SYMBOL_NAME("EVP_VerifyFinal"));
276 bool fail = fail_EVP_VerifyFinal & 1;
277 fail_EVP_VerifyFinal = fail_EVP_VerifyFinal >> 1;
278 if (fail)
279 return 0;
280 else
281 return origMethod(ctx, sigbuf, siglen, pkey);
282}
283
284#ifdef JWT_OPENSSL_3_0
285int EVP_PKEY_public_check(EVP_PKEY_CTX* ctx) {

Callers 1

verifyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected