summaryrefslogtreecommitdiffstats
path: root/modules/filters
diff options
context:
space:
mode:
authorGraham Leggett <minfrin@apache.org>2019-06-23 23:10:23 +0200
committerGraham Leggett <minfrin@apache.org>2019-06-23 23:10:23 +0200
commitcd58f1856a9adc31b95e8ed58b168df635c1af71 (patch)
tree123050f64142673b8dcce015e093685e05dbf3fc /modules/filters
parentFrench doc rebuild. (diff)
downloadapache2-cd58f1856a9adc31b95e8ed58b168df635c1af71.tar.xz
apache2-cd58f1856a9adc31b95e8ed58b168df635c1af71.zip
After reinstatement of DSO support in APR/APR-util, revert r1837437,
r1837435, r1834553, r1833598, r1833452, r1833383, r1833368. Undoes the following: mod_ssl: OpenSSL now initializes fully through APR, use that. mod_ssl: build with LibreSSL. LibreSSL seems to be openssl-1.1 API compatible only in version 2.8 (master). So use that for MODSSL_USE_OPENSSL_PRE_1_1_API instead of 2.7, the two 2.7 compatibility-exceptions are handled explicitely but overall it's simpler. Regarding CRYPTO_malloc_init vs OPENSSL_malloc_init, libreSSL uses none, the former used to be a no-op but depends is LIBRESSL_INTERNAL in latest versions, while the latter has never been (and will never be) defined. So don't call any with LibreSSL. Follow up to r1833368: share openssl between modules. Both libapr[-util], the core PRNG, mod_ssl, mod_crypto and mod_session_crypto can use the same crypto library (e.g. openssl), use the new APR crypto loading API so that they can work together and initialize/terminate the lib either once for all or on demand and reusable by the others. Follow up to r1833368: apr_crypto_prng_after_fork() now used a PID. Make use of the new apr_crypto_rng API if available. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1861947 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/filters')
-rw-r--r--modules/filters/mod_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/filters/mod_crypto.c b/modules/filters/mod_crypto.c
index 5d5e6b3c13..2c98692c41 100644
--- a/modules/filters/mod_crypto.c
+++ b/modules/filters/mod_crypto.c
@@ -1197,7 +1197,7 @@ crypto_init(apr_pool_t * p, apr_pool_t * plog,
apr_status_t rv;
rv = apr_crypto_init(p);
- if (APR_SUCCESS != rv && APR_EREINIT != rv) {
+ if (APR_SUCCESS != rv) {
ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
APLOGNO(03427) "APR crypto could not be initialised");
return rv;