Skip to content

Commit

Permalink
Add pin_protocol field to HmacSecretInput
Browse files Browse the repository at this point in the history
The December 08, 2020 version of the Client to Authenticator Protocol
(CTAP) specification added the pinUvAuthProtocol(0x04) field to the
input data for the hmac-secret extension in the
authenticatorGetAssertion command.  This patch adds this new field to
the HmacSecretInput struct to make it possible to parse requests using
this new field.
	https://fidoalliance.org/specs/fido-v2.1-rd-20201208/fido-client-to-authenticator-protocol-v2.1-rd-20201208.html

Fixes #1.
  • Loading branch information
robin-nitrokey authored and nickray committed Nov 24, 2021
1 parent 2262ee7 commit 3a5197b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ctap2/get_assertion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ pub struct HmacSecretInput {
// *either* enc(salt1) *or* enc(salt1 || salt2)
pub salt_enc: Bytes<64>,
pub salt_auth: Bytes<16>,

#[serde(skip_serializing_if = "Option::is_none")]
pub pin_protocol: Option<u32>
}

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

0 comments on commit 3a5197b

Please sign in to comment.