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

Function EVP_DigestUpdate

tests/OpenSSLErrorTest.cpp:239–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239int EVP_DigestUpdate(EVP_MD_CTX* ctx, const void* d, size_t cnt) {
240 static int (*origMethod)(EVP_MD_CTX * ctx, const void* d, size_t cnt) = nullptr;
241 if (origMethod == nullptr) origMethod = (decltype(origMethod))dlsym(RTLD_NEXT, SYMBOL_NAME("EVP_DigestUpdate"));
242 bool fail = fail_EVP_DigestUpdate & 1;
243 fail_EVP_DigestUpdate = fail_EVP_DigestUpdate >> 1;
244 if (fail)
245 return 0;
246 else
247 return origMethod(ctx, d, cnt);
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;

Callers 4

signMethod · 0.85
verifyMethod · 0.85
signMethod · 0.85
verifyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected