| 104 | } |
| 105 | |
| 106 | EVP_PKEY* X509_get_pubkey(X509* x) { |
| 107 | static EVP_PKEY* (*origMethod)(X509*) = nullptr; |
| 108 | if (origMethod == nullptr) origMethod = (decltype(origMethod))dlsym(RTLD_NEXT, SYMBOL_NAME("X509_get_pubkey")); |
| 109 | bool fail = fail_X509_get_pubkey & 1; |
| 110 | fail_X509_get_pubkey = fail_X509_get_pubkey >> 1; |
| 111 | if (fail) |
| 112 | return nullptr; |
| 113 | else |
| 114 | return origMethod(x); |
| 115 | } |
| 116 | |
| 117 | #ifdef JWT_OPENSSL_3_0 |
| 118 | #define OPENSSL_CONST const |
no outgoing calls
no test coverage detected