]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
- markus@cvs.openbsd.org 2010/12/14 11:59:06
authorDamien Miller <djm@mindrot.org>
Thu, 6 Jan 2011 11:42:04 +0000 (22:42 +1100)
committerDamien Miller <djm@mindrot.org>
Thu, 6 Jan 2011 11:42:04 +0000 (22:42 +1100)
     [sshconnect.c]
     don't mention key type in key-changed-warning, since we also print
     this warning if a new key type appears. ok djm@

ChangeLog
sshconnect.c

index 9b84654388c8cc0eb7c3934c3cdd8d14edbb1100..19b2d098d04d1de6ee0f6eab0139d77b8a39d543 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,10 @@
      [scp.1 scp.c]
      scp.1: grammer fix
      scp.c: add -3 to usage()
+   - markus@cvs.openbsd.org 2010/12/14 11:59:06
+     [sshconnect.c]
+     don't mention key type in key-changed-warning, since we also print
+     this warning if a new key type appears. ok djm@
 
 20110104
  - (djm) [configure.ac Makefile.in] Use mandoc as preferred manpage
index 064bb74b39eaf21d8ea05e54cbbc3b31095fb6ae..45ba6ed12546447705980b28030170df5f72a000 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshconnect.c,v 1.229 2010/11/29 23:45:51 djm Exp $ */
+/* $OpenBSD: sshconnect.c,v 1.230 2010/12/14 11:59:06 markus Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1234,7 +1234,6 @@ static void
 warn_changed_key(Key *host_key)
 {
        char *fp;
-       const char *type = key_type(host_key);
 
        fp = key_fingerprint(host_key, SSH_FP_MD5, SSH_FP_HEX);
 
@@ -1243,9 +1242,9 @@ warn_changed_key(Key *host_key)
        error("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");
        error("IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!");
        error("Someone could be eavesdropping on you right now (man-in-the-middle attack)!");
-       error("It is also possible that the %s host key has just been changed.", type);
+       error("It is also possible that a host key has just been changed.");
        error("The fingerprint for the %s key sent by the remote host is\n%s.",
-           type, fp);
+           key_type(host_key), fp);
        error("Please contact your system administrator.");
 
        xfree(fp);