mirror of
https://github.com/monero-project/monero.git
synced 2025-08-05 23:24:20 -04:00
new wipeable_string class to replace std::string passphrases
This commit is contained in:
parent
7a2a574118
commit
3dffe71b72
15 changed files with 293 additions and 68 deletions
|
@ -206,7 +206,8 @@ namespace tools
|
|||
}
|
||||
std::fputs(http_login->username.c_str(), rpc_login_file.handle());
|
||||
std::fputc(':', rpc_login_file.handle());
|
||||
std::fputs(http_login->password.c_str(), rpc_login_file.handle());
|
||||
const epee::wipeable_string password = http_login->password;
|
||||
std::fwrite(password.data(), 1, password.size(), rpc_login_file.handle());
|
||||
std::fflush(rpc_login_file.handle());
|
||||
if (std::ferror(rpc_login_file.handle()))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue