summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-01-10 00:45:05 +0000
committerChristian Pointner <equinox@anytun.org>2009-01-10 00:45:05 +0000
commit85f0a4508a84fc5f52b43910b7b4680639172735 (patch)
tree29b194e678787f2968ea84ddc73e4257e2d16be8 /src/options.c
parentadded usage output and --help to configure script (diff)
added posibility to disable passphrase calculation
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index 9bfb030..32f0ce7 100644
--- a/src/options.c
+++ b/src/options.c
@@ -201,7 +201,9 @@ int options_parse(options_t* opt, int argc, char* argv[])
PARSE_STRING_PARAM("-k","--kd-prf", opt->kd_prf_)
PARSE_INT_PARAM("-l","--ld-kdr", opt->ld_kdr_)
PARSE_STRING_PARAM("-a","--auth-algo", opt->auth_algo_)
+#ifndef NO_PASSPHRASE
PARSE_STRING_PARAM_SEC("-E","--passphrase", opt->passphrase_)
+#endif
PARSE_HEXSTRING_PARAM_SEC("-K","--key", opt->key_)
PARSE_HEXSTRING_PARAM_SEC("-A","--salt", opt->salt_)
#endif
@@ -334,7 +336,9 @@ void options_print_usage()
printf(" [-a|--auth-algo] <algo type> message authentication algorithm\n");
printf(" [-k|--kd-prf] <kd-prf type> key derivation pseudo random function\n");
printf(" [-l|--ld-kdr] <ld-kdr> log2 of key derivation rate\n");
+#ifndef NO_PASSPHRASE
printf(" [-E|--passphrase <pass phrase> a passprhase to generate master key and salt from\n");
+#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");
#endif