| 270 | } |
| 271 | |
| 272 | int 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 |
| 285 | int EVP_PKEY_public_check(EVP_PKEY_CTX* ctx) { |