blob: ef34cf336354ce8a492e568c154026ae8652af4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#ifndef foocommonhfoo
#define foocommonhfoo
/***
This file is part of pam_dotfile.
pam_dotfile is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
pam_dotfile is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with pam_dotfile; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
***/
#include <security/pam_modules.h>
#include <security/_pam_macros.h>
typedef struct context {
int opt_debug;
int opt_use_first_pass;
int opt_try_first_pass;
int opt_rootok;
int opt_nullok;
int opt_fork; // 0: auto; 1: fork; -1: nofork;
int opt_no_warn;
int opt_stat_only_home;
#ifdef COMPAT05
int opt_nocompat05;
#endif
const char *service;
} context_t;
int user_authentication(context_t *c, const char *username, const char *password);
#endif
|