Skip to content

Commit

Permalink
Make ProtectedHeader members public
Browse files Browse the repository at this point in the history
Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
  • Loading branch information
Xynnn007 authored and tylerfanelli committed Dec 2, 2024
1 parent f313edb commit f47881f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ pub struct Attestation {
#[derive(Clone, Serialize, Deserialize, Debug)]
pub struct ProtectedHeader {
/// Enryption algorithm for encrypted key
alg: String,
pub alg: String,
/// Encryption algorithm for payload
enc: String,
pub enc: String,

/// Other fields of Protected Header
#[serde(skip_serializing_if = "BTreeMap::is_empty", flatten)]
other_fields: BTreeMap<String, String>,
pub other_fields: BTreeMap<String, String>,
}

#[derive(Clone, Serialize, Deserialize, Debug)]
Expand Down

0 comments on commit f47881f

Please sign in to comment.