summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sshconnect2.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2000-10-12 09:59:21 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2000-10-12 09:59:21 +0000
commit1c384282b3a7b37f135b61e49c1c2c4583bbe7a6 (patch)
treeae1b11f78f2deec6db05d05eb214e4a93acf35e2 /usr.bin/ssh/sshconnect2.c
parent8727104b8eb8d058d7d16584a6194d30093ccbe1 (diff)
enable DES in SSH-1 clients only
Diffstat (limited to 'usr.bin/ssh/sshconnect2.c')
-rw-r--r--usr.bin/ssh/sshconnect2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ssh/sshconnect2.c b/usr.bin/ssh/sshconnect2.c
index 0785548a486..ca459f62c35 100644
--- a/usr.bin/ssh/sshconnect2.c
+++ b/usr.bin/ssh/sshconnect2.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshconnect2.c,v 1.24 2000/10/11 20:27:24 markus Exp $");
+RCSID("$OpenBSD: sshconnect2.c,v 1.25 2000/10/12 09:59:19 markus Exp $");
#include <openssl/bn.h>
#include <openssl/rsa.h>
@@ -80,6 +80,8 @@ ssh_kex2(char *host, struct sockaddr *hostaddr)
options.ciphers = "3des-cbc";
} else if (options.cipher == SSH_CIPHER_BLOWFISH) {
options.ciphers = "blowfish-cbc";
+ } else if (options.cipher == SSH_CIPHER_DES) {
+ fatal("cipher DES not supported for protocol version 2");
}
}
if (options.ciphers != NULL) {