Skip to content

Commit

Permalink
dont change behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc committed Dec 10, 2023
1 parent e94e493 commit 5fd1ad9
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 @@ -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);
}
Expand Down

0 comments on commit 5fd1ad9

Please sign in to comment.