From 72a320ad95f27fb53e32b38a0e6c6e9659506a44 Mon Sep 17 00:00:00 2001 From: Christopher McArthur Date: Sun, 10 Dec 2023 15:46:58 -0500 Subject: [PATCH] run all tests with generic helper --- include/jwt-cpp/jwt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/jwt-cpp/jwt.h b/include/jwt-cpp/jwt.h index b2b998a2e..000fb0b11 100644 --- a/include/jwt-cpp/jwt.h +++ b/include/jwt-cpp/jwt.h @@ -1111,10 +1111,10 @@ namespace jwt { const std::string& private_key_password, const EVP_MD* (*md)(), std::string name, size_t siglen) : md(md), alg_name(std::move(name)), signature_length(siglen) { if (!private_key.empty()) { - pkey = helper::load_private_ec_key_from_string(private_key, private_key_password); + pkey = helper::load_private_key_from_string(private_key, private_key_password); check_private_key(pkey.get()); } else if (!public_key.empty()) { - pkey = helper::load_public_ec_key_from_string(public_key, public_key_password); + pkey = helper::load_public_key_from_string(public_key, public_key_password); check_public_key(pkey.get()); } else { throw error::ecdsa_exception(error::ecdsa_error::no_key_provided);