Skip to content

Commit

Permalink
Add enterprise attestation support to get_assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-nitrokey committed Jun 22, 2024
1 parent 8133c72 commit 2bceedc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add support for the `thirdPartyPayment` extension
- Add new fields to `get_info`
- Add unsigned extension outputs to `make_credential` and `get_assertion`
- Add enterprise attestation support to `get_assertion`

## [0.2.0] - 2024-06-21

Expand Down
5 changes: 5 additions & 0 deletions src/ctap2/get_assertion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ pub struct Request<'a> {
pub pin_auth: Option<&'a serde_bytes::Bytes>,
#[serde(skip_serializing_if = "Option::is_none")]
pub pin_protocol: Option<u32>,
#[serde(skip_serializing_if = "Option::is_none")]
pub enterprise_attestation: Option<u32>,
}

// NB: attn object definition / order at end of
Expand All @@ -124,6 +126,8 @@ pub struct Response {
pub large_blob_key: Option<ByteArray<32>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub unsigned_extension_outputs: Option<UnsignedExtensionOutputs>,
#[serde(skip_serializing_if = "Option::is_none")]
pub ep_att: Option<bool>,
}

#[derive(Debug)]
Expand All @@ -145,6 +149,7 @@ impl ResponseBuilder {
user_selected: None,
large_blob_key: None,
unsigned_extension_outputs: None,
ep_att: None,
}
}
}
Expand Down

0 comments on commit 2bceedc

Please sign in to comment.