diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-05-01 15:32:52 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-05-01 15:32:52 -0500 |
commit | c9b800a787cf2eba8803ddd03020e36d21c278b7 (patch) | |
tree | 1cedd9357896d95899a554f5ab3259d96275df92 /contrib/epee | |
parent | Merge pull request #6444 (diff) | |
parent | trezor: adapt to new passphrase mechanism (diff) | |
download | monero-c9b800a787cf2eba8803ddd03020e36d21c278b7.tar.xz |
Merge pull request #6446
e509ede trezor: adapt to new passphrase mechanism (ph4r05)
Diffstat (limited to 'contrib/epee')
-rw-r--r-- | contrib/epee/include/net/http_base.h | 6 | ||||
-rw-r--r-- | contrib/epee/include/net/http_client.h | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/contrib/epee/include/net/http_base.h b/contrib/epee/include/net/http_base.h index a66fb7c23..bf6589c92 100644 --- a/contrib/epee/include/net/http_base.h +++ b/contrib/epee/include/net/http_base.h @@ -33,6 +33,7 @@ #include <string> #include <utility> +#include "memwipe.h" #include "string_tools.h" #undef MONERO_DEFAULT_LOG_CATEGORY @@ -200,6 +201,11 @@ namespace net_utils this->~http_response_info(); new(this) http_response_info(); } + + void wipe() + { + memwipe(&m_body[0], m_body.size()); + } }; } } diff --git a/contrib/epee/include/net/http_client.h b/contrib/epee/include/net/http_client.h index d329b8cf2..86df48f65 100644 --- a/contrib/epee/include/net/http_client.h +++ b/contrib/epee/include/net/http_client.h @@ -330,6 +330,11 @@ namespace net_utils return m_net_client.get_bytes_received(); } //--------------------------------------------------------------------------- + void wipe_response() + { + m_response_info.wipe(); + } + //--------------------------------------------------------------------------- private: //--------------------------------------------------------------------------- inline bool handle_reciev(std::chrono::milliseconds timeout) |