Implement an mlock()'d string class for storing passphrases
[novacoin.git] / src / util.h
index 1789237..bcb9027 100644 (file)
@@ -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;
+