diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2000-10-12 09:59:21 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2000-10-12 09:59:21 +0000 |
commit | 1c384282b3a7b37f135b61e49c1c2c4583bbe7a6 (patch) | |
tree | ae1b11f78f2deec6db05d05eb214e4a93acf35e2 /usr.bin/ssh/sshconnect2.c | |
parent | 8727104b8eb8d058d7d16584a6194d30093ccbe1 (diff) |
enable DES in SSH-1 clients only
Diffstat (limited to 'usr.bin/ssh/sshconnect2.c')
-rw-r--r-- | usr.bin/ssh/sshconnect2.c | 4 |
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) { |