diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-02-17 21:47:30 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-02-17 21:48:05 +0100 |
| commit | df42bcdbfebefc908dab7780e931d9ae9ead9d89 (patch) | |
| tree | b7c0483ecb1300bd8a4b571376f5b7ba3b5a5368 /src/httprpc.cpp | |
| parent | build: bump version to 0.14.99 (diff) | |
| parent | Move BIP70_MAX_PAYMENTREQUEST_SIZE to header (diff) | |
| download | discoin-df42bcdbfebefc908dab7780e931d9ae9ead9d89.tar.xz discoin-df42bcdbfebefc908dab7780e931d9ae9ead9d89.zip | |
Merge #9785: Avoid variable length arrays
c801c82 Move BIP70_MAX_PAYMENTREQUEST_SIZE to header (Pieter Wuille)
914fad1 Make KEY_SIZE a compile-time constant (Pieter Wuille)
Diffstat (limited to 'src/httprpc.cpp')
| -rw-r--r-- | src/httprpc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/httprpc.cpp b/src/httprpc.cpp index daac7a0f1..8ac6925ac 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); |