Skip to content

Commit

Permalink
Fix 'json::parse' build error in Xcode 15 (#373)
Browse files Browse the repository at this point in the history
Co-authored-by: chengzhl <chengzhl@cisco.com>
  • Loading branch information
czlitony and chengzhl committed Oct 7, 2023
1 parent 8a010ef commit 8c1c2bd
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 8c1c2bd

Please sign in to comment.