sbuild  1.6.10
sbuild-auth-pam-message.h
1 /* Copyright © 2005-2007 Roger Leigh <rleigh@debian.org>
2  *
3  * schroot is free software: you can redistribute it and/or modify it
4  * under the terms of the GNU General Public License as published by
5  * the Free Software Foundation, either version 3 of the License, or
6  * (at your option) any later version.
7  *
8  * schroot is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see
15  * <http://www.gnu.org/licenses/>.
16  *
17  *********************************************************************/
18 
19 #ifndef SBUILD_AUTH_PAM_MESSAGE_H
20 #define SBUILD_AUTH_PAM_MESSAGE_H
21 
22 #include <string>
23 
24 #include <security/pam_appl.h>
25 
26 namespace sbuild
27 {
28 
40  {
41  public:
44  {
46  MESSAGE_PROMPT_NOECHO = PAM_PROMPT_ECHO_OFF,
48  MESSAGE_PROMPT_ECHO = PAM_PROMPT_ECHO_ON,
50  MESSAGE_ERROR = PAM_ERROR_MSG,
52  MESSAGE_INFO = PAM_TEXT_INFO
53  };
54 
62  std::string const& message);
63 
65  virtual ~auth_pam_message ();
66 
70  std::string message;
72  std::string response;
73  };
74 
75 }
76 
77 #endif /* SBUILD_AUTH_PAM_MESSAGE_H */
78 
79 /*
80  * Local Variables:
81  * mode:C++
82  * End:
83  */
Debian source builder components.
Definition: sbuild-auth-null.h:24
message_type
Message type.
Definition: sbuild-auth-pam-message.h:43
Display an error message.
Definition: sbuild-auth-pam-message.h:50
Display a prompt, echoing user input.
Definition: sbuild-auth-pam-message.h:48
Display a prompt, with no echoing of user input.
Definition: sbuild-auth-pam-message.h:46
Display an informational message.
Definition: sbuild-auth-pam-message.h:52
virtual ~auth_pam_message()
The destructor.
Definition: sbuild-auth-pam-message.cc:33
std::string response
The user&#39;s response (if any).
Definition: sbuild-auth-pam-message.h:72
auth_pam_message(message_type type, std::string const &message)
The constructor.
Definition: sbuild-auth-pam-message.cc:25
std::string message
The message to display.
Definition: sbuild-auth-pam-message.h:70
Authentication messages.
Definition: sbuild-auth-pam-message.h:39
message_type type
The type of message.
Definition: sbuild-auth-pam-message.h:68