sbuild
1.7.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
lib
sbuild
auth
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
41
class
pam_message
42
{
43
public
:
45
enum
message_type
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
63
pam_message
(
message_type
type
,
64
const
std::string&
message
);
65
67
virtual
~pam_message
();
68
70
message_type
type
;
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
*/
Generated on Wed Oct 2 2013 10:21:07 for sbuild by
1.8.4