Implement an mlock()'d string class for storing passphrases
[novacoin.git] / src / util.h
index 4c96648..1ef0e6f 100644 (file)
@@ -292,6 +292,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;
+