Skip to content

Commit

Permalink
add a condition of clientPin as per spec
Browse files Browse the repository at this point in the history
  • Loading branch information
z4yx committed Aug 2, 2023
1 parent 81c7d4a commit d00cffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applets/ctap/ctap.c
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ static uint8_t ctap_get_assertion(CborEncoder *encoder, uint8_t *params, size_t
// 6. If authenticator is protected by some form of user verification, then:
// 6.2 [N/A] If the "uv" option is present and set to true
// 6.1 If pin_uv_auth_param parameter is present
if (ga.parsed_params & PARAM_PIN_UV_AUTH_PARAM) {
if (has_pin() && (ga.parsed_params & PARAM_PIN_UV_AUTH_PARAM)) {
// a) Call verify(pinUvAuthToken, client_data_hash, pin_uv_auth_param).
// If the verification returns error, return CTAP2_ERR_PIN_AUTH_INVALID error.
// If the verification returns success, set the "uv" bit to true in the response.
Expand Down

0 comments on commit d00cffd

Please sign in to comment.