| 248 | } |
| 249 | |
| 250 | int 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 | |
| 261 | int 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; |
nothing calls this directly
no outgoing calls
no test coverage detected