Skip to content

Commit

Permalink
run all tests with generic helper
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc committed Dec 10, 2023
1 parent 0415e75 commit 72a320a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/jwt-cpp/jwt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 72a320a

Please sign in to comment.