blob: fba3cc5a54f71c2f29f28335c37974fc6440bd7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#ifndef AUTH_X509_H
# define AUTH_X509_H
# include "gnutls_cert.h"
/* this is not to be included by gnutls_anon.c */
extern MOD_AUTH_STRUCT rsa_auth_struct;
/* This structure may be complex but, it's the only way to
* support a server that has multiple certificates
*/
typedef struct {
gnutls_cert ** cert_list;
/* contains a list of a list of certificates.
* eg: [0] certificate1, certificate11, certificate111
* (if more than one, one certificate certifies the one before)
* [1] certificate2, certificate22, ...
*/
int * cert_list_length;
/* contains the number of the certificates in a
* row.
*/
int ncerts; /* contains the number of columns in cert_list.
*/
/* FIXME: replace datum with an internal type
*/
gnutls_private_key * pkey; /* private keys. It contains ncerts private
* keys. pkey[i] corresponds to certificate in
* cert_list[i][0].
*/
} X509PKI_SERVER_CREDENTIALS;
typedef struct {
int ne;
} X509PKI_CLIENT_CREDENTIALS;
typedef struct {
gnutls_datum *peer_certificate_list; /* In DER format */
int peer_certificate_list_size;
CertificateStatus peer_certificate_status;
} X509PKI_AUTH_INFO;
#endif
|