From b314450fe5583d599aa53858f481c1b2e89cc584 Mon Sep 17 00:00:00 2001 From: pedro martelletto Date: Mon, 21 Mar 2022 18:00:29 +0100 Subject: [PATCH] skip check_sk_options() in sk_sign() when interfacing with webauthn.dll (#582) --- sk-usbhid.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sk-usbhid.c b/sk-usbhid.c index f99c0cfe6..4796cff75 100644 --- a/sk-usbhid.c +++ b/sk-usbhid.c @@ -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;