pam_pkcs11
0.6.12
src
pam_pkcs11
pam_config.h
Go to the documentation of this file.
1
/*
2
* PKCS #11 PAM Login Module
3
* Copyright (C) 2003 Mario Strasser <mast@gmx.net>,
4
* config mgmt copyright (c) 2005 Juan Antonio Martinez <jonsito@teleline.es>
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* $Id$
17
*/
18
19
/*
20
* configuration related functions
21
*/
22
#ifndef _PAM_CONFIG_H_
23
#define _PAM_CONFIG_H_
24
25
#include "
../scconf/scconf.h
"
26
#include "
../common/cert_vfy.h
"
27
28
struct
configuration_st
{
29
const
char
*
config_file
;
30
scconf_context
*
ctx
;
31
int
debug
;
32
int
nullok
;
33
int
try_first_pass
;
34
int
use_first_pass
;
35
int
use_authok
;
36
int
card_only
;
37
int
wait_for_card
;
38
const
char
*
pkcs11_module
;
39
const
char
*
pkcs11_modulepath
;
40
const
char
**
screen_savers
;
41
const
char
*
slot_description
;
42
int
slot_num
;
43
int
support_threads
;
44
cert_policy
policy
;
45
const
char
*
token_type
;
46
const
char
*
username
;
/* provided user name */
47
int
quiet
;
48
int
err_display_time
;
49
};
50
51
struct
configuration_st
*
pk_configure
(
int
argc,
const
char
**argv );
52
53
#endif
cert_policy
struct cert_policy_st cert_policy
Definition
cert_st.h:26
cert_vfy.h
Several routines to:
pk_configure
struct configuration_st * pk_configure(int argc, const char **argv)
scconf.h
configuration_st
Definition
pam_config.h:28
configuration_st::try_first_pass
int try_first_pass
Definition
pam_config.h:33
configuration_st::err_display_time
int err_display_time
Definition
pam_config.h:48
configuration_st::wait_for_card
int wait_for_card
Definition
pam_config.h:37
configuration_st::slot_num
int slot_num
Definition
pam_config.h:42
configuration_st::token_type
const char * token_type
Definition
pam_config.h:45
configuration_st::pkcs11_modulepath
const char * pkcs11_modulepath
Definition
pam_config.h:39
configuration_st::nullok
int nullok
Definition
pam_config.h:32
configuration_st::screen_savers
const char ** screen_savers
Definition
pam_config.h:40
configuration_st::quiet
int quiet
Definition
pam_config.h:47
configuration_st::support_threads
int support_threads
Definition
pam_config.h:43
configuration_st::policy
cert_policy policy
Definition
pam_config.h:44
configuration_st::slot_description
const char * slot_description
Definition
pam_config.h:41
configuration_st::username
const char * username
Definition
pam_config.h:46
configuration_st::debug
int debug
Definition
pam_config.h:31
configuration_st::pkcs11_module
const char * pkcs11_module
Definition
pam_config.h:38
configuration_st::card_only
int card_only
Definition
pam_config.h:36
configuration_st::use_first_pass
int use_first_pass
Definition
pam_config.h:34
configuration_st::config_file
const char * config_file
Definition
pam_config.h:29
configuration_st::ctx
scconf_context * ctx
Definition
pam_config.h:30
configuration_st::use_authok
int use_authok
Definition
pam_config.h:35
scconf_context
Definition
scconf.h:83
Generated by
1.13.2