diff options
author | Nokis Mavrogiannopoulos | 2007-12-02 09:05:52 +0000 |
---|---|---|
committer | Nokis Mavrogiannopoulos | 2007-12-02 09:05:52 +0000 |
commit | 11826a606e9aa9a257e30515f41a41c80665081a (patch) | |
tree | e609a5c0d9722e01bbfde74aae306c0d7f304d45 /src | |
parent | 3ce85fd536b52f0e04e86451215cdf01ffa22f6b (diff) |
added SSL_SERVER_M_SERIAL environment variable
Diffstat (limited to 'src')
-rw-r--r-- | src/gnutls_hooks.c | 5 |
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)); |