|
libsshpp v0.1.7
Modern C++17 wrapper for libssh
|
Full keyboard-interactive loop. More...
#include <auth.hpp>
Classes | |
| struct | Challenge |
| struct | Prompt |
Public Types | |
| using | Handler = std::function< Result< std::vector< SecureString > >(const Challenge &)> |
Public Member Functions | |
| KeyboardInteractive (Handler h) | |
| std::string_view | name () const noexcept override |
| Result< AuthStatus > | attempt (detail::SessionCore &) const noexcept override |
| Performs one full attempt. Must not throw. | |
Public Member Functions inherited from sshpp::Authenticator | |
| virtual | ~Authenticator ()=default |
Static Public Member Functions | |
| static KeyboardInteractive | with_password (SecureString password) |
| Answers the first non-echo prompt with the password; the common "PAM password" case. | |
Full keyboard-interactive loop.
| using sshpp::auth::KeyboardInteractive::Handler = std::function<Result<std::vector<SecureString> >(const Challenge&)> |
|
inlineexplicit |
|
static |
Answers the first non-echo prompt with the password; the common "PAM password" case.
|
inlineoverridevirtualnoexcept |
Implements sshpp::Authenticator.
|
overridevirtualnoexcept |
Performs one full attempt. Must not throw.
Implements sshpp::Authenticator.