summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2000-04-12 07:45:43 +0000
committermarkus <markus@openbsd.org>2000-04-12 07:45:43 +0000
commitf8934f638c734f7f56d8b32b745586ea36ceda3b (patch)
tree4adf033096d740d9434c5a5975190372877fbc61 /usr.bin/ssh/ssh.c
parentcheck for reasonable public DH values (diff)
downloadwireguard-openbsd-f8934f638c734f7f56d8b32b745586ea36ceda3b.tar.xz
wireguard-openbsd-f8934f638c734f7f56d8b32b745586ea36ceda3b.zip
add Cipher and Protocol options to ssh/sshd, e.g.:
ssh -o 'Protocol 1,2' if you prefer proto 1, ssh -o 'Ciphers arcfour,3des-cbc'
Diffstat (limited to 'usr.bin/ssh/ssh.c')
-rw-r--r--usr.bin/ssh/ssh.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c
index 35dc45d2d1b..ecf3e824546 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.45 2000/04/04 15:19:42 markus Exp $");
+RCSID("$Id: ssh.c,v 1.46 2000/04/12 07:45:44 markus Exp $");
#include "xmalloc.h"
#include "ssh.h"
@@ -32,6 +32,7 @@ int IPv4or6 = AF_UNSPEC;
/* Flag indicating whether debug mode is on. This can be set on the command line. */
int debug_flag = 0;
+/* Flag indicating whether a tty should be allocated */
int tty_flag = 0;
/* don't exec a shell */
@@ -326,8 +327,10 @@ main(int ac, char **av)
case 'v':
case 'V':
- fprintf(stderr, "SSH Version %s, protocol version %d.%d.\n",
- SSH_VERSION, PROTOCOL_MAJOR, PROTOCOL_MINOR);
+ fprintf(stderr, "SSH Version %s, protocol versions %d.%d/%d.%d.\n",
+ SSH_VERSION,
+ PROTOCOL_MAJOR_1, PROTOCOL_MINOR_1,
+ PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2);
fprintf(stderr, "Compiled with SSL (0x%8.8lx).\n", SSLeay());
if (opt == 'V')
exit(0);