summaryrefslogtreecommitdiff
path: root/src/mongo/crypto
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-06-10 18:08:48 -0400
committerAndrew Morrow <acm@mongodb.com>2015-06-10 22:37:49 -0400
commitd7d1fdb75966c684e9a42150e6e9b69c4a10ee08 (patch)
treed28b0767cbd8c1a09535f1676152e7ac57e829ce /src/mongo/crypto
parenta9b6612f5322f916298c19a6728817a1034c6aab (diff)
downloadmongo-d7d1fdb75966c684e9a42150e6e9b69c4a10ee08.tar.gz
SERVER-17308 Replace boost::scoped_ptr<T> with std::unique_ptr<T>
Diffstat (limited to 'src/mongo/crypto')
-rw-r--r--src/mongo/crypto/mechanism_scram.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/crypto/mechanism_scram.cpp b/src/mongo/crypto/mechanism_scram.cpp
index 3bca59f4664..39695ca4bac 100644
--- a/src/mongo/crypto/mechanism_scram.cpp
+++ b/src/mongo/crypto/mechanism_scram.cpp
@@ -30,7 +30,6 @@
#include "mongo/crypto/mechanism_scram.h"
-#include <boost/scoped_ptr.hpp>
#include <vector>
#include "mongo/crypto/crypto.h"
@@ -40,7 +39,7 @@
namespace mongo {
namespace scram {
- using boost::scoped_ptr;
+ using std::unique_ptr;
// Compute the SCRAM step Hi() as defined in RFC5802
static void HMACIteration(const unsigned char input[],
@@ -149,7 +148,7 @@ namespace scram {
// Generate salt
uint64_t userSalt[saltLenQWords];
- scoped_ptr<SecureRandom> sr(SecureRandom::create());
+ unique_ptr<SecureRandom> sr(SecureRandom::create());
userSalt[0] = sr->nextInt64();
userSalt[1] = sr->nextInt64();