Lines 47-53
APR_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL(ssl,
Link Here
|
47 |
#define KEYTYPES "RSA or DSA" |
47 |
#define KEYTYPES "RSA or DSA" |
48 |
#endif |
48 |
#endif |
49 |
|
49 |
|
50 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L |
50 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
51 |
/* OpenSSL Pre-1.1.0 compatibility */ |
51 |
/* OpenSSL Pre-1.1.0 compatibility */ |
52 |
/* Taken from OpenSSL 1.1.0 snapshot 20160410 */ |
52 |
/* Taken from OpenSSL 1.1.0 snapshot 20160410 */ |
53 |
static int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) |
53 |
static int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) |
Lines 380-386
apr_status_t ssl_init_Module(apr_pool_t
Link Here
|
380 |
modssl_init_app_data2_idx(); /* for modssl_get_app_data2() at request time */ |
380 |
modssl_init_app_data2_idx(); /* for modssl_get_app_data2() at request time */ |
381 |
|
381 |
|
382 |
init_dh_params(); |
382 |
init_dh_params(); |
383 |
#if OPENSSL_VERSION_NUMBER >= 0x10100000L |
383 |
#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) |
384 |
init_bio_methods(); |
384 |
init_bio_methods(); |
385 |
#endif |
385 |
#endif |
386 |
|
386 |
|
Lines 583-589
static apr_status_t ssl_init_ctx_protoco
Link Here
|
583 |
|
583 |
|
584 |
SSL_CTX_set_options(ctx, SSL_OP_ALL); |
584 |
SSL_CTX_set_options(ctx, SSL_OP_ALL); |
585 |
|
585 |
|
586 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L |
586 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
587 |
/* always disable SSLv2, as per RFC 6176 */ |
587 |
/* always disable SSLv2, as per RFC 6176 */ |
588 |
SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2); |
588 |
SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2); |
589 |
|
589 |
|
Lines 2011-2017
apr_status_t ssl_init_ModuleKill(void *d
Link Here
|
2011 |
|
2011 |
|
2012 |
} |
2012 |
} |
2013 |
|
2013 |
|
2014 |
#if OPENSSL_VERSION_NUMBER >= 0x10100000L |
2014 |
#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) |
2015 |
free_bio_methods(); |
2015 |
free_bio_methods(); |
2016 |
#endif |
2016 |
#endif |
2017 |
free_dh_params(); |
2017 |
free_dh_params(); |