version 1.94, 2001/02/10 01:46:28 |
version 1.95, 2001/02/11 12:59:25 |
|
|
#include "tildexpand.h" |
#include "tildexpand.h" |
#include "dispatch.h" |
#include "dispatch.h" |
#include "misc.h" |
#include "misc.h" |
|
#include "kex.h" |
|
#include "mac.h" |
|
|
extern char *__progname; |
extern char *__progname; |
|
|
|
|
opt = av[optind][1]; |
opt = av[optind][1]; |
if (!opt) |
if (!opt) |
usage(); |
usage(); |
if (strchr("eilcpLRo", opt)) { /* options with arguments */ |
if (strchr("eilcmpLRo", opt)) { /* options with arguments */ |
optarg = av[optind] + 2; |
optarg = av[optind] + 2; |
if (strcmp(optarg, "") == 0) { |
if (strcmp(optarg, "") == 0) { |
if (optind >= ac - 1) |
if (optind >= ac - 1) |
|
|
} else { |
} else { |
options.ciphers = (char *)-1; |
options.ciphers = (char *)-1; |
} |
} |
|
} |
|
break; |
|
case 'm': |
|
if (mac_valid(optarg)) |
|
options.macs = xstrdup(optarg); |
|
else { |
|
fprintf(stderr, "Unknown mac type '%s'\n", optarg); |
|
exit(1); |
} |
} |
break; |
break; |
case 'p': |
case 'p': |