summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2000-05-08 17:12:15 +0000
committermarkus <markus@openbsd.org>2000-05-08 17:12:15 +0000
commite51b777aca04de995f734e0d6707bafcc1060d7f (patch)
treeeee1108d7e04a306c7a1889d655bce1277989cc6 /usr.bin/ssh/ssh.c
parentsync (diff)
downloadwireguard-openbsd-e51b777aca04de995f734e0d6707bafcc1060d7f.tar.xz
wireguard-openbsd-e51b777aca04de995f734e0d6707bafcc1060d7f.zip
complain about invalid ciphers in SSH1 (e.g. arcfour is SSH2 only)
Diffstat (limited to 'usr.bin/ssh/ssh.c')
-rw-r--r--usr.bin/ssh/ssh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c
index 434e92c1293..0ab3f9fb058 100644
--- a/usr.bin/ssh/ssh.c
+++ b/usr.bin/ssh/ssh.c
@@ -11,7 +11,7 @@
*/
#include "includes.h"
-RCSID("$Id: ssh.c,v 1.50 2000/04/28 08:10:20 markus Exp $");
+RCSID("$Id: ssh.c,v 1.51 2000/05/08 17:12:15 markus Exp $");
#include <openssl/evp.h>
#include <openssl/dsa.h>
@@ -359,6 +359,7 @@ main(int ac, char **av)
if (ciphers_valid(optarg)) {
/* SSH2 only */
options.ciphers = xstrdup(optarg);
+ options.cipher = SSH_CIPHER_ILLEGAL;
} else {
/* SSH1 only */
options.cipher = cipher_number(optarg);