summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-04-30 13:06:24 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-04-30 13:06:24 +0000
commite0f88041945df494d1242cbaf3984edeeb68dd72 (patch)
tree395dd2c1429c69837ec7a83ca2b79af9c73ed996 /ssh.c
parent8a188a80274be0fb3d68049a8ba6cda58aab46f4 (diff)
- markus@cvs.openbsd.org 2001/04/30 11:18:52
[readconf.c readconf.h ssh.1 ssh.c sshconnect.c] implement 'ssh -b bind_address' like 'telnet -b'
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ssh.c b/ssh.c
index a1bc39949..0ba69be53 100644
--- a/ssh.c
+++ b/ssh.c
@@ -39,7 +39,7 @@
39 */ 39 */
40 40
41#include "includes.h" 41#include "includes.h"
42RCSID("$OpenBSD: ssh.c,v 1.116 2001/04/17 12:55:04 markus Exp $"); 42RCSID("$OpenBSD: ssh.c,v 1.117 2001/04/30 11:18:52 markus Exp $");
43 43
44#include <openssl/evp.h> 44#include <openssl/evp.h>
45#include <openssl/err.h> 45#include <openssl/err.h>
@@ -191,6 +191,7 @@ usage(void)
191 fprintf(stderr, " -6 Use IPv6 only.\n"); 191 fprintf(stderr, " -6 Use IPv6 only.\n");
192 fprintf(stderr, " -o 'option' Process the option as if it was read from a configuration file.\n"); 192 fprintf(stderr, " -o 'option' Process the option as if it was read from a configuration file.\n");
193 fprintf(stderr, " -s Invoke command (mandatory) as SSH2 subsystem.\n"); 193 fprintf(stderr, " -s Invoke command (mandatory) as SSH2 subsystem.\n");
194 fprintf(stderr, " -b Local IP address.\n");
194 exit(1); 195 exit(1);
195} 196}
196 197
@@ -318,7 +319,7 @@ main(int ac, char **av)
318 opt = av[optind][1]; 319 opt = av[optind][1];
319 if (!opt) 320 if (!opt)
320 usage(); 321 usage();
321 if (strchr("eilcmpLRDo", opt)) { /* options with arguments */ 322 if (strchr("eilcmpbLRDo", opt)) { /* options with arguments */
322 optarg = av[optind] + 2; 323 optarg = av[optind] + 2;
323 if (strcmp(optarg, "") == 0) { 324 if (strcmp(optarg, "") == 0) {
324 if (optind >= ac - 1) 325 if (optind >= ac - 1)
@@ -517,6 +518,9 @@ main(int ac, char **av)
517 case 's': 518 case 's':
518 subsystem_flag = 1; 519 subsystem_flag = 1;
519 break; 520 break;
521 case 'b':
522 options.bind_address = optarg;
523 break;
520 default: 524 default:
521 usage(); 525 usage();
522 } 526 }