Skip to content

Commit 621d49d

Browse files
committed
Fix EC curve detection
1 parent 5f56481 commit 621d49d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scitokens_internal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ Validator::get_public_key_pem(const std::string &issuer, const std::string &kid,
431431
if (iter3 == key_obj.end() || !iter3->second.is<std::string>()) {
432432
throw JsonException("EC key is missing curve name");
433433
}
434-
auto crv = iter2->second.get<std::string>();
434+
auto crv = iter3->second.get<std::string>();
435435
if (crv == "P-256") {
436436
alg = "EC256";
437437
} else {

0 commit comments

Comments
 (0)