git://git.novaco.in
/
novacoin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Implement an mlock()'d string class for storing passphrases
[novacoin.git]
/
src
/
util.h
diff --git
a/src/util.h
b/src/util.h
index
1789237
..
bcb9027
100644
(file)
--- a/
src/util.h
+++ b/
src/util.h
@@
-286,6
+286,10
@@
public:
+// This is exactly like std::string, but with a custom allocator.
+// (secure_allocator<> is defined in serialize.h)
+typedef std::basic_string<char, std::char_traits<char>, secure_allocator<char> > SecureString;
+