summaryrefslogtreecommitdiff
path: root/build/crypto.m4
Commit message (Collapse)AuthorAgeFilesLines
* Follow up to r1908503: restore INCLUDES setting.Yann Ylavic2023-03-271-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1908749 13f79535-47bb-0310-9956-ffa450edef68
* crypto_openssl: Fix configure/detection of OPENSSL_init_crypto()Yann Ylavic2023-03-181-24/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1908503 13f79535-47bb-0310-9956-ffa450edef68
* apr_crypto_commoncrypto: Remove stray reference to -lcrypto thatGraham Leggett2019-11-061-2/+2
| | | | | | | prevented commoncrypto being enabled. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1869486 13f79535-47bb-0310-9956-ffa450edef68
* Revert r1833421 et al:Graham Leggett2019-06-241-15/+0
| | | | | | | Remove hard linking of all crypto libraries to core APR. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1861960 13f79535-47bb-0310-9956-ffa450edef68
* apr_crypto_openssl: Remove unused link to the ssl library.Graham Leggett2019-06-231-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1861959 13f79535-47bb-0310-9956-ffa450edef68
* apr_crypto_openssl: use OPENSSL_init_crypto() to initialise OpenSSL Graham Leggett2019-06-231-1/+1
| | | | | | | | | on versions 1.1+. Reference: http://openssl.6102.n7.nabble.com/Shutting-down-openssl-is-the-correct-thing-to-do-nothing-td76857.html#a76862 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1861954 13f79535-47bb-0310-9956-ffa450edef68
* Allow NSS to be found on MacPorts installations.Graham Leggett2019-06-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1860980 13f79535-47bb-0310-9956-ffa450edef68
* crypto: follow up to r1833421.Yann Ylavic2018-08-041-1/+1
| | | | | | | | | | | Link with OpenSSL's libssl in addition to libcrypto, so that we can initialize and deinitialize them together (libssl can't do this independently). Also, for older OpenSSL versions, initialize the threading locks needed by the lib at runtime. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1837430 13f79535-47bb-0310-9956-ffa450edef68
* apr_crypto: follow up to r1833359: export full <lib>_LDFLAGS.Yann Ylavic2018-06-121-7/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1833425 13f79535-47bb-0310-9956-ffa450edef68
* apr_crypto: follow up to r1833359.Yann Ylavic2018-06-121-0/+10
| | | | | | | | | | | | | | | | | | | | | 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
* Cryptographic Pseudo Random Number Generator (CPRNG).Yann Ylavic2018-06-111-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | New apr_crypto_prng API and apr_crypto[_thread]_random_bytes() functions. Allows to generate cryptographically secure random bytes indefinitely given an initial seed of APR_CRYPTO_PRNG_SEED_SIZE bytes (32), which is either provided by the caller or automatically gathered from the system. The CPRNG can also be re-seeded at any time, or after a process is fork()ed. The internal key is renewed every APR_CRYPTO_PRNG_SEED_SIZE random bytes produced and those data once returned to the caller are cleared from the internal state, which ensures forward secrecy. This CPRNG is fast, based on a stream cipher, and will never block besides the initial seed or any reseed if it depends on the system entropy. Finally, it can be used either globally (locked in multithread environment), per-thread (a lock free instance is automatically created for each thread on first use), or created as standalone instance (manageable independently). For now it's only implemented with the OpenSSL library as underlying crypto, that is --with-crypto --with-openssl needs to be configured, and the latter links libcrypto with APR. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1833359 13f79535-47bb-0310-9956-ffa450edef68
* Remove unnecessary duplication of autoconf tests for openssl and commoncrypto.Graham Leggett2016-07-051-20/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1751567 13f79535-47bb-0310-9956-ffa450edef68
* r1728963 introduced the use ofRainer Jung2016-02-141-3/+3
| | | | | | | | | | | | | | | | | | | | EVP_CIPHER_CTX_new() and EVP_CIPHER_CTX_free() in apr crypto. These OpenSSL functions have only been added in 0.9.8b. Since apr trunk is expected to have even higher OpenSSL version requirements at GA time, check for the function during configure. The removed check for BN_new was only there to check for a working crypto lib. We didn't actually use BN_new. In apr-util 1.5.x where we still support 0.9.8 even before 0.9.8b, I added a definition for EVP_CIPHER_CTX_new() and EVP_CIPHER_CTX_free() in r1730342. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1730344 13f79535-47bb-0310-9956-ffa450edef68
* Switch configure test for OpenSSL libcryptoRainer Jung2016-02-071-3/+3
| | | | | | | | | | from BN_init() to BN_new(). BN_init() is gone in OpenSSL 1.1.0. BN_new() exists at least since 0.9.8. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1728958 13f79535-47bb-0310-9956-ffa450edef68
* apr_crypto: Add a native CommonCrypto implementation for iOS and OSXGraham Leggett2012-10-051-2/+71
| | | | | | | where OpenSSL has been deprecated. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1394552 13f79535-47bb-0310-9956-ffa450edef68
* fix AC_CHECK_HEADER() usage with APU_CHECK_CRYPTO_NSSJeff Trawick2012-09-231-6/+16
| | | | | | | | | | | | The action-if-found is executed if *any* of the headers listed are found, so only equivalent headers should be searched with one invocation if action-if-found is used to flag success. This catches an error such as missing prerror.h at at configure time instead of at build time. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1389169 13f79535-47bb-0310-9956-ffa450edef68
* If --with-crypto was specified without enabling a crypto library, try to Jeff Trawick2012-09-231-1/+27
| | | | | | | | | | | | | | | | | | | | | autodetect possible crypto libraries, as long as they haven't been explicitly disabled. If you just want OpenSSL regardless of what is available on the system: --with-crypto --with-openssl or --with-crypto --without-nss --without-<other> If a library has to be specified explicitly so that it is found in a non-default location (--with-nss=$HOME/install/nss), other libraries won't be automatically enabled. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1389154 13f79535-47bb-0310-9956-ffa450edef68
* revert broken r1389129 for the time beingJeff Trawick2012-09-231-16/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1389131 13f79535-47bb-0310-9956-ffa450edef68
* if no crypto library is specified in conjuction with --with-crypto, ↵Jeff Trawick2012-09-231-1/+16
| | | | | | autodetect supported libraries git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1389126 13f79535-47bb-0310-9956-ffa450edef68
* Use APR_ADDTO when setting LDADD variablesRainer Jung2012-08-101-2/+2
| | | | | | | | | | instead of simply overwriting them. . This allows to preset the variables e.g. with rpath flags before running configure. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1371811 13f79535-47bb-0310-9956-ffa450edef68
* * build/crypto.m4: Always define apu_have_openssl, apu_have_nss to avoidJoe Orton2012-06-061-2/+2
| | | | | | | sh warning when testing these variables if modular-dso is disabled. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1346865 13f79535-47bb-0310-9956-ffa450edef68
* Fix "test" syntax introduced in r1214516.Rainer Jung2011-12-181-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1220395 13f79535-47bb-0310-9956-ffa450edef68
* apr_crypto: Crypto library detection runs twice (from main configure logicGraham Leggett2011-12-141-0/+3
| | | | | | | | | | as well as from APU_CHECK_CRYPTO). Crypto enablement depends on enablement of a crypto library, but forgetting to enable a crypto library silently proceeds without failing. Submitted by: trawick git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1214516 13f79535-47bb-0310-9956-ffa450edef68
* apr_crypto: Make sure we can find the nss headers on RHEL5.Graham Leggett2011-05-251-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1127648 13f79535-47bb-0310-9956-ffa450edef68
* * build/apu-iconv.m4, build/dbd.m4, build/crypto.m4: Use INCLUDESJoe Orton2009-03-251-1/+1
| | | | | | | | | throughout. * configure.in: Drop use of APRUTIL_PRIV_INCLUDES, APRUTIL_INCLUDES. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@758327 13f79535-47bb-0310-9956-ffa450edef68
* * build/: Use LDFLAGS, INCLUDES rather than APRUTIL_ counterparts.Joe Orton2009-03-241-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@757901 13f79535-47bb-0310-9956-ffa450edef68
* Start merging buildsystem from apr-util:Joe Orton2009-03-241-0/+202
* Makefile.in: Add include/private to include path. * build/: Merge autoconf macro set, adjust to inherit APR_HAVE_DSO correctly. * build.conf: Build APR-util code. * configure.in: Call APR-util macro set. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@757740 13f79535-47bb-0310-9956-ffa450edef68