summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshconnect.c')
-rw-r--r--sshconnect.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sshconnect.c b/sshconnect.c
index 791b31c12..d21781ea4 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshconnect.c,v 1.243 2013/12/30 23:52:27 djm Exp $ */ 1/* $OpenBSD: sshconnect.c,v 1.244 2014/01/09 23:26:48 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -662,6 +662,9 @@ ssh_exchange_identification(int timeout_ms)
662 fatal("Protocol major versions differ: %d vs. %d", 662 fatal("Protocol major versions differ: %d vs. %d",
663 (options.protocol & SSH_PROTO_2) ? PROTOCOL_MAJOR_2 : PROTOCOL_MAJOR_1, 663 (options.protocol & SSH_PROTO_2) ? PROTOCOL_MAJOR_2 : PROTOCOL_MAJOR_1,
664 remote_major); 664 remote_major);
665 if ((datafellows & SSH_BUG_DERIVEKEY) != 0)
666 fatal("Server version \"%.100s\" uses unsafe key agreement; "
667 "refusing connection", remote_version);
665 if ((datafellows & SSH_BUG_RSASIGMD5) != 0) 668 if ((datafellows & SSH_BUG_RSASIGMD5) != 0)
666 logit("Server version \"%.100s\" uses unsafe RSA signature " 669 logit("Server version \"%.100s\" uses unsafe RSA signature "
667 "scheme; disabling use of RSA keys", remote_version); 670 "scheme; disabling use of RSA keys", remote_version);