aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Paul Querna 2005-04-24 23:46:06 +0000
committerGravatar Paul Querna 2005-04-24 23:46:06 +0000
commit46e3920048e0be9fd270befa4b59226d4330716d (patch)
treeac86c5f6a6a429bbbff11970012fa312f77ddbf4
parent7ba803bf96524267acc84998904405ca1936b47a (diff)
if there aren't any certs.. still set something.
-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: