summaryrefslogtreecommitdiff
path: root/src/mongo/util/md5.hpp
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2013-08-27 17:20:19 -0400
committerSpencer T Brody <spencer@10gen.com>2013-08-29 17:03:18 -0400
commitbfdd9917c2e2dea22a6673d45d10882d1d567362 (patch)
tree152caeb749e0bebee61e3cbff882f77417449572 /src/mongo/util/md5.hpp
parent794646c2028da8cc4ea9db1ffd22eb1f8f2cedde (diff)
downloadmongo-bfdd9917c2e2dea22a6673d45d10882d1d567362.tar.gz
Create place for auth functions in client code and move password hashing there
Diffstat (limited to 'src/mongo/util/md5.hpp')
-rw-r--r--src/mongo/util/md5.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/util/md5.hpp b/src/mongo/util/md5.hpp
index 8974751054f..de785a04202 100644
--- a/src/mongo/util/md5.hpp
+++ b/src/mongo/util/md5.hpp
@@ -17,7 +17,11 @@
#pragma once
-#include "md5.h"
+#include "mongo/util/md5.h"
+
+#include <sstream>
+#include <string>
+#include <string.h>
namespace mongo {
@@ -36,7 +40,7 @@ namespace mongo {
inline std::string digestToString( md5digest digest ){
static const char * letters = "0123456789abcdef";
- stringstream ss;
+ std::stringstream ss;
for ( int i=0; i<16; i++){
unsigned char c = digest[i];
ss << letters[ ( c >> 4 ) & 0xf ] << letters[ c & 0xf ];