sbuild
1.6.10
|
Authentication messages. More...
#include <sbuild-auth-pam-message.h>
Public Types | |
enum | message_type { MESSAGE_PROMPT_NOECHO = PAM_PROMPT_ECHO_OFF, MESSAGE_PROMPT_ECHO = PAM_PROMPT_ECHO_ON, MESSAGE_ERROR = PAM_ERROR_MSG, MESSAGE_INFO = PAM_TEXT_INFO } |
Message type. More... | |
Public Member Functions | |
auth_pam_message (message_type type, std::string const &message) | |
The constructor. More... | |
virtual | ~auth_pam_message () |
The destructor. | |
Public Attributes | |
message_type | type |
The type of message. | |
std::string | message |
The message to display. | |
std::string | response |
The user's response (if any). | |
Authentication messages.
When auth_pam needs to interact with the user, it does this by sending a list of auth_pam_message objects to an auth_pam_conv conversation object. These messages tell the conversation object how to display the message to the user, and if necessary, whether or not to ask the user for some input. They also store the user's input, if required.
auth_pam_message::auth_pam_message | ( | message_type | type, |
std::string const & | message | ||
) |
The constructor.
type | the type of message. |
message | the message to display. |