]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: fix punctuation around host key fingerprints to make them
authordjm@openbsd.org <djm@openbsd.org>
Sat, 24 May 2025 09:46:16 +0000 (09:46 +0000)
committerDamien Miller <djm@mindrot.org>
Sat, 24 May 2025 09:46:56 +0000 (19:46 +1000)
easier to copy and paste.

Patch from Till Maas via GHPR556; ok dtucker@

OpenBSD-Commit-ID: c0100182a30b6925c8cdb2225b18140264594b7b

sshconnect.c

index b306fa3cc24f6196167c11563242bf7bb7e19a3c..a90167fd6daef1c2c218bff55baaf14b9f1a1c81 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshconnect.c,v 1.370 2025/05/06 05:40:56 djm Exp $ */
+/* $OpenBSD: sshconnect.c,v 1.371 2025/05/24 09:46:16 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1145,7 +1145,7 @@ check_host_key(char *hostname, const struct ssh_conn_info *cinfo,
                            options.fingerprint_hash, SSH_FP_RANDOMART);
                        if (fp == NULL || ra == NULL)
                                fatal_f("sshkey_fingerprint failed");
-                       logit("Host key fingerprint is %s\n%s", fp, ra);
+                       logit("Host key fingerprint is: %s\n%s", fp, ra);
                        free(ra);
                        free(fp);
                }
@@ -1196,7 +1196,7 @@ check_host_key(char *hostname, const struct ssh_conn_info *cinfo,
                            options.fingerprint_hash, SSH_FP_RANDOMART);
                        if (fp == NULL || ra == NULL)
                                fatal_f("sshkey_fingerprint failed");
-                       xextendf(&msg1, "\n", "%s key fingerprint is %s.",
+                       xextendf(&msg1, "\n", "%s key fingerprint is: %s",
                            type, fp);
                        if (options.visual_host_key)
                                xextendf(&msg1, "\n", "%s", ra);