sbuild
1.6.4
Main Page
Related Pages
Namespaces
Classes
Files
File List
sbuild
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
39
class
auth_pam_message
40
{
41
public
:
43
enum
message_type
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
61
auth_pam_message
(
message_type
type
,
62
std::string
const
&
message
);
63
65
virtual
~auth_pam_message
();
66
68
message_type
type
;
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
*/
Generated on Sun Dec 9 2012 22:47:28 for sbuild by
1.8.1.2