]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Print a key touch reminder when generating a security
authordjm@openbsd.org <djm@openbsd.org>
Mon, 25 Nov 2019 00:57:27 +0000 (00:57 +0000)
committerDamien Miller <djm@mindrot.org>
Mon, 25 Nov 2019 01:25:53 +0000 (12:25 +1100)
key. Most keys require a touch to authorize the operation.

OpenBSD-Commit-ID: 7fe8b23edbf33e1bb81741b9f25e9a63be5f6b68

ssh-keygen.c

index e939c5b574accb06beee67180695944cf77dc25b..a5d09c2a1c5b75824666c0658c6bad724ab0936f 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.372 2019/11/25 00:55:58 djm Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.373 2019/11/25 00:57:27 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -3294,6 +3294,11 @@ main(int argc, char **argv)
 #ifndef ENABLE_SK
                fatal("Security key support was disabled at compile time");
 #else /* ENABLE_SK */
+               if (!quiet) {
+                       printf("You may need to touch your security key "
+                           "to authorize key generation.\n");
+               }
+               fflush(stdout);
                if (sshsk_enroll(type, sk_provider,
                    cert_key_id == NULL ? "ssh:" : cert_key_id,
                    sk_flags, NULL, &private, NULL) != 0)