aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils
Commit message (Collapse)AuthorAgeFilesLines
* Fix more MSVC warningsJack Lloyd2019-06-141-2/+2
|
* Officially deprecate headersJack Lloyd2019-06-071-0/+7
| | | | | | | | | | Create BOTAN_DEPRECATED_HEADER so we can warn about this consistently. Shuffle around the filter headers so all of the concrete filters are defined in filters.h instead of being spread across many headers. Document which headers are deprecated as well as a list of headers which will be made internal-only in a future major release.
* Revert part of #1744 making Exception constructors protectedJack Lloyd2019-05-301-1/+11
| | | | This broke SoftHSM build
* Add a DatabaseError type, set the sqlite return code in exceptionJack Lloyd2019-05-234-62/+79
|
* Merge GH #1962 Add getauxval replacement for older AndroidJack Lloyd2019-05-221-3/+26
|\
| * tweakDavid Carlier2019-05-221-2/+5
| |
| * Providing little getauxval implementation for Android<18David Carlier2019-05-211-3/+23
| | | | | | | | tested with armv7 and ndk 16.
* | add --boost-library-name configure optionRené Meusel2019-05-221-2/+1
|/
* OpenBSD MAP_CONCEAL new flag supportDavid Carlier2019-05-151-0/+4
|
* Fix some warnings with Clang 8Jack Lloyd2019-05-082-5/+4
| | | | | | Notably several from the new -Wdefaulted-function-deleted Also remove some compat macro checks for MSVC 2013
* append .lib suffix for boost on windowsTim Oesterreich2019-05-071-1/+2
|
* Merge GH #1839 Add TLS asio stream wrapperJack Lloyd2019-05-012-0/+61
|\
| * review: unit tests and public api versionHannes Rantzsch2019-04-291-1/+2
| |
| * use ErrorType instead of TLS::error and remove convert_exceptions headerHannes Rantzsch2019-04-232-0/+60
| |
* | Document get_auxvalJack Lloyd2019-04-231-1/+9
| |
* | Warning compile fix for OpenBSDDavid Carlier2019-04-231-0/+1
| |
* | Fix some Doxygen errorsJack Lloyd2019-04-221-2/+2
| |
* | Avoid C++ style comments in headers that may be parsed as CJack Lloyd2019-04-191-2/+2
| | | | | | | | | | Also remove the TLS declarations from ffi.h for now since that isn't supported at all.
* | Make the ISA list a listJack Lloyd2019-04-171-1/+3
| |
* | Provides auxiliary vector support for FreeBSD.David Carlier2019-04-154-13/+24
|/ | | | somewhat similar to Linux's counterpart but mainly for cpu features.
* Fix a few warnings in Boost specific codeJack Lloyd2019-04-131-1/+1
|
* Remove tab charactersJack Lloyd2019-04-101-2/+2
|
* Using available cores rather than total for the pools.David Carlier2019-04-073-1/+38
| | | | | | Issue with the C++ api it might not reflect the reality of the H/W, and on Android, in battery saving mode for example, might be more reasonable to use what the system really offers.
* Add some more todos for Memory_PoolJack Lloyd2019-03-281-0/+20
|
* Merge GH #1864 Use thread pool for XMSS signaturesJack Lloyd2019-03-281-0/+2
|\
| * Use the global thread pool for XMSS signaturesJack Lloyd2019-03-261-0/+2
| | | | | | | | | | | | | | * i7-6700K (4 core w/SMT): 10% improvements * Ryzen 7 2700 (8 core w/SMT): 25% improvement except SHA-256 which is over twice as fast. * POWER8 (160 cores w/SMT): between 25 and 60% faster
* | Rename 'darwin' target to 'macos'Jack Lloyd2019-03-274-9/+9
|/ | | | | Both because that's the more common term, and because iOS/watchOS also uses the Darwin kernel, but we have a distinct target for mobile.
* Avoid a warning when building in single file amalgamation modeJack Lloyd2019-03-131-1/+1
|
* Fix Coverity warningsJack Lloyd2019-03-072-20/+38
| | | | | | | | Checking a ptr against null after dereferencing it. Allowing exception throw to escape a noexcept function. Both harmless.
* Prevent a warning with old GCCJack Lloyd2019-02-271-4/+5
| | | | GCC 4.8 seems to dislike returns_nonnull attribute, GCC 5 is ok.
* Add additional annotations for malloc functionsJack Lloyd2019-02-171-1/+1
| | | | May help codegen slightly.
* Build fixes for GNU/HurdJack Lloyd2019-02-041-0/+1
| | | | Thanks to @noloader for testing this and the relevant info.
* Merge GH #1819 Add Thread_Pool and use it for running testsJack Lloyd2019-01-315-14/+212
|\
| * Add a thread poolJack Lloyd2019-01-315-14/+212
| |
* | Have set_mem only work for bytesJack Lloyd2019-01-311-4/+3
|/ | | | It is (mildly) dangerous with larger types, and we don't need it.
* Refactor CPUID to make it thread safeJack Lloyd2019-01-306-48/+76
| | | | | | | | | | Needed for #1819 and unfortunately Windows does not allow thread local data to be stored as a member of a DLL exported class. So hide it behind an accessor function instead. This slows down CPUID test somewhat and I would like to address that but it seems hard without breaking the CPUID API, which is for better or worse public.
* Compile fixJack Lloyd2019-01-302-2/+2
|
* Use std::mutex instead of mutex_type hereJack Lloyd2019-01-304-8/+8
| | | | | std::condition_variable only works with std::mutex anyway, and this module is not enabled on systems without threads.
* Make the Memory_Pool MMU operations a compile time optionJack Lloyd2019-01-221-4/+16
| | | | | | Previously the calls were commented out as this has a substantial performance impact. Allow enabling them via a build.h toggle, and enable it by default when debug asserts are turned on.
* Rename Integrity_Failure to Invalid_Authentication_TagJack Lloyd2019-01-182-5/+22
| | | | | | | | | This makes the meaning and usage more clear. Add a specific error type so invalid tags can be distinguished without having to catch that specific type. See also #1813
* Remove use of std::filesystem / boost::filesystemJack Lloyd2019-01-172-69/+8
| | | | | | | | | Boost doesn't buy us anything here since we need to maintain Win32 and POSIX implementations for non-Boost builds, and Boost only supports those two APIs anyway. MSVC's implementation of std::filesystem does not help for similar reasons, as we have to maintain a Win32 version for MinGW.
* Define BOTAN_IF_CONSTEXPRJack Lloyd2019-01-174-8/+25
| | | | This lets us avoid some warnings under VC++ 2017
* Merge GH #1808 Add sandbox feature to CLIJack Lloyd2019-01-141-0/+1
|\
| * Sandboxing feature from CLI pov.David Carlier2019-01-142-24/+0
| | | | | | | | | | No resources to free with actual OS features but might be of use for later.
| * Proposal of sandboxing feature.David Carlier2019-01-062-0/+25
| | | | | | | | For now only used by the TLS server.
* | Remove unused fieldsJack Lloyd2019-01-131-3/+0
| |
* | Remove trailing whitespaceJack Lloyd2019-01-131-1/+1
|/
* Revert #1798Jack Lloyd2019-01-051-4/+14
| | | | | | | | The problem in #602 is not the use of mmap but the use of mmap with MAP_SHARED. Using MAP_PRIVATE creates a CoW mapping just like malloc or posix_memalign would. I'm not sure why it took me so long to figure this out ...
* Add a fast range check and inline some thingsJack Lloyd2019-01-052-78/+89
|
* Split up allocations into pagesJack Lloyd2019-01-056-169/+188
|