diff options
author | 2001-02-06 23:03:24 +0000 | |
---|---|---|
committer | 2001-02-06 23:03:24 +0000 | |
commit | 98a96df785a6cc6f0edaa68cabafaa70346d20d5 (patch) | |
tree | a58f7605a902ec53c3cf77f9735e1805206f3c2c /usr.bin/ssh/ssh.c | |
parent | i can be stooooopid (diff) | |
download | wireguard-openbsd-98a96df785a6cc6f0edaa68cabafaa70346d20d5.tar.xz wireguard-openbsd-98a96df785a6cc6f0edaa68cabafaa70346d20d5.zip |
add -1 option (force protocol version 1). ok markus@
Diffstat (limited to 'usr.bin/ssh/ssh.c')
-rw-r--r-- | usr.bin/ssh/ssh.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c index a89b66cd00d..7278d7d00bc 100644 --- a/usr.bin/ssh/ssh.c +++ b/usr.bin/ssh/ssh.c @@ -39,7 +39,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh.c,v 1.90 2001/02/06 22:43:02 markus Exp $"); +RCSID("$OpenBSD: ssh.c,v 1.91 2001/02/06 23:03:24 jakob Exp $"); #include <openssl/evp.h> #include <openssl/err.h> @@ -175,6 +175,7 @@ usage() fprintf(stderr, " -g Allow remote hosts to connect to forwarded ports.\n"); fprintf(stderr, " -4 Use IPv4 only.\n"); fprintf(stderr, " -6 Use IPv6 only.\n"); + fprintf(stderr, " -1 Force protocol version 1.\n"); fprintf(stderr, " -2 Force protocol version 2.\n"); fprintf(stderr, " -o 'option' Process the option as if it was read from a configuration file.\n"); fprintf(stderr, " -s Invoke command (mandatory) as SSH2 subsystem.\n"); @@ -310,6 +311,9 @@ main(int ac, char **av) optarg = NULL; } switch (opt) { + case '1': + options.protocol = SSH_PROTO_1; + break; case '2': options.protocol = SSH_PROTO_2; break; |