| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1908749 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1908503 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
prevented commoncrypto being enabled.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1869486 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1861959 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1860980 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1833425 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1751567 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
where OpenSSL has been deprecated.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1394552 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1389131 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
autodetect supported libraries
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1389126 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1220395 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1127648 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@757901 13f79535-47bb-0310-9956-ffa450edef68
|
|
* 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
|