19 #ifndef SBUILD_AUTH_PAM_CONV_H 20 #define SBUILD_AUTH_PAM_CONV_H 22 #include <sbuild/sbuild-auth-pam-message.h> 23 #include <sbuild/sbuild-error.h> 28 #include <security/pam_appl.h> 67 typedef std::shared_ptr<auth_pam_conv>
ptr;
virtual void set_auth(auth_ptr auth)=0
Set the auth object.
virtual void set_warning_timeout(time_t timeout)=0
Set the time at which the user will be warned.
Debian source builder components.
Definition: sbuild-auth-null.h:24
Authentication handler.
Definition: sbuild-auth.h:69
Authentication conversation handler interface.
Definition: sbuild-auth-pam-conv.h:57
virtual time_t get_warning_timeout()=0
Get the time at which the user will be warned.
virtual void set_fatal_timeout(time_t timeout)=0
Set the time at which the conversation will be terminated with an error.
virtual auth_ptr get_auth()=0
Get the auth object.
auth_pam_conv()
The constructor.
Definition: sbuild-auth-pam-conv.cc:25
std::shared_ptr< auth_pam_conv > ptr
A shared_ptr to an auth_pam_conv object.
Definition: sbuild-auth-pam-conv.h:67
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
virtual time_t get_fatal_timeout()=0
Get the time at which the conversation will be terminated with an error.
virtual ~auth_pam_conv()
The destructor.
Definition: sbuild-auth-pam-conv.cc:29
std::shared_ptr< auth_pam > auth_ptr
A shared pointer to an auth_pam object.
Definition: sbuild-auth-pam-conv.h:63
virtual void conversation(message_list &messages)=0
Hold a conversation with the user.