diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-02-17 21:48:30 +0100 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-02-17 21:48:30 +0100 |
commit | 5a8e7fd0e5efe622aff6e5326072df767cea7ee3 (patch) | |
tree | c6726b5307c445d99954c82e1c35f899bf197301 /src/common/password.h | |
parent | Merge pull request #3274 (diff) | |
parent | handle ^D and ^C while password prompting (diff) | |
download | monero-5a8e7fd0e5efe622aff6e5326072df767cea7ee3.tar.xz |
Merge pull request #3249
a4b50a6f handle ^D and ^C while password prompting (Jethro Grassie)
Diffstat (limited to 'src/common/password.h')
-rw-r--r-- | src/common/password.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/password.h b/src/common/password.h index 7c29effe4..61937b93a 100644 --- a/src/common/password.h +++ b/src/common/password.h @@ -31,6 +31,7 @@ #pragma once #include <string> +#include <atomic> #include <boost/optional/optional.hpp> #include "wipeable_string.h" @@ -49,6 +50,7 @@ namespace tools //! \return A password from stdin TTY prompt or `std::cin` pipe. static boost::optional<password_container> prompt(bool verify, const char *mesage = "Password"); + static std::atomic<bool> is_prompting; password_container(const password_container&) = delete; password_container(password_container&& rhs) = default; |