From 85f0a4508a84fc5f52b43910b7b4680639172735 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 10 Jan 2009 00:45:05 +0000 Subject: added posibility to disable passphrase calculation --- src/options.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/options.c') 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] message authentication algorithm\n"); printf(" [-k|--kd-prf] key derivation pseudo random function\n"); printf(" [-l|--ld-kdr] log2 of key derivation rate\n"); +#ifndef NO_PASSPHRASE printf(" [-E|--passphrase a passprhase to generate master key and salt from\n"); +#endif printf(" [-K|--key] master key to use for encryption\n"); printf(" [-A|--salt] master salt to use for encryption\n"); #endif -- cgit v1.2.3