diff options
author | Jeffrey Walton <noloader@gmail.com> | 2015-07-31 08:23:53 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2015-07-31 08:23:53 -0400 |
commit | d935fd80ba0aaf3e40f7023f7ec02cb32e27e688 (patch) | |
tree | 14428e37232bb88dd8c7226c8250fc73943c472c /cryptlib.cpp | |
parent | 8796c9e684e2e4056821e4485dc1180d82767181 (diff) | |
download | cryptopp-git-d935fd80ba0aaf3e40f7023f7ec02cb32e27e688.tar.gz |
Partial cut-over to static local strings for DefaultChannel() and AadChannel(). Cout-over DEFAULT_CHANNEL and AAD_CHANNEL to use them behind the scenes
Diffstat (limited to 'cryptlib.cpp')
-rw-r--r-- | cryptlib.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cryptlib.cpp b/cryptlib.cpp index 43df08b2..2ded98c2 100644 --- a/cryptlib.cpp +++ b/cryptlib.cpp @@ -32,9 +32,8 @@ CRYPTOPP_COMPILE_ASSERT(sizeof(word64) == 8); CRYPTOPP_COMPILE_ASSERT(sizeof(dword) == 2*sizeof(word)); #endif -const std::string DEFAULT_CHANNEL; -const std::string AAD_CHANNEL = "AAD"; -const std::string &BufferedTransformation::NULL_CHANNEL = DEFAULT_CHANNEL; +const std::string DEFAULT_CHANNEL = DefaultChannel(); +const std::string AAD_CHANNEL = AadChannel(); class NullNameValuePairs : public NameValuePairs { |