Changeset 74f798f in mod_gnutls for src


Ignore:
Timestamp:
Oct 3, 2011, 8:54:22 AM (8 years ago)
Author:
Dash Shendy <neuromancer@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
da8c2fe
Parents:
fe42bfb
Message:

Added Debug logging and user warning for not spec. DH Params

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    rfe42bfb r74f798f  
    317317
    318318    if (sc_base->dh_params == NULL) {
    319         rv = gnutls_dh_params_generate2 (dh_params,
    320                 gnutls_sec_param_to_pk_bits(GNUTLS_PK_DH,GNUTLS_SEC_PARAM_HIGH));
     319        int dh_bits = gnutls_sec_param_to_pk_bits(GNUTLS_PK_DH,
     320                GNUTLS_SEC_PARAM_NORMAL);
     321        ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, s,
     322            "GnuTLS: Generating DH Params of %i bits\n"
     323            "To avoid this use GnuTLSDHFile to specify DH Params for this host",
     324            dh_bits);               
     325        rv = gnutls_dh_params_generate2 (dh_params,dh_bits);
    321326        if (rv < 0) {
    322327            ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, s,
     
    325330            exit(rv);
    326331        }
     332#if MOD_GNUTLS_DEBUG
     333            ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
     334                    "GnuTLS: Generated DH Params of %i bits",dh_bits);
     335#endif       
    327336    } else {
    328337        dh_params = sc_base->dh_params;
Note: See TracChangeset for help on using the changeset viewer.