summaryrefslogtreecommitdiff
path: root/cryptlib.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-31 08:23:53 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-31 08:23:53 -0400
commitd935fd80ba0aaf3e40f7023f7ec02cb32e27e688 (patch)
tree14428e37232bb88dd8c7226c8250fc73943c472c /cryptlib.cpp
parent8796c9e684e2e4056821e4485dc1180d82767181 (diff)
downloadcryptopp-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.cpp5
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
{