Skip to content

Commit 0415e75

Browse files
add a quick test to see if rsa helpers handle ec certs
LoadPublicKeyFromStringReferenceWithEcCert
1 parent 53fb5e1 commit 0415e75

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/OpenSSLErrorTest.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,11 @@ TEST(OpenSSLErrorTest, LoadPublicKeyFromStringReference) {
536536
ASSERT_TRUE(res);
537537
}
538538

539+
TEST(OpenSSLErrorTest, LoadPublicKeyFromStringReferenceWithEcCert) {
540+
auto res = jwt::helper::load_public_key_from_string(ecdsa256_pub_key, "");
541+
ASSERT_TRUE(res);
542+
}
543+
539544
TEST(OpenSSLErrorTest, LoadPublicKeyFromString) {
540545
std::vector<multitest_entry> mapping{{&fail_BIO_new, 1, jwt::error::rsa_error::create_mem_bio_failed},
541546
{&fail_BIO_write, 1, jwt::error::rsa_error::load_key_bio_write},

0 commit comments

Comments
 (0)