pam_pkcs11  0.6.8
pam_config.h
Go to the documentation of this file.
00001 /*
00002  * PKCS #11 PAM Login Module
00003  * Copyright (C) 2003 Mario Strasser <mast@gmx.net>,
00004  * config mgmt copyright (c) 2005 Juan Antonio Martinez <jonsito@teleline.es>
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * $Id: pam_config.h 491 2011-03-22 08:30:44Z ludovic.rousseau $
00017  */
00018 
00019 /*
00020 * configuration related functions
00021 */
00022 #ifndef _PAM_CONFIG_H_
00023 #define _PAM_CONFIG_H_
00024 
00025 #include "../scconf/scconf.h"
00026 #include "../common/cert_vfy.h"
00027 
00028 struct configuration_st {
00029         const char *config_file;
00030         scconf_context *ctx;
00031         int debug;
00032         int nullok;
00033         int try_first_pass;
00034         int use_first_pass;
00035         int use_authok;
00036         int card_only;
00037         int wait_for_card;
00038         const char *pkcs11_module;
00039         const char *pkcs11_modulepath;
00040         const char **screen_savers;
00041         const char *slot_description;
00042         int slot_num;
00043         int support_threads;
00044         cert_policy policy;
00045         const char *token_type;
00046         const char *username; /* provided user name */
00047         int quiet;
00048         int err_display_time;
00049 };
00050 
00051 struct configuration_st *pk_configure( int argc, const char **argv );
00052 
00053 #endif