diff options
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -39,7 +39,7 @@ | |||
39 | */ | 39 | */ |
40 | 40 | ||
41 | #include "includes.h" | 41 | #include "includes.h" |
42 | RCSID("$OpenBSD: ssh.c,v 1.94 2001/02/10 01:46:28 markus Exp $"); | 42 | RCSID("$OpenBSD: ssh.c,v 1.95 2001/02/11 12:59:25 markus Exp $"); |
43 | 43 | ||
44 | #include <openssl/evp.h> | 44 | #include <openssl/evp.h> |
45 | #include <openssl/err.h> | 45 | #include <openssl/err.h> |
@@ -65,6 +65,8 @@ RCSID("$OpenBSD: ssh.c,v 1.94 2001/02/10 01:46:28 markus Exp $"); | |||
65 | #include "tildexpand.h" | 65 | #include "tildexpand.h" |
66 | #include "dispatch.h" | 66 | #include "dispatch.h" |
67 | #include "misc.h" | 67 | #include "misc.h" |
68 | #include "kex.h" | ||
69 | #include "mac.h" | ||
68 | 70 | ||
69 | #ifdef HAVE___PROGNAME | 71 | #ifdef HAVE___PROGNAME |
70 | extern char *__progname; | 72 | extern char *__progname; |
@@ -305,7 +307,7 @@ main(int ac, char **av) | |||
305 | opt = av[optind][1]; | 307 | opt = av[optind][1]; |
306 | if (!opt) | 308 | if (!opt) |
307 | usage(); | 309 | usage(); |
308 | if (strchr("eilcpLRo", opt)) { /* options with arguments */ | 310 | if (strchr("eilcmpLRo", opt)) { /* options with arguments */ |
309 | optarg = av[optind] + 2; | 311 | optarg = av[optind] + 2; |
310 | if (strcmp(optarg, "") == 0) { | 312 | if (strcmp(optarg, "") == 0) { |
311 | if (optind >= ac - 1) | 313 | if (optind >= ac - 1) |
@@ -434,6 +436,14 @@ main(int ac, char **av) | |||
434 | } | 436 | } |
435 | } | 437 | } |
436 | break; | 438 | break; |
439 | case 'm': | ||
440 | if (mac_valid(optarg)) | ||
441 | options.macs = xstrdup(optarg); | ||
442 | else { | ||
443 | fprintf(stderr, "Unknown mac type '%s'\n", optarg); | ||
444 | exit(1); | ||
445 | } | ||
446 | break; | ||
437 | case 'p': | 447 | case 'p': |
438 | options.port = atoi(optarg); | 448 | options.port = atoi(optarg); |
439 | break; | 449 | break; |