diff options
author | Yann Ylavic <ylavic@apache.org> | 2018-06-12 20:11:09 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2018-06-12 20:11:09 +0000 |
commit | 9aefe5db8512187e194223cd411c1b63bcf0b7a8 (patch) | |
tree | deb423ee592da99470ce93bedf8892ab29ae785e /CMakeLists.txt | |
parent | af39a670ca00949536be1b3d615d2ec0392d63f3 (diff) | |
download | apr-9aefe5db8512187e194223cd411c1b63bcf0b7a8.tar.gz |
apr_crypto: follow up to r1833359.
Link underlying crypto libraries (openssl, nss, and commoncrypto) with libapr
when the corresponding --with is configured. This allows to initialize, terminate
or check whether initialized respectively with apr_crypto_lib_init(),
apr_crypto_lib_term() or apr_crypto_lib_is_initialized().
Users can now control the (un)initialization of those libraries, notably when
they also use them independently and that doing this multiple times can cause
leaks or unexpected behaviour.
The initialization code is moved from "apr_crypto_{openssl,nss,commoncrypto}.c"
where previously loaded dynamically (DSO) to "apr_crypto_internal.c" which is
linked with libapr.
Also apr_crypto_prng_init() can make sure the underlying crypto lib is ready.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1833421 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f347531ee..a1052edd8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -240,6 +240,7 @@ SET(APR_SOURCES buckets/apr_buckets_socket.c crypto/apr_crypto.c crypto/apr_crypto_prng.c + crypto/apr_crypto_internal.c crypto/apr_md4.c crypto/apr_md5.c crypto/apr_passwd.c |