ctap2-proto: Specify relying_party_id type as Cow<'a, str> in authenticator::client_pin::Request variant fields

main
Nick Zana 2 years ago
parent b1963220d8
commit 408c4864da

@ -1,5 +1,5 @@
use bounded_integer::BoundedUsize;
use std::collections::BTreeSet;
use std::{borrow::Cow, collections::BTreeSet};
#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
@ -36,7 +36,7 @@ pub enum Request<'a> {
version: auth_protocol::Version,
key_agreement: cosey::PublicKey,
permissions: &'a BTreeSet<Permission>, // TODO: Enforce non-empty set?
relying_party_id: Option<usize>,
relying_party_id: Option<Cow<'a, str>>,
},
GetUvRetries,
GetPinUvAuthTokenUsingPinWithPermissions {
@ -44,7 +44,7 @@ pub enum Request<'a> {
key_agreement: cosey::PublicKey,
pin_hash_encrypted: [u8; 16],
permissions: &'a BTreeSet<Permission>, // TODO: Enforce non-empty set?
relying_party_id: Option<usize>,
relying_party_id: Option<Cow<'a, str>>,
},
}

Loading…
Cancel
Save