Skip to content

Commit

Permalink
fix test impl signature
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc committed Dec 25, 2023
1 parent 766b6f8 commit 0129940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/OpenSSLErrorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ int EVP_PKEY_fromdata(EVP_PKEY_CTX* ctx, EVP_PKEY** ppkey, int selection, OSSL_P
return origMethod(ctx, ppkey, selection, params);
}
#else
int PEM_write_bio_RSA_PUBKEY(BIO* bp, OPENSSL_CONST EVP_PKEY* x) {
int PEM_write_bio_RSA_PUBKEY(BIO *bp, RSA *x) {
static int (*origMethod)(BIO * bp, OPENSSL_CONST EVP_PKEY * x) = nullptr;
if (origMethod == nullptr) origMethod = (decltype(origMethod))dlsym(RTLD_NEXT, "PEM_write_bio_RSA_PUBKEY");
bool fail = fail_PEM_write_bio_RSA_PUBKEY & 1;
Expand Down

0 comments on commit 0129940

Please sign in to comment.