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

Function TEST

tests/OpenSSLErrorTest.cpp:676–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674} // namespace test_keys
675
676TEST(OpenSSLErrorTest, ExtractPubkeyFromCertReference) {
677 std::error_code ec;
678 auto res = jwt::helper::extract_pubkey_from_cert(sample_cert, "", ec);
679 ASSERT_EQ(res, sample_cert_pubkey);
680 ASSERT_FALSE(!(!ec));
681 ASSERT_EQ(ec.value(), 0);
682}
683
684#if !defined(LIBWOLFSSL_VERSION_HEX) || LIBWOLFSSL_VERSION_HEX >= 0x05007000
685/* Older versions of wolfSSL output different PEM encoding */

Callers

nothing calls this directly

Calls 12

extract_pubkey_from_certFunction · 0.85
run_multitestFunction · 0.85
ed25519Class · 0.85
valueMethod · 0.80
verifyFunction · 0.50
decodeFunction · 0.50
verifyMethod · 0.45
signMethod · 0.45

Tested by

no test coverage detected