|
libsshpp v0.1.7
Modern C++17 wrapper for libssh
|
#include <types.hpp>
Public Types | |
| using | storage_type = std::basic_string< char, std::char_traits< char >, detail::ZeroingAllocator< char > > |
Public Member Functions | |
| SecureString ()=default | |
| SecureString (const char *s) | |
| SecureString (std::string_view sv) | |
| SecureString (std::string s) | |
| const char * | c_str () const noexcept |
| std::size_t | size () const noexcept |
| bool | empty () const noexcept |
| std::string_view | view () const noexcept |
A string for secrets (passwords, passphrases) that scrubs its buffer on deallocation. Deliberately has no operator<< so it cannot be logged by accident.
| using sshpp::SecureString::storage_type = std::basic_string<char, std::char_traits<char>, detail::ZeroingAllocator<char> > |
|
default |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |