| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
Submitted by: Michal Karm Babacek <karm fedoraproject.org>
Reviewed by: ylavic
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1778153 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1768269 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1763672 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
family of functions. Requires the introduction of APR_ERANGE.
Solves apr_cstr_casecmp[n] for ASCII and EBCDIC and borrows
from the work of jim, ylavic and wrowe, see r1715401 forwards in;
http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util.c?view=log&pathrev=1722194
More performance review is needed against different compilers, so went ahead
and borrowed original svn implementation as a basis, and we can port whichever
performance enhancements test out more efficiently.
Proposing for APR 1.6.0 which is the thought behind the initial @since tags.
These must be changed if not accepted for backport.
Note that the svn_cstring_join function could not be implemented as-is
due to the absence of svn's counted string functionality. It deserves
an implementation if not already present, or should be removed before
tagging or backporting.
No whitespace/formatting cleanup on this pass in order to preserve as
much of the svn attributions as possible. This can happen in a later
pass to conform to APR's style conventions. While renaming the functions,
declarations themsel
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1726928 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
and points out that they aren't useful anyway:
http://public.kitware.com/Bug/view.php?id=14600
remove .pdb handling for static libs regardless of cmake version
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1625175 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1625173 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
removing unnecessary
escaped quoting.
Diagnosis and earlier patch by rhuijben
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1543399 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1539456 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1531554 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
as a dependency of the various binaries.
Pointed out by: Mike Rumph
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1530988 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1528690 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Support building test suite against either static or dynamic libs.
(Requiring separate builds is ugly, but so is creating a more
complex directory structure or naming convention in the build
directory and possibly having to modify test program source to
find child programs.)
Build additional test programs.
Add running the test suite to the build system.
(Using the "NMake Makefiles" generator, use "nmake test" to run
silently, with output logged to some files, or "nmake check" to
run with test output logged to the console.)
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1523604 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1523355 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
for DSO modules as the Window's File Description. This was lost with
the merge of APR-util into APR.
Set DLL_NAME in the cmake-based build. (The Visual Studio build already
sets it.)
The APR-util 1.5.x cmake list already sets it.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1523277 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1522649 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1521957 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1521461 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
Default minimum Windows version:
0x0600 (Vista/Windows Server 2008)
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1520879 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
add license text to CMakeLists.txt
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1518749 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add LIBXML2_ICONV_INCLUDE_DIR and LIBXML2_ICONV_LIBRARIES
settings to use with libxml2 builds that have a prereq on
iconv(). (same settings as httpd)
Remove the todo, since it works for me.
APU_HAVE_CRYPTO:
Add missing doc.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1518206 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(Fully-qualifying the include file paths was implemented as part
of specifying the include directories for apr_crypto_openssl-2;
relative include paths don't work with SET_TARGET_PROPERTIES(
... INCLUDE_DIRECTORIES ... ) )
Update notes on what needs to be done:
. OpenSSL flavor of APU_HAVE_CRYPTO is done as of this commit
. COMMONCRYPTO is OS X/iOS, so that isn't applicable to Windows
. APU_DSO_MODULE_BUILD is the style we have; static module builds
is what is missing
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1518029 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
for 1.4.x HEAD (more likely to be correct than trunk perhaps?)
Delete todo about describing nmake usage, as the doc added in r1517944
should be a big help.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1517968 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1517944 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
Instead of always installing them and putting them under private_include,
install under include but only if a new option is enabled.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1516901 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1516871 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
since the libraries are always available on Windows.
(A fair amount of this is from Tom Donovan's cmake list.)
Enable the DBD test driver when the test suite is being built.
Add/clarify a small amount of commentary about the lack of
a test suite build for libapr-2 (the DLL) and the manner in
which DBD driver are expected to be built.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1516863 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1516674 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1516618 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
enabled in a DSO via APU_HAVE_PGSQL/NSS/etc.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1516603 13f79535-47bb-0310-9956-ffa450edef68
|
|
include/apr.hwc is almost exactly the same as apr.hw; it uses
variables for cmake-time feature selection so that cmake
can easily generate apr.h.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1516542 13f79535-47bb-0310-9956-ffa450edef68
|