summaryrefslogtreecommitdiff
path: root/src/mongo/crypto
diff options
context:
space:
mode:
authorTyler Brock <tyler.brock@gmail.com>2015-02-06 14:29:45 -0500
committerTyler Brock <tyler.brock@gmail.com>2015-02-06 16:37:35 -0500
commitaa9980b8c02de71c6918fba4aba9f22dd10eed01 (patch)
tree3ade9078069c7e1317a8b31c2e1fc427977d7abe /src/mongo/crypto
parent3a7675bb6fa110a10be307db3201bfb348cf41cf (diff)
downloadmongo-aa9980b8c02de71c6918fba4aba9f22dd10eed01.tar.gz
SERVER-16940 Change pass-by-const-ref of StringData to pass-by-value
Diffstat (limited to 'src/mongo/crypto')
-rw-r--r--src/mongo/crypto/mechanism_scram.cpp2
-rw-r--r--src/mongo/crypto/mechanism_scram.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/crypto/mechanism_scram.cpp b/src/mongo/crypto/mechanism_scram.cpp
index 34f7c870a93..3bca59f4664 100644
--- a/src/mongo/crypto/mechanism_scram.cpp
+++ b/src/mongo/crypto/mechanism_scram.cpp
@@ -89,7 +89,7 @@ namespace scram {
}
// Iterate the hash function to generate SaltedPassword
- void generateSaltedPassword(const StringData& hashedPassword,
+ void generateSaltedPassword(StringData hashedPassword,
const unsigned char* salt,
const int saltLen,
const int iterationCount,
diff --git a/src/mongo/crypto/mechanism_scram.h b/src/mongo/crypto/mechanism_scram.h
index 19d7e2b1c8b..5a2dc073a27 100644
--- a/src/mongo/crypto/mechanism_scram.h
+++ b/src/mongo/crypto/mechanism_scram.h
@@ -48,7 +48,7 @@ namespace scram {
/*
* Computes the SaltedPassword from password, salt and iterationCount.
*/
- void generateSaltedPassword(const StringData& hashedPassword,
+ void generateSaltedPassword(StringData hashedPassword,
const unsigned char* salt,
const int saltLen,
const int iterationCount,