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

cert_info.h

Go to the documentation of this file.
00001 /*
00002  * PKCS #11 PAM Login Module
00003  * Copyright (C) 2003-2004 Mario Strasser <mast@gmx.net>
00004  * 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$
00017  */
00018 
00019 #ifndef __CERT_INFO_H_
00020 #define __CERT_INFO_H_
00021 
00022 #include <openssl/x509.h>
00023 
00025 #define CERT_CN         1       
00026 
00027 #define CERT_SUBJECT    2
00028 
00029 #define CERT_KPN        3       
00030 
00031 #define CERT_EMAIL      4       
00032 
00033 #define CERT_UPN        5       
00034 
00035 #define CERT_UID        6       
00036 
00037 #define CERT_PUK        7       
00038 
00039 #define CERT_DIGEST     8       
00040 
00041 #define CERT_SSHPUK     9       
00042 
00043 #define CERT_PEM        10      
00044 
00046 #define CERT_INFO_SIZE 16
00047 
00048 #define CERT_INFO_MAX_ENTRIES ( CERT_INFO_SIZE - 1 ) 
00049 
00050 #ifndef __CERT_INFO_C_
00051 #define CERTINFO_EXTERN extern
00052 #else
00053 #define CERTINFO_EXTERN
00054 #endif
00055 
00062 void add_cert(X509 *cert, X509 ***certs, int *ncerts);
00063 
00071 CERTINFO_EXTERN char **cert_info(X509 *x509, int type, const char *algorithm);
00072 
00073 #undef CERTINFO_EXTERN
00074 
00075 #endif /* __CERT_INFO_H_ */

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