skip check_sk_options() in sk_sign() when interfacing with webauthn.dll (#582)

This commit is contained in:
pedro martelletto 2022-03-21 18:00:29 +01:00 committed by GitHub
parent bd0d488a3c
commit b314450fe5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -1189,8 +1189,9 @@ sk_sign(uint32_t alg, const uint8_t *data, size_t datalen,
goto out;
}
if (pin == NULL && (flags & SSH_SK_USER_VERIFICATION_REQD)) {
if (check_sk_options(sk->dev, "uv", &internal_uv) < 0 ||
internal_uv != 1) {
if (fido_dev_is_winhello(sk->dev) == false &&
(check_sk_options(sk->dev, "uv", &internal_uv) < 0 ||
internal_uv != 1)) {
skdebug(__func__, "check_sk_options uv");
ret = SSH_SK_ERR_PIN_REQUIRED;
goto out;