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 270 2007-05-21 08:13:00Z 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 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 char *pkcs11_module; 00039 char *pkcs11_modulepath; 00040 char **screen_savers; 00041 int slot_num; 00042 int support_threads; 00043 cert_policy policy; 00044 char *username; /* provided user name */ 00045 }; 00046 00047 struct configuration_st *pk_configure( int argc, const char **argv ); 00048 00049 #endif