sbuild  1.7.1
pam-message.h
1 /* Copyright © 2005-2013 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  namespace auth
29  {
30 
42  {
43  public:
46  {
48  MESSAGE_PROMPT_NOECHO = PAM_PROMPT_ECHO_OFF,
50  MESSAGE_PROMPT_ECHO = PAM_PROMPT_ECHO_ON,
52  MESSAGE_ERROR = PAM_ERROR_MSG,
54  MESSAGE_INFO = PAM_TEXT_INFO
55  };
56 
64  const std::string& message);
65 
67  virtual ~pam_message ();
68 
72  std::string message;
74  std::string response;
75  };
76 
77  }
78 }
79 
80 #endif /* SBUILD_AUTH_PAM_MESSAGE_H */
81 
82 /*
83  * Local Variables:
84  * mode:C++
85  * End:
86  */