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

Function EVP_DigestSignFinal

tests/OpenSSLErrorTest.cpp:217–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217int EVP_DigestSignFinal(EVP_MD_CTX* ctx, unsigned char* sigret, size_t* siglen) {
218 static int (*origMethod)(EVP_MD_CTX * ctx, unsigned char* sigret, size_t* siglen) = nullptr;
219 if (origMethod == nullptr) origMethod = (decltype(origMethod))dlsym(RTLD_NEXT, SYMBOL_NAME("EVP_DigestSignFinal"));
220 bool fail = fail_EVP_DigestSignFinal & 1;
221 fail_EVP_DigestSignFinal = fail_EVP_DigestSignFinal >> 1;
222 if (fail)
223 return 0;
224 else
225 return origMethod(ctx, sigret, siglen);
226}
227
228int EVP_DigestInit(EVP_MD_CTX* ctx, const EVP_MD* type) {
229 static int (*origMethod)(EVP_MD_CTX * ctx, const EVP_MD* type) = nullptr;

Callers 3

signMethod · 0.85
signMethod · 0.85
signMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected