aboutsummaryrefslogtreecommitdiffstats
path: root/include/mod_gnutls.h.in
diff options
context:
space:
mode:
authorGravatar Nokis Mavrogiannopoulos 2007-12-08 16:07:12 +0000
committerGravatar Nokis Mavrogiannopoulos 2007-12-08 16:07:12 +0000
commit8240f591e11b4c87c8f134515806d6cbd59bf9f2 (patch)
tree9225c0da012618b8d88d2562c9ee8024a523765e /include/mod_gnutls.h.in
parent450f9e9e0b2f99e8aba697a0a9c9ce4899bed92f (diff)
Added support for sending more than one certificate.
Diffstat (limited to 'include/mod_gnutls.h.in')
-rw-r--r--include/mod_gnutls.h.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/mod_gnutls.h.in b/include/mod_gnutls.h.in
index 6a311a3..a0f6581 100644
--- a/include/mod_gnutls.h.in
+++ b/include/mod_gnutls.h.in
@@ -80,7 +80,10 @@ typedef struct
80/* The maximum number of client CA certificates allowed. 80/* The maximum number of client CA certificates allowed.
81 */ 81 */
82#define MAX_CA_CRTS 128 82#define MAX_CA_CRTS 128
83#define MAX_CIPHERS 16 83
84/* The maximum number of certificates to send in a chain
85 */
86#define MAX_CHAIN_SIZE 8
84 87
85typedef struct 88typedef struct
86{ 89{
@@ -88,7 +91,8 @@ typedef struct
88 gnutls_srp_server_credentials_t srp_creds; 91 gnutls_srp_server_credentials_t srp_creds;
89 gnutls_anon_server_credentials_t anon_creds; 92 gnutls_anon_server_credentials_t anon_creds;
90 char* cert_cn; 93 char* cert_cn;
91 gnutls_x509_crt_t cert_x509; 94 gnutls_x509_crt_t certs_x509[MAX_CHAIN_SIZE]; /* A certificate chain */
95 unsigned int certs_x509_num;
92 gnutls_x509_privkey_t privkey_x509; 96 gnutls_x509_privkey_t privkey_x509;
93 int enabled; 97 int enabled;
94 /* whether to send the PEM encoded certificates 98 /* whether to send the PEM encoded certificates