Changeset 46e3920 in mod_gnutls for src


Ignore:
Timestamp:
Apr 24, 2005, 7:46:06 PM (15 years ago)
Author:
Paul Querna <chip@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
2ad3683
Parents:
7ba803b
Message:

if there aren't any certs.. still set something.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    r7ba803b r46e3920  
    580580           
    581581            len = sizeof(buf);
    582             if (gnutls_x509_crt_get_dn(cert, buf, &len) == 0) {
    583                 apr_table_setn(env, "SSL_SERVER_S_DN", buf);
    584             }
     582            gnutls_x509_crt_get_dn(cert, buf, &len);
     583            apr_table_setn(env, "SSL_SERVER_S_DN", buf);
    585584           
    586585            len = sizeof(buf);
    587             if (gnutls_x509_crt_get_issuer_dn(cert, buf, &len) == 0) {
    588                 apr_table_setn(env, "SSL_SERVER_I_DN", buf);
    589             }
     586            gnutls_x509_crt_get_issuer_dn(cert, buf, &len);
     587            apr_table_setn(env, "SSL_SERVER_I_DN", buf);
    590588           
    591589            gnutls_x509_crt_deinit(cert);
     590        }
     591        else {
     592            apr_table_setn(env, "SSL_SERVER_S_DN", "Unknown");
     593            apr_table_setn(env, "SSL_SERVER_I_DN", "Unknown");
    592594        }
    593595    }
Note: See TracChangeset for help on using the changeset viewer.