summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-03-16 23:42:16 +0000
committerChristian Pointner <equinox@anytun.org>2009-03-16 23:42:16 +0000
commit19e2940e11d1c1e2d7a18dc52fcc8ad0711556ed (patch)
treee0a0e37336b379e89985ea1e4818ca23d7f52e81 /src/options.c
parentremoved ld_kdr and key store (diff)
removed role symmetric (useless)
added new label (direction specific)
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/options.c b/src/options.c
index b743002..e4112e0 100644
--- a/src/options.c
+++ b/src/options.c
@@ -279,8 +279,6 @@ int options_parse(options_t* opt, int argc, char* argv[])
opt->role_ = ROLE_LEFT;
else if(!strcmp(role, "bob") || !strcmp(role, "client") || !strcmp(role, "right"))
opt->role_ = ROLE_RIGHT;
- else if(!strcmp(role, "eve") || !strcmp(role, "weak") || !strcmp(role, "symmetric"))
- opt->role_ = ROLE_SYMMETRIC;
else {
free(role);
return -4;
@@ -451,7 +449,7 @@ void options_print_usage()
#endif
printf(" [-K|--key] <master key> master key to use for encryption\n");
printf(" [-A|--salt] <master salt> master salt to use for encryption\n");
- printf(" [-e|--role] <role> alice, bob or eve");
+ printf(" [-e|--role] <role> left (alice) or right (bob)");
printf(" [-c|--cipher] <cipher type> payload encryption algorithm\n");
printf(" [-a|--auth-algo] <algo type> message authentication algorithm\n");
printf(" [-b|--auth-tag-length] <length> length of the auth tag\n");
@@ -500,7 +498,6 @@ void options_print(options_t* opt)
switch(opt->role_) {
case ROLE_LEFT: printf("left\n"); break;
case ROLE_RIGHT: printf("right\n"); break;
- case ROLE_SYMMETRIC: printf("symmetric\n"); break;
default: printf("??\n"); break;
}
#endif