aboutsummaryrefslogtreecommitdiffstats
path: root/src/gnutls_hooks.c
diff options
context:
space:
mode:
authorGravatar Nikos Mavrogiannopoulos 2007-12-02 09:05:52 +0000
committerGravatar Nokis Mavrogiannopoulos 2007-12-02 09:05:52 +0000
commitee65fcb2aaa2d599d13864090f6e567cdc91a9b0 (patch)
treee609a5c0d9722e01bbfde74aae306c0d7f304d45 /src/gnutls_hooks.c
parent717206cb0f67afb768b5f76c86faf2666033a865 (diff)
added SSL_SERVER_M_SERIAL environment variable
Diffstat (limited to 'src/gnutls_hooks.c')
-rw-r--r--src/gnutls_hooks.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gnutls_hooks.c b/src/gnutls_hooks.c
index e20592b..e89c7f0 100644
--- a/src/gnutls_hooks.c
+++ b/src/gnutls_hooks.c
@@ -834,6 +834,11 @@ mgs_add_common_cert_vars(request_rec * r, gnutls_x509_crt cert, int side,
834 apr_table_setn(env, apr_pstrcat(r->pool, MGS_SIDE, "_M_SERIAL", NULL), 834 apr_table_setn(env, apr_pstrcat(r->pool, MGS_SIDE, "_M_SERIAL", NULL),
835 apr_pstrdup(r->pool, tmp)); 835 apr_pstrdup(r->pool, tmp));
836 836
837 alg = gnutls_x509_crt_get_version(cert);
838 if (alg > 0)
839 apr_table_setn(env, apr_pstrcat(r->pool, MGS_SIDE, "_M_VERSION", NULL),
840 apr_psprintf(r->pool, "%u", alg));
841
837 tmp = 842 tmp =
838 mgs_time2sz(gnutls_x509_crt_get_expiration_time 843 mgs_time2sz(gnutls_x509_crt_get_expiration_time
839 (cert), buf, sizeof(buf)); 844 (cert), buf, sizeof(buf));