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.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/gnutls_hooks.c b/src/gnutls_hooks.c
index f36f9de..575b631 100644
--- a/src/gnutls_hooks.c
+++ b/src/gnutls_hooks.c
@@ -579,17 +579,19 @@ int mgs_hook_fixups(request_rec *r)
579 } 579 }
580 580
581 len = sizeof(buf); 581 len = sizeof(buf);
582 if (gnutls_x509_crt_get_dn(cert, buf, &len) == 0) { 582 gnutls_x509_crt_get_dn(cert, buf, &len);
583 apr_table_setn(env, "SSL_SERVER_S_DN", buf); 583 apr_table_setn(env, "SSL_SERVER_S_DN", buf);
584 }
585 584
586 len = sizeof(buf); 585 len = sizeof(buf);
587 if (gnutls_x509_crt_get_issuer_dn(cert, buf, &len) == 0) { 586 gnutls_x509_crt_get_issuer_dn(cert, buf, &len);
588 apr_table_setn(env, "SSL_SERVER_I_DN", buf); 587 apr_table_setn(env, "SSL_SERVER_I_DN", buf);
589 }
590 588
591 gnutls_x509_crt_deinit(cert); 589 gnutls_x509_crt_deinit(cert);
592 } 590 }
591 else {
592 apr_table_setn(env, "SSL_SERVER_S_DN", "Unknown");
593 apr_table_setn(env, "SSL_SERVER_I_DN", "Unknown");
594 }
593 } 595 }
594 596
595end_fixups: 597end_fixups: