pam_pkcs11
0.6.8
|
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: cert_info.h 358 2008-11-06 14:28:46Z ludovic.rousseau $ 00017 */ 00018 00019 #ifndef __CERT_INFO_H_ 00020 #define __CERT_INFO_H_ 00021 00022 #include "cert_st.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 00045 #define CERT_ISSUER 11 00046 00047 #define CERT_SERIAL 12 00048 00049 #define CERT_KEY_ALG 13 00050 00052 #define CERT_INFO_SIZE 16 00053 00054 #define CERT_INFO_MAX_ENTRIES ( CERT_INFO_SIZE - 1 ) 00055 00056 #ifndef __CERT_INFO_C_ 00057 #define CERTINFO_EXTERN extern 00058 #else 00059 #define CERTINFO_EXTERN 00060 #endif 00061 00068 void add_cert(X509 *cert, X509 ***certs, int *ncerts); 00069 00077 CERTINFO_EXTERN char **cert_info(X509 *x509, int type, ALGORITHM_TYPE algorithm); 00078 00079 #undef CERTINFO_EXTERN 00080 00081 #endif /* __CERT_INFO_H_ */