19 #ifndef SBUILD_AUTH_PAM_CONV_TTY_H 20 #define SBUILD_AUTH_PAM_CONV_TTY_H 22 #include <sbuild/sbuild-auth-pam-conv.h> 23 #include <sbuild/sbuild-auth.h> 24 #include <sbuild/sbuild-custom-error.h> 26 #include <security/pam_appl.h> 27 #include <security/pam_misc.h> Timed out.
Definition: sbuild-auth-pam-conv-tty.h:52
Debian source builder components.
Definition: sbuild-auth-null.h:24
Authentication conversation handler for terminal devices.
Definition: sbuild-auth-pam-conv-tty.h:45
time_t start_time
The time the current delay was obtained at.
Definition: sbuild-auth-pam-conv-tty.h:144
time_t fatal_timeout
The time to end at.
Definition: sbuild-auth-pam-conv-tty.h:142
error_code
Error codes.
Definition: sbuild-auth-pam-conv-tty.h:49
Authentication handler.
Definition: sbuild-auth.h:69
weak_auth_ptr auth
The auth object.
Definition: sbuild-auth-pam-conv-tty.h:138
std::string read_string(std::string message, bool echo)
Read user input from standard input.
Definition: sbuild-auth-pam-conv-tty.cc:204
virtual time_t get_warning_timeout()
Get the time at which the user will be warned.
Definition: sbuild-auth-pam-conv-tty.cc:153
Authentication conversation handler interface.
Definition: sbuild-auth-pam-conv.h:57
virtual void set_warning_timeout(time_t timeout)
Set the time at which the user will be warned.
Definition: sbuild-auth-pam-conv-tty.cc:159
virtual void set_fatal_timeout(time_t timeout)
Set the time at which the conversation will be terminated with an error.
Definition: sbuild-auth-pam-conv-tty.cc:171
Failed to get terminal settings.
Definition: sbuild-auth-pam-conv-tty.h:54
time_t warning_timeout
The time to warn at.
Definition: sbuild-auth-pam-conv-tty.h:140
Time is running out...
Definition: sbuild-auth-pam-conv-tty.h:53
virtual time_t get_fatal_timeout()
Get the time at which the conversation will be terminated with an error.
Definition: sbuild-auth-pam-conv-tty.cc:165
virtual void conversation(auth_pam_conv::message_list &messages)
Hold a conversation with the user.
Definition: sbuild-auth-pam-conv-tty.cc:298
Custom error.
Definition: sbuild-custom-error.h:32
static ptr create(auth_ptr auth)
Create an auth_pam_conv_tty object.
Definition: sbuild-auth-pam-conv-tty.cc:135
auth_pam_conv_tty(auth_ptr auth)
The constructor.
Definition: sbuild-auth-pam-conv-tty.cc:122
std::shared_ptr< auth_pam_conv > ptr
A shared_ptr to an auth_pam_conv object.
Definition: sbuild-auth-pam-conv.h:67
No controlling terminal.
Definition: sbuild-auth-pam-conv-tty.h:51
std::weak_ptr< auth_pam > weak_auth_ptr
A weak pointer to an auth_pam object.
Definition: sbuild-auth-pam-conv.h:65
std::vector< auth_pam_message > message_list
A list of messages.
Definition: sbuild-auth-pam-conv.h:61
custom_error< error_code > error
Exception type.
Definition: sbuild-auth-pam-conv-tty.h:59
std::shared_ptr< auth_pam > auth_ptr
A shared pointer to an auth_pam object.
Definition: sbuild-auth-pam-conv.h:63
Unsupported conversation type.
Definition: sbuild-auth-pam-conv-tty.h:55
int get_delay()
Get the time delay before the next SIGALRM signal.
Definition: sbuild-auth-pam-conv-tty.cc:177
virtual ~auth_pam_conv_tty()
The destructor.
Definition: sbuild-auth-pam-conv-tty.cc:130
virtual auth_ptr get_auth()
Get the auth object.
Definition: sbuild-auth-pam-conv-tty.cc:141
virtual void set_auth(auth_ptr auth)
Set the auth object.
Definition: sbuild-auth-pam-conv-tty.cc:147