aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils
Commit message (Collapse)AuthorAgeFilesLines
* Avoid code that triggers problems under GCC 8Jack Lloyd2018-03-181-1/+1
| | | | GH #1498
* Fix CPUID::has_cpuid_bitJack Lloyd2018-03-171-1/+3
| | | | | | It would return true if any bits were set instead of if all the bits were set. It is only currently called with a single bit but that might change in the future.
* Avoid creating stringstream unless needed in version checkJack Lloyd2018-03-171-3/+3
|
* Avoid unused arg warning in PowerPC CPUID codeJack Lloyd2018-03-171-0/+2
|
* Avoid a problematic construct for AltiVec byteswapJack Lloyd2018-03-161-3/+8
| | | | Seems to cause problems with GCC 8 on ppc64le. GH #1498
* Use RtlGenRandom instead of CryptoAPIJack Lloyd2018-03-141-1/+1
|
* Add a facility for debug-mode assertionsJack Lloyd2018-03-141-6/+17
| | | | | When we want to check something but it is to expensive to do so in normal builds.
* Split out the memory pool logicJack Lloyd2018-03-096-161/+282
| | | | | | Making a clear seperation between the OS specific code to get the pool, the singleton mlock allocator, and the general allocator logic.
* Add OS::system_page_sizeJack Lloyd2018-03-092-4/+25
|
* Small fiddly optimizations in locking_allocatorJack Lloyd2018-03-081-5/+6
|
* Support 1024-bit inputs in poly_double functionJack Lloyd2018-03-062-14/+36
| | | | GH #1477
* Correctly read the POWER cycle counterJack Lloyd2018-03-061-8/+11
| | | | | | | The upper register can overflow so we need to re-read the upper register to ensure we we not on a boundary. GH #1460
* Ensure exception types are exported from DLLJack Lloyd2018-03-061-1/+1
| | | | GH #983
* Use BOTAN_DEFAULT_BUFFER_SIZE instead of DEFAULT_BUFFERSIZEJack Lloyd2018-03-011-5/+0
|
* Move declaration of word to types.hJack Lloyd2018-03-011-0/+12
|
* Fix handling of misaligned loads in AltiVec SIMD wrapperJack Lloyd2018-02-231-22/+12
| | | | Handling little+big endian is a PITA, easier to bounce though a union here
* Do runtime endian check when CPUID is initializedJack Lloyd2018-02-231-0/+1
| | | | | Otherwise cross-endian builds (ie building big-endian for little-endian) can have massive test breakage but with no hints.
* Use GetProcessWorkingSetSize instead of GetProcessWorkingSetSizeExJack Lloyd2018-02-231-2/+1
| | | | | The Ex variant is not available in older Wine (including the version in Trusty) and GetProcessWorkingSetSize is sufficient.
* Move allocator initializer RAII class to mem_ops.hJack Lloyd2018-02-191-0/+6
| | | | May be needed elsewhere
* Of course they are public member variables, not functions ...Jack Lloyd2018-02-131-1/+1
|
* Add BOTAN_DEPRECATED_PUBLIC_MEMBER_FUNCTIONSJack Lloyd2018-02-131-0/+1
| | | | | | Makes such things easier to find in the future. Also adds BOTAN_NO_DEPRECATED which causes them to be private instead.
* Enable VirtualLock on MinGW buildsJack Lloyd2018-02-131-2/+2
| | | | | For some reason one of the blocks was guarded to be MSVC only, but it works fine on MinGW also.
* Alternate method of forcing allocator initializationJack Lloyd2018-02-042-0/+12
| | | | That doesn't require a malloc/free every time we call ec_group_data()
* Add function to query if filesystem support is enabled.Jack Lloyd2018-01-302-0/+17
| | | | Makes for much simpler code.
* Fix documentation of DataSource::end_of_data.Marcus Brinkmann2018-01-191-1/+1
|
* Move thread utils (barrier and semaphore) to a subpackage of utilJack Lloyd2018-01-126-25/+15
| | | | | | They are not needed except by the filter code so being able to easily remove them from the build is nice; utils is always compiled in so that should be as small as possible.
* Merge GH #1391 X25519 cleanupsJack Lloyd2018-01-091-2/+7
|\
| * Fix for systems needing 128-bit helper typeJack Lloyd2018-01-071-0/+5
| |
| * Reformat donna.cppJack Lloyd2018-01-061-2/+2
| | | | | | | | | | Was originally kept in the same format as upstream, but upstream is not maintained anymore so no reason to stick with it.
* | Merge GH #1393 Add cpuid support for POWER crypto extensionsJack Lloyd2018-01-093-1/+34
|\ \
| * | Add support for detecting POWER crypto using getauxvalJack Lloyd2018-01-073-1/+34
| |/ | | | | | | See #1206
* | Merge GH #1378 Use OS feature flags instead of OS name for enabling system ↵Jack Lloyd2018-01-098-57/+45
|\ \ | |/ |/| | | specific code
| * Test OS features by the feature vs the OS nameJack Lloyd2017-12-308-57/+45
| |
* | Avoid warning with old ClangJack Lloyd2018-01-011-1/+1
| | | | | | | | Clang defines __GNUG__ so we ended up ignoring the Clang version.
* | Enable GCC inline asm under Sun Studio compilersJack Lloyd2017-12-311-1/+1
|/ | | | Fixes GH #848
* Disable sockets on MinGWJack Lloyd2017-12-301-3/+3
| | | | | | Everything works ok on i686 when crosscompiled but it seems things are badly broken on x86-64 when compiling on Windows. Rather than fight their broken headers, just disable. No OCSP for you MinGW.
* Avoid prefixing siglongjmp or sigsetjmp with ::Jack Lloyd2017-12-281-2/+2
| | | | Apparently these are macros on Cygwin/newlib
* Fix socket libs for SolarisJack Lloyd2017-12-231-0/+1
|
* Fix build issue on HaikuJack Lloyd2017-12-232-0/+2
| | | | Undeprecate it since it seems easy enough to support.
* Fix some shadow and unused parameter warningsJack Lloyd2017-12-201-2/+2
|
* Avoid tying encoding of CRLs to the current system clockJack Lloyd2017-12-181-1/+2
|
* Windows has a different return typeJack Lloyd2017-12-171-2/+4
|
* Merge BSD and Winsock variations togetherJack Lloyd2017-12-171-105/+61
|
* Missing includeJack Lloyd2017-12-171-0/+1
|
* Add an overall timeout to the HTTP requestJack Lloyd2017-12-171-0/+8
|
* Expose timeouts to the HTTP APIJack Lloyd2017-12-172-11/+26
|
* Handle timeouts in BSD socketsJack Lloyd2017-12-171-5/+61
|
* Add timeouts to Asio socketsJack Lloyd2017-12-176-39/+117
|
* Enable using NEON on ClangJack Lloyd2017-12-101-14/+15
| | | | | Clang doesn't like the way SIMD shifts were implemented, I guess it fails to inline the constant. Make it a template parameter instead.
* Add a new version function returning just the version without extrasJack Lloyd2017-12-062-16/+40
|