diff options
author | Damien Miller <djm@mindrot.org> | 2014-01-10 10:59:24 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-01-10 10:59:24 +1100 |
commit | 58cd63bc63038acddfb4051ed14e11179d8f4941 (patch) | |
tree | eb65dbe7f28e207756131ad75ec746310ff5eaa2 /sshconnect.c | |
parent | b3051d01e505c9c2dc00faab472a0d06fa6b0e65 (diff) |
- djm@cvs.openbsd.org 2014/01/09 23:26:48
[sshconnect.c sshd.c]
ban clients/servers that suffer from SSH_BUG_DERIVEKEY, they are ancient,
deranged and might make some attacks on KEX easier; ok markus@
Diffstat (limited to 'sshconnect.c')
-rw-r--r-- | sshconnect.c | 5 |
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); |