Skip to content

Commit

Permalink
Fix 'json::parse' build error in Xcode 15
Browse files Browse the repository at this point in the history
  • Loading branch information
chengzhl committed Sep 22, 2023
1 parent 8a010ef commit a99d55a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/hpke/src/userinfo_vc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ struct UserInfoVC::ParsedCredential
const auto signature_b64 = jwt.substr(last_dot + 1);

// Parse the components
const auto header = json::parse(from_base64url(header_b64));
const auto payload = json::parse(from_base64url(payload_b64));
const auto header = json::parse(to_ascii(from_base64url(header_b64)));
const auto payload = json::parse(to_ascii(from_base64url(payload_b64)));

// Prepare the validation inputs
const auto& sig = signature_from_alg(header.at("alg"));
Expand Down

0 comments on commit a99d55a

Please sign in to comment.