pam_pkcs11
0.6.10
|
#include "cert_st.h"
Go to the source code of this file.
Macros | |
#define | CERT_CN 1 |
Certificate Common Name. More... | |
#define | CERT_SUBJECT 2 |
Certificate subject. More... | |
#define | CERT_KPN 3 |
Kerberos principal name. More... | |
#define | CERT_EMAIL 4 |
Certificate e-mail. More... | |
#define | CERT_UPN 5 |
Microsoft's Universal Principal Name. More... | |
#define | CERT_UID 6 |
Certificate Unique Identifier. More... | |
#define | CERT_PUK 7 |
Certificate Public Key (PEM Format) More... | |
#define | CERT_DIGEST 8 |
Certificate Digest. More... | |
#define | CERT_SSHPUK 9 |
Certificate Public key in OpenSSH format. More... | |
#define | CERT_PEM 10 |
Certificate in PEM format. More... | |
#define | CERT_ISSUER 11 |
Certificate issuer. More... | |
#define | CERT_SERIAL 12 |
Certificate serial number. More... | |
#define | CERT_KEY_ALG 13 |
Certificate key algorithm. More... | |
#define | CERT_INFO_SIZE 16 |
Max size of returned certificate content array. More... | |
#define | CERT_INFO_MAX_ENTRIES ( CERT_INFO_SIZE - 1 ) |
Max number of entries to find from certificate. More... | |
#define | CERTINFO_EXTERN extern |
Functions | |
void | add_cert (X509 *cert, X509 ***certs, int *ncerts) |
Generate and compose a certificate chain. More... | |
CERTINFO_EXTERN char ** | cert_info (X509 *x509, int type, ALGORITHM_TYPE algorithm) |
Request info on certificate. More... | |
#define CERT_CN 1 |
Certificate Common Name.
Definition at line 26 of file cert_info.h.
#define CERT_DIGEST 8 |
Certificate Digest.
Definition at line 40 of file cert_info.h.
#define CERT_EMAIL 4 |
Certificate e-mail.
Definition at line 32 of file cert_info.h.
#define CERT_INFO_MAX_ENTRIES ( CERT_INFO_SIZE - 1 ) |
Max number of entries to find from certificate.
Definition at line 55 of file cert_info.h.
#define CERT_INFO_SIZE 16 |
Max size of returned certificate content array.
Definition at line 53 of file cert_info.h.
#define CERT_ISSUER 11 |
Certificate issuer.
Definition at line 46 of file cert_info.h.
#define CERT_KEY_ALG 13 |
Certificate key algorithm.
Definition at line 50 of file cert_info.h.
#define CERT_KPN 3 |
Kerberos principal name.
Definition at line 30 of file cert_info.h.
#define CERT_PEM 10 |
Certificate in PEM format.
Definition at line 44 of file cert_info.h.
#define CERT_PUK 7 |
Certificate Public Key (PEM Format)
Definition at line 38 of file cert_info.h.
#define CERT_SERIAL 12 |
Certificate serial number.
Definition at line 48 of file cert_info.h.
#define CERT_SSHPUK 9 |
Certificate Public key in OpenSSH format.
Definition at line 42 of file cert_info.h.
#define CERT_SUBJECT 2 |
Certificate subject.
Definition at line 28 of file cert_info.h.
#define CERT_UID 6 |
Certificate Unique Identifier.
Definition at line 36 of file cert_info.h.
#define CERT_UPN 5 |
Microsoft's Universal Principal Name.
Definition at line 34 of file cert_info.h.
#define CERTINFO_EXTERN extern |
Definition at line 58 of file cert_info.h.
void add_cert | ( | X509 * | cert, |
X509 *** | certs, | ||
int * | ncerts | ||
) |
Generate and compose a certificate chain.
cert | Certificate to add |
certs | pointer to list of certificates |
ncerts | pointer to number of certificates in list |
CERTINFO_EXTERN char** cert_info | ( | X509 * | x509, |
int | type, | ||
ALGORITHM_TYPE | algorithm | ||
) |
Request info on certificate.
x509 | certificate to parse |
type | information to retrieve |
algorithm | to use in evaluate certificate digest; else null |