1 | /***************************************************************** |
2 | * |
3 | *· kcheckpass |
4 | * |
5 | *· Simple password checker. Just invoke and send it |
6 | *· the password on stdin. |
7 | * |
8 | *· If the password was accepted, the program exits with 0; |
9 | *· if it was rejected, it exits with 1. Any other exit |
10 | *· code signals an error. |
11 | * |
12 | * |
13 | * This program is free software; you can redistribute it and/or |
14 | * modify it under the terms of the GNU General Public |
15 | * License as published by the Free Software Foundation; either |
16 | * version 2 of the License, or (at your option) any later version. |
17 | * |
18 | * This program is distributed in the hope that it will be useful, |
19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
21 | * General Public License for more details. |
22 | * |
23 | * You should have received a copy of the GNU General Public |
24 | * License along with this program; if not, write to the Free |
25 | * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
26 | * |
27 | *· Copyright (C) 1998, Caldera, Inc. |
28 | *· Released under the GNU General Public License |
29 | * |
30 | *· Olaf Kirch <okir@caldera.de> General Framework and PAM support |
31 | *· Christian Esken <esken@kde.org> Shadow and /etc/passwd support |
32 | *· Oswald Buddenhagen <ossi@kde.org> Binary server mode |
33 | * |
34 | * Other parts were taken from kscreensaver's passwd.cpp |
35 | *****************************************************************/ |
36 | |
37 | #ifndef KCHECKPASS_ENUMS_H |
38 | #define KCHECKPASS_ENUMS_H |
39 | |
40 | #ifdef __cplusplus |
41 | extern "C" { |
42 | #endif |
43 | |
44 | /* these must match kcheckpass' exit codes */ |
45 | typedef enum { |
46 | AuthOk = 0, |
47 | AuthBad = 1, |
48 | AuthError = 2, |
49 | AuthAbort = 3 |
50 | } AuthReturn; |
51 | |
52 | typedef enum { |
53 | ConvGetBinary, |
54 | ConvGetNormal, |
55 | ConvGetHidden, |
56 | ConvPutInfo, |
57 | ConvPutError |
58 | } ConvRequest; |
59 | |
60 | /* these must match the defs in kgreeterplugin.h */ |
61 | typedef enum { |
62 | IsUser = 1, /* unused in kcheckpass */ |
63 | IsPassword = 2 |
64 | } DataTag; |
65 | |
66 | #ifdef __cplusplus |
67 | } |
68 | #endif |
69 | |
70 | #endif /* KCHECKPASS_ENUMS_H */ |
71 | |