diff options
| author | 2005-04-24 23:46:06 +0000 | |
|---|---|---|
| committer | 2005-04-24 23:46:06 +0000 | |
| commit | 46e3920048e0be9fd270befa4b59226d4330716d (patch) | |
| tree | ac86c5f6a6a429bbbff11970012fa312f77ddbf4 /src | |
| parent | 7ba803bf96524267acc84998904405ca1936b47a (diff) | |
if there aren't any certs.. still set something.
Diffstat (limited to 'src')
| -rw-r--r-- | src/gnutls_hooks.c | 14 |
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 | ||
| 595 | end_fixups: | 597 | end_fixups: |
