Changeset 5674676 in mod_gnutls for src


Ignore:
Timestamp:
Dec 3, 2013, 6:49:10 PM (6 years ago)
Author:
Daniel Kahn Gillmor <dkg@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, upstream
Children:
9720026
Parents:
9717fe4
git-author:
Daniel Kahn Gillmor <dkg@…> (12/03/13 17:50:07)
git-committer:
Daniel Kahn Gillmor <dkg@…> (12/03/13 18:49:10)
Message:

add SSL_DH_PRIME_BITS to expose the size of the DH modulus to CGI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    r9717fe4 r5674676  
    798798            (key_size <= 40) ? "true" : "false");
    799799
     800    int dhsize = gnutls_dh_get_prime_bits(ctxt->session);
     801    if (dhsize > 0) {
     802        tmp = apr_psprintf(r->pool, "%d", dhsize);
     803        apr_table_setn(env, "SSL_DH_PRIME_BITS", tmp);
     804    }
     805
    800806    len = sizeof (sbuf);
    801807    gnutls_session_get_id(ctxt->session, sbuf, &len);
Note: See TracChangeset for help on using the changeset viewer.