aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/src/http_auth.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-11-25 14:50:15 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-11-27 22:25:57 +0000
commit3dffe71b72c3b5dd1246ed74ee4cd1ad89aaccfa (patch)
tree5559bcf502288a62f34e17902de92fcc2c60f110 /contrib/epee/src/http_auth.cpp
parentutils: initialize easylogging++ in on_startup (diff)
downloadmonero-3dffe71b72c3b5dd1246ed74ee4cd1ad89aaccfa.tar.xz
new wipeable_string class to replace std::string passphrases
Diffstat (limited to 'contrib/epee/src/http_auth.cpp')
-rw-r--r--contrib/epee/src/http_auth.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/epee/src/http_auth.cpp b/contrib/epee/src/http_auth.cpp
index 30e562700..f06f05528 100644
--- a/contrib/epee/src/http_auth.cpp
+++ b/contrib/epee/src/http_auth.cpp
@@ -125,6 +125,14 @@ namespace
{
(*this)(boost::string_ref(arg));
}
+ void operator()(const epee::wipeable_string& arg) const
+ {
+ md5::MD5Update(
+ std::addressof(ctx),
+ reinterpret_cast<const std::uint8_t*>(arg.data()),
+ arg.size()
+ );
+ }
md5::MD5_CTX& ctx;
};