Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
djw8605 committed Nov 8, 2019
2 parents 52f6ca3 + f28c528 commit ef902d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scitokens_internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,9 @@ Validator::get_public_key_pem(const std::string &issuer, const std::string &kid,
if (iter3 == key_obj.end() || !iter3->second.is<std::string>()) {
throw JsonException("EC key is missing curve name");
}
auto crv = iter2->second.get<std::string>();
auto crv = iter3->second.get<std::string>();
if (crv == "P-256") {
alg = "EC256";
alg = "ES256";
} else {
throw JsonException("Unsupported EC curve in public key");
}
Expand Down

0 comments on commit ef902d7

Please sign in to comment.