summaryrefslogtreecommitdiff
path: root/options.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-02-24 22:17:48 +0000
committerChristian Pointner <equinox@anytun.org>2008-02-24 22:17:48 +0000
commit9ef6972b360e5e8dd8485d25f0727cafea5e5331 (patch)
tree0b485fdb8eb5ce61609cdfc9c24d53a12c436ada /options.cpp
parentadded NullKeyDerivation (diff)
sorry forgot to add keyDerivatioFactory
Diffstat (limited to 'options.cpp')
-rw-r--r--options.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/options.cpp b/options.cpp
index 461e4f6..8bc4e77 100644
--- a/options.cpp
+++ b/options.cpp
@@ -71,7 +71,7 @@
i+=2; \
}
-#define PARSE_SCALAR_CSLIST(SHORT, LONG, LIST) \
+#define PARSE_CSLIST_PARAM(SHORT, LONG, LIST) \
else if(str == SHORT || str == LONG) \
{ \
if(argc < 1 || argv[i+1][0] == '-') \
@@ -174,6 +174,7 @@ void Options::printUsage()
<< " <remote|netmask> the remote address(tun) or netmask(tap)" << std::endl;
std::cout << " [-w|--window-size] <window size> seqence number window size" << std::endl;
std::cout << " [-c|--cipher] <cipher type> payload encryption algorithm" << std::endl;
+ std::cout << " [-k|--kd-prf] <kd-prf type> key derivation pseudo random function" << std::endl;
std::cout << " [-a|--auth-algo] <algo type> message authentication algorithm" << std::endl;
}
@@ -193,6 +194,7 @@ void Options::printOptions()
std::cout << "ifconfig_param_remote_netmask='" << ifconfig_param_remote_netmask_ << "'" << std::endl;
std::cout << "seq_window_size='" << seq_window_size_ << "'" << std::endl;
std::cout << "cipher='" << cipher_ << "'" << std::endl;
+ std::cout << "kd-prf='" << kd_prf_ << "'" << std::endl;
std::cout << "auth_algo='" << auth_algo_ << "'" << std::endl;
}