aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2017-02-17 11:41:45 -0800
committerPieter Wuille <pieter.wuille@gmail.com>2017-02-17 11:42:22 -0800
commit914fad155d9fc76b42b3a0414dd14b5ebc36062f (patch)
treea88e47c6feb771fd23c77ef3cbf2e028e1bdc1d1 /src
parentf87e8f53920adfa80a3f4af9435370dc272c3783 (diff)
Make KEY_SIZE a compile-time constant
Diffstat (limited to 'src')
-rw-r--r--src/httprpc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/httprpc.cpp b/src/httprpc.cpp
index daac7a0f1a..8ac6925acd 100644
--- a/src/httprpc.cpp
+++ b/src/httprpc.cpp
@@ -112,7 +112,7 @@ static bool multiUserAuthorized(std::string strUserPass)
std::string strSalt = vFields[1];
std::string strHash = vFields[2];
- unsigned int KEY_SIZE = 32;
+ static const unsigned int KEY_SIZE = 32;
unsigned char out[KEY_SIZE];
CHMAC_SHA256(reinterpret_cast<const unsigned char*>(strSalt.c_str()), strSalt.size()).Write(reinterpret_cast<const unsigned char*>(strPass.c_str()), strPass.size()).Finalize(out);