aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/hex.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-09-18 17:32:11 +0200
committerRiccardo Spagni <ric@spagni.net>2018-09-18 17:32:11 +0200
commit580497d5f93df0c6f1358e087e8c97079fd7dfa0 (patch)
tree911c5ad29c5a8dce201a74f774f8956fff176cc6 /contrib/epee/include/hex.h
parentMerge pull request #4302 (diff)
parentwallet: use wipeable_string in more places where a secret is used (diff)
downloadmonero-580497d5f93df0c6f1358e087e8c97079fd7dfa0.tar.xz
Merge pull request #4306
56b50faa wallet: use wipeable_string in more places where a secret is used (moneromooo-monero) 07ec748c wipeable_string: add hex_to_pod function (moneromooo-monero)
Diffstat (limited to 'contrib/epee/include/hex.h')
-rw-r--r--contrib/epee/include/hex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/epee/include/hex.h b/contrib/epee/include/hex.h
index 02600c320..901c666a9 100644
--- a/contrib/epee/include/hex.h
+++ b/contrib/epee/include/hex.h
@@ -44,6 +44,7 @@ namespace epee
static std::string string(const span<const std::uint8_t> src);
//! \return A epee::wipeable_string containing hex of `src`.
static epee::wipeable_string wipeable_string(const span<const std::uint8_t> src);
+ template<typename T> static epee::wipeable_string wipeable_string(const T &pod) { return wipeable_string(span<const uint8_t>((const uint8_t*)&pod, sizeof(pod))); }
//! \return An array containing hex of `src`.
template<std::size_t N>