MCPcopy Create free account
hub / github.com/Thalhammer/jwt-cpp / EVP_PKEY_fromdata

Function EVP_PKEY_fromdata

tests/OpenSSLErrorTest.cpp:522–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520}
521
522int EVP_PKEY_fromdata(EVP_PKEY_CTX* ctx, EVP_PKEY** ppkey, int selection, OSSL_PARAM params[]) {
523 static int (*origMethod)(EVP_PKEY_CTX * ctx, EVP_PKEY * *ppkey, int selection, OSSL_PARAM params[]) = nullptr;
524 if (origMethod == nullptr) origMethod = (decltype(origMethod))dlsym(RTLD_NEXT, SYMBOL_NAME("EVP_PKEY_fromdata"));
525 bool fail = fail_EVP_PKEY_fromdata & 1;
526 fail_EVP_PKEY_fromdata = fail_EVP_PKEY_fromdata >> 1;
527 if (fail)
528 return 0;
529 else
530 return origMethod(ctx, ppkey, selection, params);
531}
532#else
533int PEM_write_bio_RSA_PUBKEY(BIO* bp, RSA* x) {
534 static int (*origMethod)(BIO * bp, RSA * x) = nullptr;

Calls

no outgoing calls

Tested by

no test coverage detected