From 3d174037c175e33b0b57c0639ab7440e9f5d6abc Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 19 Feb 2008 17:31:04 +0000 Subject: replaces cypher with cipher --- options.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'options.cpp') diff --git a/options.cpp b/options.cpp index 1158c98..4803cd2 100644 --- a/options.cpp +++ b/options.cpp @@ -103,7 +103,7 @@ Options::Options() ifconfig_param_local_ = "192.168.200.1"; ifconfig_param_remote_netmask_ = "255.255.255.0"; seq_window_size_ = 100; - cypher_ = "aes"; + cipher_ = "aes"; auth_algo_ = "sha1"; } @@ -133,7 +133,7 @@ bool Options::parse(int argc, char* argv[]) PARSE_SCALAR_PARAM("-t","--type", dev_type_) PARSE_SCALAR_PARAM2("-n","--ifconfig", ifconfig_param_local_, ifconfig_param_remote_netmask_) PARSE_SCALAR_PARAM("-w","--window-size", seq_window_size_) - PARSE_SCALAR_PARAM("-c","--cypher", cypher_) + PARSE_SCALAR_PARAM("-c","--cipher", cipher_) PARSE_SCALAR_PARAM("-a","--auth-algo", auth_algo_) PARSE_SCALAR_CSLIST("-M","--sync-hosts", host_port_queue) else @@ -171,7 +171,7 @@ void Options::printUsage() std::cout << " [-n|--ifconfig] the local address for the tun/tap device" << std::endl << " the remote address(tun) or netmask(tap)" << std::endl; std::cout << " [-w|--window-size] seqence number window size" << std::endl; - std::cout << " [-c|--cypher] payload encryption algorithm" << std::endl; + std::cout << " [-c|--cipher] payload encryption algorithm" << std::endl; std::cout << " [-a|--auth-algo] message authentication algorithm" << std::endl; } @@ -190,7 +190,7 @@ void Options::printOptions() std::cout << "ifconfig_param_local='" << ifconfig_param_local_ << "'" << std::endl; std::cout << "ifconfig_param_remote_netmask='" << ifconfig_param_remote_netmask_ << "'" << std::endl; std::cout << "seq_window_size='" << seq_window_size_ << "'" << std::endl; - std::cout << "cypher='" << cypher_ << "'" << std::endl; + std::cout << "cipher='" << cipher_ << "'" << std::endl; std::cout << "auth_algo='" << auth_algo_ << "'" << std::endl; } @@ -392,16 +392,16 @@ Options& Options::setSeqWindowSize(window_size_t s) return *this; } -std::string Options::getCypher() +std::string Options::getCipher() { Lock lock(mutex); - return cypher_; + return cipher_; } -Options& Options::setCypher(std::string c) +Options& Options::setCipher(std::string c) { Lock lock(mutex); - cypher_ = c; + cipher_ = c; return *this; } -- cgit v1.2.3