summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
...
* apr_crypto: follow up to r1833359.Yann Ylavic2018-06-121-0/+1
| | | | | | | | | | | | | | | | | | | | | 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/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Register testsiphash for cmake.Yann Ylavic2017-01-101-0/+1
| | | | | | | | 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
* Redis in APR_2.0 tooJim Jagielski2016-11-051-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1768269 13f79535-47bb-0310-9956-ffa450edef68
* Provide apr_siphash*() functions family.Yann Ylavic2016-10-071-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1763672 13f79535-47bb-0310-9956-ffa450edef68
* Introduce the subset of svn_cstring_ functions into APR as the apr_cstr_William A. Rowe Jr2016-01-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* cmake >= 2.8.12 doesn't generate .pdb files for static libs,Jeff Trawick2014-09-151-8/+1
| | | | | | | | | | | 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
* Follow up to r1604596: include skiplist test in the cmake-based buildJeff Trawick2014-09-151-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1625173 13f79535-47bb-0310-9956-ffa450edef68
* Make DLL_NAME definition compatible with Visual Studio generators by ↵Jeff Trawick2013-11-191-2/+2
| | | | | | | | | | | 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
* Handle apu_select_dbm.h (already in apr-util 1.5.x branch)Jeff Trawick2013-11-061-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1539456 13f79535-47bb-0310-9956-ffa450edef68
* don't spend 10 minutes in testlockperf during make test/check on WindowsJeff Trawick2013-10-121-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1531554 13f79535-47bb-0310-9956-ffa450edef68
* Axe some redundancy with specification of generated apr.hJeff Trawick2013-10-101-6/+4
| | | | | | | | | 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
* add skiplistJeff Trawick2013-10-021-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1528690 13f79535-47bb-0310-9956-ffa450edef68
* Fix build of aprapp/libaprapp (APR_DECLARE_STATIC was misplaced).Jeff Trawick2013-09-161-40/+104
| | | | | | | | | | | | | | | | | | | 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
* build aprapp-2.lib and libaprapp-2Jeff Trawick2013-09-141-0/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1523355 13f79535-47bb-0310-9956-ffa450edef68
* Bring in APR-util's DLL_NAME feature, used to provide a specific nameJeff Trawick2013-09-141-0/+2
| | | | | | | | | | | | | 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
* set binary attributes for dlls via libapr.rcJeff Trawick2013-09-121-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1522649 13f79535-47bb-0310-9956-ffa450edef68
* install .pdb files unless requested otherwise, tweak todo listJeff Trawick2013-09-111-0/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1521957 13f79535-47bb-0310-9956-ffa450edef68
* remove the ability to suppress the build setting display, tweak the todo listJeff Trawick2013-09-101-18/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1521461 13f79535-47bb-0310-9956-ffa450edef68
* Allow control over the setting of _WINNT_WINNTJeff Trawick2013-09-081-2/+17
| | | | | | | | 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
* move cmake howto/buglist to a separate file, README.cmakeJeff Trawick2013-08-291-76/+15
| | | | | | | add license text to CMakeLists.txt git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1518749 13f79535-47bb-0310-9956-ffa450edef68
* APU_USE_LIBXML2:Jeff Trawick2013-08-281-3/+11
| | | | | | | | | | | | 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
* Add support for APU_HAVE_CRYPTO+APU_HAVE_OPENSSL.Jeff Trawick2013-08-271-9/+29
| | | | | | | | | | | | | | | | | (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
* Update todo list based on a quick scan of the Windows makefilesJeff Trawick2013-08-271-1/+3
| | | | | | | | | | 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
* Add how-to-build at the top of the file.Jeff Trawick2013-08-271-0/+43
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1517944 13f79535-47bb-0310-9956-ffa450edef68
* Change the way that private .h files used by httpd are installed.Jeff Trawick2013-08-231-5/+12
| | | | | | | | 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
* tiny cleanup to how feature test values for apr.h are initializedJeff Trawick2013-08-231-8/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1516871 13f79535-47bb-0310-9956-ffa450edef68
* Support DBD ODBC driver as an optional feature, defaulting to ONJeff Trawick2013-08-231-5/+19
| | | | | | | | | | | | | | 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
* Run gen_test_char during the build, as with autoconf-based buildJeff Trawick2013-08-231-1/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1516674 13f79535-47bb-0310-9956-ffa450edef68
* tiny cleanups based on tdonovan's cmake listsJeff Trawick2013-08-221-21/+33
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1516618 13f79535-47bb-0310-9956-ffa450edef68
* Pull some source files out of the apr library that should beJeff Trawick2013-08-221-27/+17
| | | | | | | 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
* Add experimental cmake-based build system for Windows.Jeff Trawick2013-08-221-0/+463
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