Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | array: Add array_bsearch function | Tobias Brunner | 2014-02-12 | 3 | -0/+141 | |
| | ||||||
* | array: Add array_sort function | Tobias Brunner | 2014-02-12 | 3 | -1/+167 | |
| | ||||||
* | lib: All settings use configured namespace | Tobias Brunner | 2014-02-12 | 23 | -54/+54 | |
| | ||||||
* | lib: Add default config fallback for configured namespace | Tobias Brunner | 2014-02-12 | 1 | -0/+3 | |
| | | | | All settings in the configured global namespace fall back to libstrongswan. | |||||
* | unit-tests: Test how settings_t handles some invalid data | Tobias Brunner | 2014-02-12 | 1 | -0/+72 | |
| | ||||||
* | settings: Add method that allows to define fallback sections for other sections | Tobias Brunner | 2014-02-12 | 3 | -13/+276 | |
| | | | | | The fallbacks are currently only used for single value lookups. Enumerators are not affected by them. | |||||
* | settings: Make print_key() not rely on null-terminated beginning of key buffer | Tobias Brunner | 2014-02-12 | 1 | -10/+5 | |
| | | | | | The key to print (e.g. until the next .) still has to be null-terminated. | |||||
* | unit-tests: Add tests for includes and file loading in settings_t | Tobias Brunner | 2014-02-12 | 1 | -0/+149 | |
| | ||||||
* | settings: Allow empty strings in section key | Tobias Brunner | 2014-02-12 | 2 | -23/+33 | |
| | ||||||
* | unit-tests: Add tests for enumerators in settings_t | Tobias Brunner | 2014-02-12 | 1 | -0/+148 | |
| | ||||||
* | unit-tests: Add tests for setters in settings_t | Tobias Brunner | 2014-02-12 | 1 | -0/+109 | |
| | ||||||
* | unit-tests: Add basic tests for settings_t | Tobias Brunner | 2014-02-12 | 3 | -0/+319 | |
| | ||||||
* | lib: Add global config namespace | Tobias Brunner | 2014-02-12 | 3 | -5/+19 | |
| | ||||||
* | asn1: Support dates before 1970-01-01 (i.e. when time_t gets negative) | Tobias Brunner | 2014-02-12 | 3 | -4/+29 | |
| | | | | | | On x86 we allow "overflows" around 1969/1970 but not for other dates. Fixes #509. | |||||
* | asn1: Add additional validation for parsed ASN.1 date/time values | Tobias Brunner | 2014-02-12 | 2 | -1/+20 | |
| | ||||||
* | identification: Fix printing of empty RDNs on FreeBSD | Tobias Brunner | 2014-02-12 | 1 | -1/+6 | |
| | | | | On FreeBSD (null) is printed for NULL even if the precision is 0. | |||||
* | tests: Fix test for printing NULL on FreeBSD | Tobias Brunner | 2014-02-12 | 1 | -2/+13 | |
| | ||||||
* | unit-tests: added asn1_parser tests | Andreas Steffen | 2014-02-10 | 3 | -0/+293 | |
| | ||||||
* | unit-tests: added some more ASN.1 length tests | Andreas Steffen | 2014-02-10 | 1 | -0/+13 | |
| | ||||||
* | leak_detective: Assign return value of realloc to buf | Thomas Egerer | 2014-02-10 | 1 | -1/+1 | |
| | | | | | | | If realloc return a pointer value different from the value to be reallocated, a double free can occur in this context. Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com> | |||||
* | rdrand: Provide get_features() regardless of RDRAND availability | Martin Willi | 2014-02-10 | 1 | -6/+6 | |
| | | | | | As having no get_features() raises a deprecated warning, we return no features instead. | |||||
* | rdrand: Move RDRAND detection log to level 2 | Martin Willi | 2014-02-10 | 1 | -2/+2 | |
| | | | | | When having RDRAND support, these log messages might be confusing when using pki or other tools. | |||||
* | unit-tests: Add some test cases for HTTP GET/POST fetches | Martin Willi | 2014-01-31 | 3 | -1/+275 | |
| | ||||||
* | unit-tests: Fix test_runner_run() apidoc | Martin Willi | 2014-01-29 | 1 | -1/+1 | |
| | ||||||
* | pem: Use chunk_map() instead of non-portable mmap() | Martin Willi | 2014-01-23 | 1 | -29/+6 | |
| | ||||||
* | integrity-checker: Use chunk_map() instead of non-portable mmap() | Martin Willi | 2014-01-23 | 1 | -31/+6 | |
| | ||||||
* | chunk: Externalize error reporting in chunk_write() | Martin Willi | 2014-01-23 | 3 | -13/+11 | |
| | | | | | This avoids passing that arbitrary label just for error messages, and gives greater flexibility in handling errors. | |||||
* | chunk: Provide a fallback chunk_map() if mmap is not available | Martin Willi | 2014-01-23 | 1 | -1/+46 | |
| | ||||||
* | chunk: Use dynamically allocated buffer in chunk_from_fd() | Martin Willi | 2014-01-23 | 3 | -14/+130 | |
| | | | | | | | | When acting on files, we can use fstat() to estimate the buffer size. On non-file FDs, we dynamically increase an allocated buffer. Additionally we slightly change the function signature to properly handle zero-length files and add appropriate unit tests. | |||||
* | chunk: Add functions to map file contents to a chunk | Martin Willi | 2014-01-23 | 3 | -1/+149 | |
| | ||||||
* | curl: Replace spaces in URIs with %20 | Tobias Brunner | 2014-01-23 | 1 | -3/+14 | |
| | | | | | | | cURL requires the URIs to be URL-encoded. Apparently, some CAs encode CRL URIs with spaces in them. Fixes #454. | |||||
* | utils: Add strreplace function | Tobias Brunner | 2014-01-23 | 3 | -2/+155 | |
| | ||||||
* | agent: Keep CAP_DAC_OVERRIDE to connect to ssh-agent socket | Tobias Brunner | 2014-01-23 | 3 | -2/+10 | |
| | | | | This is also required if charon-cmd is used with capability dropping. | |||||
* | unit-tests: Pass a test suite collection name to print during test execution | Martin Willi | 2014-01-22 | 3 | -8/+11 | |
| | | | | | As we except to get more and more test runners for the different components, we add a name to easily identify them on the test output. | |||||
* | array: Add an array_get() function | Martin Willi | 2014-01-22 | 3 | -3/+44 | |
| | ||||||
* | watcher: Don't complain if select() syscall got interrupted | Martin Willi | 2014-01-22 | 1 | -1/+1 | |
| | ||||||
* | stream: Make sure no watcher callback is active while changing stream callbacks | Martin Willi | 2014-01-22 | 1 | -14/+3 | |
| | | | | | | | | | | | When changing async callbacks on streams, we have to make sure the watcher callback is not currently active and has temporarily disabled callbacks. This could have been the case, as we didn't explicitly removed any pending watcher registration if both callbacks are NULL. By enforcing the watcher unregistration, we are sure the watcher callback is not active and currently is not mangling the callback hooks. This should make sure we avoid any races for the callback variables. | |||||
* | proposal: Add possibility to register custom proposal keyword parser | Thomas Egerer | 2014-01-20 | 2 | -2/+66 | |
| | | | | | | | | | If a proposal string cannot be matched to a token using strcmp (e.g. if you want to register a whole class of algorithms containing their ID, like my_alg_2342), you can use the provided function to register a parser that transforms the given string into a proposal token. Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com> | |||||
* | unit-tests: Add environment variable to reduce the number of generated keys | Tobias Brunner | 2014-01-20 | 2 | -2/+14 | |
| | | | | | | | If TESTS_REDUCED_KEYLENGTHS is set RSA and ECDSA keys are only generated for the lowest configured key length. Fixes #474. | |||||
* | unit-tests: Generate RSA key with 768 bits not 786 | Tobias Brunner | 2014-01-20 | 1 | -1/+1 | |
| | ||||||
* | printf-hook-builtin: Correctly calculate written bytes in print_in_hook() | Martin Willi | 2014-01-15 | 1 | -3/+7 | |
| | | | | | | | | | | The hook data counts remaining buffer bytes, not used ones. Counting them correctly fixes a crash for long hexdumps. Further, print_in_hook() must return the number of bytes that would have been written, not the actually written bytes. This is important, as we allocate a dynamic buffer in bus that relies on the exact byte count. Fixes long hexdumps that got truncated. | |||||
* | test-asn1: Fix skipping of >2038 tests on i386 | Tobias Brunner | 2014-01-06 | 1 | -35/+35 | |
| | | | | | | | | The two constants overflow time_t on i386 (they also produced a compiler warning without type suffix) so the comparison with TIME_32_BIT_SIGNED_MAX did not work as intended. Fixes #477. | |||||
* | chunk: Fix chunk_mac/hash tests on big-endian systems | Tobias Brunner | 2014-01-06 | 1 | -2/+27 | |
| | | | | | | | | Our SipHash-2-4 implementation returns the result in host order, while the test vectors are little-endian. Use a custom comparison function to account for this. Fixes #478. | |||||
* | utils: Fix %T printf hook on big-endian systems | Tobias Brunner | 2014-01-06 | 1 | -1/+1 | |
| | | | | | | | | The cast to a bool* cut of the actual value on big-endian systems if bool was shorter than int because the bool argument to printf gets promoted to an int. Fixes #479. | |||||
* | tun-device: Include system headers before our own | Tobias Brunner | 2013-12-20 | 2 | -3/+5 | |
| | | | | | | | | | | | | | On CentOS 6.5 the sys/capability.h header file defines _LINUX_TYPES_H without actually including that header, preventing its later inclusion here. As library.h (via which the capabilities headers are included) is not actually required in tun_device.[ch], moving the inclusion of tun_device.h would not strictly be necessary. But it's probably a good idea to include our own headers after system headers anyway, for if one of the recursively included files at a later point includes library.h we'd have the same problem again. | |||||
* | unit-tests: NTRU test to check a special branch | Andreas Steffen | 2013-12-08 | 1 | -0/+7 | |
| | ||||||
* | min_MGF_hash_calls parameter is not needed anymore | Andreas Steffen | 2013-12-07 | 2 | -18/+0 | |
| | ||||||
* | Optimized MGF1 implementation | Andreas Steffen | 2013-12-07 | 1 | -8/+13 | |
| | ||||||
* | Implemented ntru_trits class | Andreas Steffen | 2013-12-07 | 9 | -293/+383 | |
| | ||||||
* | Streamlined DRBG and MGF1 debug output | Andreas Steffen | 2013-12-07 | 3 | -14/+20 | |
| |