sbuild  1.7.1
Public Types | Public Member Functions | Public Attributes | List of all members
sbuild::auth::pam_message Class Reference

Authentication messages. More...

#include <pam-message.h>

+ Collaboration diagram for sbuild::auth::pam_message:

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

 pam_message (message_type type, const std::string &message)
 The constructor. More...
 
virtual ~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).
 

Detailed Description

Authentication messages.

When pam needs to interact with the user, it does this by sending a list of pam_message objects to an 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.

Member Enumeration Documentation

Message type.

Enumerator
MESSAGE_PROMPT_NOECHO 

Display a prompt, with no echoing of user input.

MESSAGE_PROMPT_ECHO 

Display a prompt, echoing user input.

MESSAGE_ERROR 

Display an error message.

MESSAGE_INFO 

Display an informational message.

Constructor & Destructor Documentation

sbuild::auth::pam_message::pam_message ( message_type  type,
const std::string &  message 
)

The constructor.

Parameters
typethe type of message.
messagethe message to display.

The documentation for this class was generated from the following files: