@@ -15,9 +15,8 @@ use crate::proto::ctap1::{Ctap1RegisterRequest, Ctap1SignRequest};
1515use crate :: proto:: ctap1:: { Ctap1RegisterResponse , Ctap1SignResponse } ;
1616use crate :: proto:: ctap2:: cbor;
1717use crate :: proto:: ctap2:: {
18- Ctap2AttestationStatement , Ctap2COSEAlgorithmIdentifier , Ctap2GetAssertionResponse ,
19- Ctap2MakeCredentialResponse , Ctap2PublicKeyCredentialDescriptor , Ctap2PublicKeyCredentialType ,
20- FidoU2fAttestationStmt ,
18+ Ctap2AttestationStatement , Ctap2GetAssertionResponse , Ctap2MakeCredentialResponse ,
19+ Ctap2PublicKeyCredentialDescriptor , Ctap2PublicKeyCredentialType , FidoU2fAttestationStmt ,
2120} ;
2221use crate :: webauthn:: { CtapError , Error } ;
2322
@@ -132,9 +131,8 @@ impl UpgradableResponse<MakeCredentialResponse, MakeCredentialRequest> for Regis
132131 // Note: An ASN.1-encoded ECDSA signature value ranges over 8–72 bytes in length. [U2FRawMsgs] incorrectly
133132 // states a different length range.
134133 let attestation_statement = Ctap2AttestationStatement :: FidoU2F ( FidoU2fAttestationStmt {
135- algorithm : Ctap2COSEAlgorithmIdentifier :: ES256 ,
136134 signature : ByteBuf :: from ( self . signature . clone ( ) ) ,
137- certificates : vec ! [ ByteBuf :: from( self . attestation. clone( ) ) ] ,
135+ certificate : ByteBuf :: from ( self . attestation . clone ( ) ) ,
138136 } ) ;
139137
140138 // Let attestationObject be a CBOR map (see "attObj" in Generating an Attestation Object [WebAuthn]) with the
0 commit comments