Changeset 32f2e60 in mod_gnutls for src/mod_gnutls.c


Ignore:
Timestamp:
Dec 9, 2004, 2:52:31 AM (15 years ago)
Author:
Paul Querna <chip@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
76bd3bf
Parents:
0314deb
Message:

fixes and stuff that i should of already committed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mod_gnutls.c

    r0314deb r32f2e60  
    4545
    4646#define DH_BITS 1024
     47#ifdef USE_RSA
    4748#define RSA_BITS 512
    48 
     49#endif
    4950static int mod_gnutls_hook_post_config(apr_pool_t * p, apr_pool_t * plog,
    5051                                       apr_pool_t * ptemp,
     
    5455    server_rec *s;
    5556    gnutls_dh_params_t dh_params;
     57#ifdef USE_RSA
    5658    gnutls_rsa_params_t rsa_params;
    57 
     59#endif
    5860
    5961    /* TODO: Should we regenerate these after X requests / X time ? */
    6062    gnutls_dh_params_init(&dh_params);
    6163    gnutls_dh_params_generate2(dh_params, DH_BITS);
    62 //    gnutls_rsa_params_init(&rsa_params);
    63 //    gnutls_rsa_params_generate2(rsa_params, RSA_BITS);
    64 
     64#ifdef USE_RSA
     65    gnutls_rsa_params_init(&rsa_params);
     66    gnutls_rsa_params_generate2(rsa_params, RSA_BITS);
     67#endif
    6568    for (s = base_server; s; s = s->next) {
    6669        sc = (mod_gnutls_srvconf_rec *) ap_get_module_config(s->module_config,
     
    7073                                                 sc->key_file,
    7174                                                 GNUTLS_X509_FMT_PEM);
    72 //          gnutls_certificate_set_rsa_export_params(sc->certs, rsa_params);
     75#ifdef USE_RSA
     76          gnutls_certificate_set_rsa_export_params(sc->certs, rsa_params);
     77#endif
    7378          gnutls_certificate_set_dh_params(sc->certs, dh_params);
    7479        }
Note: See TracChangeset for help on using the changeset viewer.