Main Page | Data Structures | Directories | File List | Data Fields | Globals

cert_vfy.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  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * $Id$
00016  */
00017 
00027 #ifndef __CERT_VFY_H_
00028 #define __CERT_VFY_H_
00029 
00030 #include <openssl/x509.h>
00031 
00032 typedef enum { 
00034         CRLP_NONE, 
00036         CRLP_ONLINE, 
00038         CRLP_OFFLINE,
00040         CRLP_AUTO 
00041         } crl_policy_t;
00042 
00043 typedef struct cert_policy_st {
00044         int ca_policy;
00045         int crl_policy;
00046         int signature_policy;
00047         char *ca_dir;
00048         char *crl_dir;
00049 } cert_policy;
00050 
00051 #ifndef __CERT_VFY_C
00052 #define CERTVFY_EXTERN extern
00053 #else
00054 #define CERTVFY_EXTERN
00055 #endif
00056 
00065 CERTVFY_EXTERN int verify_certificate(X509 * x509, cert_policy *policy);
00066 
00076 CERTVFY_EXTERN int verify_signature(X509 * x509, unsigned char *data, int data_length, unsigned char *signature, int signature_length);
00077 
00078 #undef CERTVFY_EXTERN
00079 
00080 #endif /* __CERT_VFY_H_ */

Generated on Thu Mar 16 22:52:55 2006 for pam_pkcs11 by  doxygen 1.4.2