From e1b8a49f0e1d5d6ad66eec6ea90e4b8fd31412c1 Mon Sep 17 00:00:00 2001 From: Nick Zana Date: Tue, 16 May 2023 18:55:47 -0400 Subject: [PATCH] ctap2-proto: Replace HashMap with BTreeMap for make::Request --- crates/ctap2-proto/src/authenticator/credential/make.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ctap2-proto/src/authenticator/credential/make.rs b/crates/ctap2-proto/src/authenticator/credential/make.rs index 0419cc0..b39a99c 100644 --- a/crates/ctap2-proto/src/authenticator/credential/make.rs +++ b/crates/ctap2-proto/src/authenticator/credential/make.rs @@ -3,7 +3,7 @@ use crate::{ extensions, Sha256Hash, }; use fido_common::{attestation, credential::public_key}; -use std::collections::{BTreeMap, HashMap}; +use std::collections::BTreeMap; pub enum Error { OperationDenied, @@ -64,7 +64,7 @@ pub struct Request<'a> { pub exclude_list: Option<&'a [&'a public_key::Descriptor]>, /// > Parameters to influence authenticator operation, as specified in /// > [WebAuthn]. These parameters might be authenticator specific. - pub extensions: Option<&'a HashMap>>, + pub extensions: Option<&'a BTreeMap>>, pub options: Option<&'a BTreeMap>, pub pin_uv_auth_param: &'a [u8], /// > PIN/UV protocol version selected by platform.