Skip to content

Commit

Permalink
Always return credProtect in credential management
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczmarczyck committed Nov 24, 2023
1 parent eaeb927 commit e53548f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/opensk/src/ctap/credential_management.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,13 @@ fn enumerate_credentials_response<E: Env>(
transports: None, // You can set USB as a hint here.
};
let public_key = private_key.get_pub_key::<E>()?;
let cred_protect = cred_protect_policy.or(Some(env.customization().default_cred_protect()));
Ok(AuthenticatorCredentialManagementResponse {
user: Some(user),
credential_id: Some(credential_id),
public_key: Some(public_key),
total_credentials,
cred_protect: cred_protect_policy,
cred_protect,
large_blob_key,
..Default::default()
})
Expand Down

0 comments on commit e53548f

Please sign in to comment.