aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2017-02-17 11:41:45 -0800
committerWladimir J. van der Laan <laanwj@gmail.com>2017-02-17 21:50:14 +0100
commitf873564231d694b47e6e7e5430f4e0785a036664 (patch)
treee62c23ed3c4e179cbf96a5ff05d3780251c4a79a
parent04396bcc058ec7e2aed4b364f1bf43ebe6bc02d5 (diff)
downloadbitcoin-f873564231d694b47e6e7e5430f4e0785a036664.tar.xz
Make KEY_SIZE a compile-time constant
Github-Pull: #9785 Rebased-From: 914fad155d9fc76b42b3a0414dd14b5ebc36062f
-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);