Skip to content

Commit

Permalink
remove unused EVP_PKEY_get1_RSA
Browse files Browse the repository at this point in the history
this is deprecated with 3.0
  • Loading branch information
prince-chrismc authored Jun 15, 2024
1 parent f9d4940 commit b4352e8
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/OpenSSLErrorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ static uint64_t fail_EC_KEY_check_key = 0;
static uint64_t fail_EVP_PKEY_get1_EC_KEY = 0;
#endif
static uint64_t fail_ECDSA_SIG_new = 0;
static uint64_t fail_EVP_PKEY_get1_RSA = 0;
static uint64_t fail_EVP_DigestSignInit = 0;
static uint64_t fail_EVP_DigestSign = 0;
static uint64_t fail_EVP_DigestVerifyInit = 0;
Expand Down Expand Up @@ -337,17 +336,6 @@ ECDSA_SIG* ECDSA_SIG_new(void) {
return origMethod();
}

RSA* EVP_PKEY_get1_RSA(EVP_PKEY* pkey) {
static RSA* (*origMethod)(EVP_PKEY * pkey) = nullptr;
if (origMethod == nullptr) origMethod = (decltype(origMethod))dlsym(RTLD_NEXT, SYMBOL_NAME("EVP_PKEY_get1_RSA"));
bool fail = fail_EVP_PKEY_get1_RSA & 1;
fail_EVP_PKEY_get1_RSA = fail_EVP_PKEY_get1_RSA >> 1;
if (fail)
return nullptr;
else
return origMethod(pkey);
}

int EVP_DigestSignInit(EVP_MD_CTX* ctx, EVP_PKEY_CTX** pctx, const EVP_MD* type, ENGINE* e, EVP_PKEY* pkey) {
static int (*origMethod)(EVP_MD_CTX * ctx, EVP_PKEY_CTX * *pctx, const EVP_MD* type, ENGINE* e, EVP_PKEY* pkey) =
nullptr;
Expand Down

0 comments on commit b4352e8

Please sign in to comment.