Skip to content

Commit b314450

Browse files
authored
skip check_sk_options() in sk_sign() when interfacing with webauthn.dll (#582)
1 parent bd0d488 commit b314450

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sk-usbhid.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,8 +1189,9 @@ sk_sign(uint32_t alg, const uint8_t *data, size_t datalen,
11891189
goto out;
11901190
}
11911191
if (pin == NULL && (flags & SSH_SK_USER_VERIFICATION_REQD)) {
1192-
if (check_sk_options(sk->dev, "uv", &internal_uv) < 0 ||
1193-
internal_uv != 1) {
1192+
if (fido_dev_is_winhello(sk->dev) == false &&
1193+
(check_sk_options(sk->dev, "uv", &internal_uv) < 0 ||
1194+
internal_uv != 1)) {
11941195
skdebug(__func__, "check_sk_options uv");
11951196
ret = SSH_SK_ERR_PIN_REQUIRED;
11961197
goto out;

0 commit comments

Comments
 (0)