diff options
author | Jakob Schlyter <jakob@cvs.openbsd.org> | 2001-02-06 23:03:25 +0000 |
---|---|---|
committer | Jakob Schlyter <jakob@cvs.openbsd.org> | 2001-02-06 23:03:25 +0000 |
commit | 870406fba4c6e5897a3378ed7b2ee1dccbbc2079 (patch) | |
tree | 98b0a748ad221c4307c5014838d4f30809f81103 /usr.bin/ssh/ssh.c | |
parent | 2ae97c7e53734073fa8a40a3924a90249b27135c (diff) |
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; |