pam_pkcs11 0.6.12
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
27#define CERT_SUBJECT 2
29#define CERT_KPN 3
31#define CERT_EMAIL 4
33#define CERT_UPN 5
35#define CERT_UID 6
37#define CERT_PUK 7
39#define CERT_DIGEST 8
41#define CERT_SSHPUK 9
43#define CERT_PEM 10
45#define CERT_ISSUER 11
47#define CERT_SERIAL 12
49#define CERT_KEY_ALG 13
50
52#define CERT_INFO_SIZE 16
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
68void add_cert(X509 *cert, X509 ***certs, int *ncerts);
69
77CERTINFO_EXTERN char **cert_info(X509 *x509, int type, ALGORITHM_TYPE algorithm);
78
79#undef CERTINFO_EXTERN
80
81#endif /* __CERT_INFO_H_ */
void add_cert(X509 *cert, X509 ***certs, int *ncerts)
Generate and compose a certificate chain.
CERTINFO_EXTERN char ** cert_info(X509 *x509, int type, ALGORITHM_TYPE algorithm)
Request info on certificate.
#define CERTINFO_EXTERN
Definition cert_info.h:57
const char * ALGORITHM_TYPE
Definition cert_st.h:38