11//! <https://fidoalliance.org/specs/fido-v2.0-ps-20190130/fido-client-to-authenticator-protocol-v2.0-ps-20190130.html#authenticatorMakeCredential>
22
3- use ciborium:: { Value , cbor} ;
3+ use ciborium:: cbor;
44use serde:: { Deserialize , Serialize } ;
55
66use crate :: {
@@ -11,8 +11,11 @@ use crate::{
1111} ;
1212
1313#[ cfg( doc) ]
14- use crate :: webauthn:: {
15- CollectedClientData , PublicKeyCredentialCreationOptions , PublicKeyCredentialDescriptor ,
14+ use {
15+ crate :: webauthn:: {
16+ CollectedClientData , PublicKeyCredentialCreationOptions , PublicKeyCredentialDescriptor ,
17+ } ,
18+ ciborium:: value:: Value ,
1619} ;
1720
1821use super :: extensions:: { AuthenticatorPrfInputs , AuthenticatorPrfMakeOutputs , HmacGetSecretInput } ;
@@ -280,7 +283,7 @@ serde_workaround! {
280283 // TODO: Change to a flattened enum when `content, type` serde enums can use numbers as
281284 // the keys
282285 #[ serde( rename = 0x03 ) ]
283- pub att_stmt: Value ,
286+ pub att_stmt: ciborium :: value :: Value ,
284287
285288 /// Indicates whether an enterprise attestation was returned for this credential.
286289 /// If `ep_att` is absent or present and set to false, then an enterprise attestation was not returned.
@@ -323,7 +326,7 @@ impl Response {
323326 "fmt" => "none" ,
324327 "attStmt" => { } ,
325328 // Explicitly define these fields as bytes since specialization is still fairly far
326- "authData" => Value :: Bytes ( self . auth_data. to_vec( ) ) ,
329+ "authData" => ciborium :: value :: Value :: Bytes ( self . auth_data. to_vec( ) ) ,
327330 } )
328331 . unwrap ( ) ;
329332 ciborium:: ser:: into_writer ( & attestation_object_value, & mut attestation_object) . unwrap ( ) ;
0 commit comments