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

Function EVP_PKEY_fromdata_init

tests/OpenSSLErrorTest.cpp:510–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510int EVP_PKEY_fromdata_init(EVP_PKEY_CTX* ctx) {
511 static int (*origMethod)(EVP_PKEY_CTX * ctx) = nullptr;
512 if (origMethod == nullptr)
513 origMethod = (decltype(origMethod))dlsym(RTLD_NEXT, SYMBOL_NAME("EVP_PKEY_fromdata_init"));
514 bool fail = fail_EVP_PKEY_fromdata_init & 1;
515 fail_EVP_PKEY_fromdata_init = fail_EVP_PKEY_fromdata_init >> 1;
516 if (fail)
517 return 0;
518 else
519 return origMethod(ctx);
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;

Calls

no outgoing calls

Tested by

no test coverage detected