summaryrefslogtreecommitdiffstatsabout
path: root/src/gnutls_hooks.c
diff options
context:
space:
mode:
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));