pam_pkcs11  0.6.11
cert_info.h
Go to the documentation of this file.
1 /*
2  * PKCS #11 PAM Login Module
3  * Copyright (C) 2003-2004 Mario Strasser <mast@gmx.net>
4  * Copyright (C) 2005 Juan Antonio Martinez <jonsito@teleline.es>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * $Id$
17  */
18 
19 #ifndef __CERT_INFO_H_
20 #define __CERT_INFO_H_
21 
22 #include "cert_st.h"
23 
25 #define CERT_CN 1
26 
27 #define CERT_SUBJECT 2
28 
29 #define CERT_KPN 3
30 
31 #define CERT_EMAIL 4
32 
33 #define CERT_UPN 5
34 
35 #define CERT_UID 6
36 
37 #define CERT_PUK 7
38 
39 #define CERT_DIGEST 8
40 
41 #define CERT_SSHPUK 9
42 
43 #define CERT_PEM 10
44 
45 #define CERT_ISSUER 11
46 
47 #define CERT_SERIAL 12
48 
49 #define CERT_KEY_ALG 13
50 
52 #define CERT_INFO_SIZE 16
53 
54 #define CERT_INFO_MAX_ENTRIES ( CERT_INFO_SIZE - 1 )
55 
56 #ifndef __CERT_INFO_C_
57 #define CERTINFO_EXTERN extern
58 #else
59 #define CERTINFO_EXTERN
60 #endif
61 
68 void add_cert(X509 *cert, X509 ***certs, int *ncerts);
69 
77 CERTINFO_EXTERN char **cert_info(X509 *x509, int type, ALGORITHM_TYPE algorithm);
78 
79 #undef CERTINFO_EXTERN
80 
81 #endif /* __CERT_INFO_H_ */
security library failure security security library has experienced an input length error security security Improperly formatted time string Peer s certificate has an invalid signature Peer s Certificate has been revoked Peer s public key is invalid New password entered incorrectly Please try again security security Peer s certificate issuer has been marked as not trusted by the user Certificate already exists in your database Error adding certificate to database The private key for this certificate cannot be found in key database This certificate is not valid The certificate issuer s certificate has expired Check your system date and time The CRL for the certificate s issuer has an invalid signature Certificate extension value is invalid Issuer certificate is invalid Certificate usages field is invalid The key does not support the requested operation New CRL is not later than the current one Not Cannot or matching certificate and private key not found Signature verification too many signers or improper or corrupted data Cannot Fortezza card has not been properly initialized Please remove it and return it to your issuer No Fortezza card selected Personality not found Invalid Pin No KRL for this site s certificate has been found The KRL for this site s certificate has an invalid signature New KRL has an invalid format security The security card or token does not needs to be or has been removed No slot or token was selected A key with the same nickname already exists error while creating baggage object Couldn t delete the privilege Required algorithm is not allowed Error attempting to import certificates Unable to import Invalid MAC Incorrect password or corrupt file Unable to import Only password integrity and privacy modes supported Unable to import Encryption algorithm not supported Unable to import Incorrect privacy password The user pressed cancel Message not sent Certificate type not approved for application Unable to import Error attempting to import private key Unable to export Unable to locate certificate or key by nickname Unable to export Unable to write the export file Unable to export Key database corrupt or deleted Password entered is invalid Please pick a different one Certificate nickname already in use A sensitive key cannot be moved to the slot where it is needed Invalid module path filename Unable to delete module New CKL has different issuer than current CKL Delete current CKL The key revocation list for this certificate is not yet valid The requested certificate could not be found The location for the certificate status server has invalid format The OCSP server returned unexpected invalid HTTP data The OCSP server experienced an internal error The OCSP server requires a signature on this request The OCSP server returned an unrecognizable status You must enable OCSP before performing this operation The response from the OCSP server was corrupted or improperly formed The OCSP response is not yet The OCSP response contains out of date information The CMS or PKCS Could not decode ASN data Specified template was invalid You are attempting to import a cert with the same issuer serial as an existing cert
Definition: SECerrs.h:462
#define CERTINFO_EXTERN
Definition: cert_info.h:57
const char * ALGORITHM_TYPE
Definition: cert_st.h:38
CERTINFO_EXTERN char ** cert_info(X509 *x509, int type, ALGORITHM_TYPE algorithm)
Request info on certificate.
void add_cert(X509 *cert, X509 ***certs, int *ncerts)
Generate and compose a certificate chain.