From 5fd1ad9ad585e47d255dea3d8cd16d59d721b65b Mon Sep 17 00:00:00 2001 From: Christopher McArthur Date: Sun, 10 Dec 2023 17:48:30 -0500 Subject: [PATCH] dont change behavior --- 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 a1dd7600e..21c6a1d17 100644 --- a/include/jwt-cpp/jwt.h +++ b/include/jwt-cpp/jwt.h @@ -1332,9 +1332,9 @@ namespace jwt { const std::string& private_key_password, std::string name) : alg_name(std::move(name)) { 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); } 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); } else throw error::ecdsa_exception(error::ecdsa_error::load_key_bio_read); }