[openssh-commits] [openssh] 03/03: on Cygwin, prefer WinHello FIDO device

git+noreply at mindrot.org git+noreply at mindrot.org
Wed Aug 17 16:06:11 AEST 2022

This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit cd06a76b7ccc706e2bb4f1cc4aa9e9796a28a812
Author: Damien Miller <djm at mindrot.org>
Date:   Wed Aug 17 16:04:16 2022 +1000

    on Cygwin, prefer WinHello FIDO device
    If no FIDO device was explictly specified, then prefer the
    windows://hello FIDO device. An exception to this is when
    probing resident FIDO keys, in which case hardware FIDO
    devices are preferred.
 sk-usbhid.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sk-usbhid.c b/sk-usbhid.c
index 1d0faebc..8f835733 100644
--- a/sk-usbhid.c
+++ b/sk-usbhid.c
@@ -571,6 +571,10 @@ sk_probe(const char *application, const uint8_t *key_handle,
 	size_t ndevs;
 	int r;
+	if (!probe_resident && (sk = sk_open("windows://hello")) != NULL)
+		return sk;
+#endif /* HAVE_CYGWIN */
 	if ((devlist = fido_dev_info_new(MAX_FIDO_DEVICES)) == NULL) {
 		skdebug(__func__, "fido_dev_info_new failed");
 		return NULL;

To stop receiving notification emails like this one, please contact
djm at mindrot.org.

More information about the openssh-commits mailing list