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

Function RSA_set0_key

tests/OpenSSLErrorTest.cpp:545–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543}
544
545int RSA_set0_key(RSA* r, BIGNUM* n, BIGNUM* e, BIGNUM* d) {
546 static int (*origMethod)(RSA * r, BIGNUM * n, BIGNUM * e, BIGNUM * d) = nullptr;
547 if (origMethod == nullptr) origMethod = (decltype(origMethod))dlsym(RTLD_NEXT, SYMBOL_NAME("RSA_set0_key"));
548 bool fail = fail_RSA_set0_key & 1;
549 fail_RSA_set0_key = fail_RSA_set0_key >> 1;
550 if (fail)
551 return 0;
552 else
553 return origMethod(r, n, e, d);
554}
555
556int PEM_write_bio_EC_PUBKEY(BIO* bp, EC_KEY* x) {
557 static int (*origMethod)(BIO * bp, EC_KEY * x) = nullptr;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected