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

Function EVP_DigestFinal

tests/OpenSSLErrorTest.cpp:250–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250int EVP_DigestFinal(EVP_MD_CTX* ctx, unsigned char* md, unsigned int* s) {
251 static int (*origMethod)(EVP_MD_CTX * ctx, unsigned char* md, unsigned int* s) = nullptr;
252 if (origMethod == nullptr) origMethod = (decltype(origMethod))dlsym(RTLD_NEXT, SYMBOL_NAME("EVP_DigestFinal"));
253 bool fail = fail_EVP_DigestFinal & 1;
254 fail_EVP_DigestFinal = fail_EVP_DigestFinal >> 1;
255 if (fail)
256 return 0;
257 else
258 return origMethod(ctx, md, s);
259}
260
261int EVP_SignFinal(EVP_MD_CTX* ctx, unsigned char* md, unsigned int* s, EVP_PKEY* pkey) {
262 static int (*origMethod)(EVP_MD_CTX * ctx, unsigned char* md, unsigned int* s, EVP_PKEY* pkey) = nullptr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected