diff options
author | Sara Golemon <sara.golemon@mongodb.com> | 2019-09-25 18:31:05 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-09-25 18:31:05 +0000 |
commit | c9b8e58587f9ca79bf3b00b8f79bfad691e5768f (patch) | |
tree | e3a4cc75433823b6a0fc5499c2cf822281fb942d /src/mongo/crypto/hash_block.h | |
parent | 39daf64f53e984c92d0af615593975a723797f97 (diff) | |
download | mongo-c9b8e58587f9ca79bf3b00b8f79bfad691e5768f.tar.gz |
SERVER-43610 Change HashTraits signature to allow storing into a specifed buffer
Diffstat (limited to 'src/mongo/crypto/hash_block.h')
-rw-r--r-- | src/mongo/crypto/hash_block.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/crypto/hash_block.h b/src/mongo/crypto/hash_block.h index 4d408e9d5e7..01726fdb6f4 100644 --- a/src/mongo/crypto/hash_block.h +++ b/src/mongo/crypto/hash_block.h @@ -81,7 +81,9 @@ public: * Computes a hash of 'input' from multiple contigous buffers. */ static HashBlock computeHash(std::initializer_list<ConstDataRange> input) { - return HashBlock{Traits::computeHash(input)}; + HashBlock ret; + Traits::computeHash(input, &(ret._hash)); + return ret; } /** |