Skip to content

Commit 5fd1ad9

Browse files
dont change behavior
1 parent e94e493 commit 5fd1ad9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/jwt-cpp/jwt.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,9 +1332,9 @@ namespace jwt {
13321332
const std::string& private_key_password, std::string name)
13331333
: alg_name(std::move(name)) {
13341334
if (!private_key.empty()) {
1335-
pkey = helper::load_private_ec_key_from_string(private_key, private_key_password);
1335+
pkey = helper::load_private_key_from_string(private_key, private_key_password);
13361336
} else if (!public_key.empty()) {
1337-
pkey = helper::load_public_ec_key_from_string(public_key, public_key_password);
1337+
pkey = helper::load_public_key_from_string(public_key, public_key_password);
13381338
} else
13391339
throw error::ecdsa_exception(error::ecdsa_error::load_key_bio_read);
13401340
}

0 commit comments

Comments
 (0)