19 #ifndef SBUILD_AUTH_PAM_CONV_H
20 #define SBUILD_AUTH_PAM_CONV_H
22 #include <sbuild/auth/pam-message.h>
23 #include <sbuild/error.h>
28 #include <security/pam_appl.h>
69 typedef std::shared_ptr<pam_conv>
ptr;
Authentication conversation handler interface.
Definition: pam-conv.h:59
std::shared_ptr< pam_conv > ptr
A shared_ptr to an pam_conv object.
Definition: pam-conv.h:69
Debian source builder components.
Definition: ctty.cc:31
virtual ~pam_conv()
The destructor.
Definition: pam-conv.cc:32
std::weak_ptr< pam > weak_auth_ptr
A weak pointer to an pam object.
Definition: pam-conv.h:67
virtual time_t get_fatal_timeout()=0
Get the time at which the conversation will be terminated with an error.
std::shared_ptr< pam > auth_ptr
A shared pointer to an pam object.
Definition: pam-conv.h:65
virtual void set_fatal_timeout(time_t timeout)=0
Set the time at which the conversation will be terminated with an error.
virtual void set_auth(auth_ptr auth)=0
Set the auth object.
virtual time_t get_warning_timeout()=0
Get the time at which the user will be warned.
virtual void conversation(message_list &messages)=0
Hold a conversation with the user.
virtual auth_ptr get_auth()=0
Get the auth object.
std::vector< pam_message > message_list
A list of messages.
Definition: pam-conv.h:63
virtual void set_warning_timeout(time_t timeout)=0
Set the time at which the user will be warned.
Authentication handler.
Definition: auth.h:74
pam_conv()
The constructor.
Definition: pam-conv.cc:28