Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | unit-tests: Updated asn1-parser tests | Andreas Steffen | 2017-05-29 | 1 | -1/+105 |
| | |||||
* | linked-list: Change return value of find_first() and signature of its callback | Tobias Brunner | 2017-05-26 | 1 | -15/+66 |
| | | | | This avoids the unportable five pointer hack. | ||||
* | linked-list: Change interface of callback for invoke_function() | Tobias Brunner | 2017-05-26 | 1 | -3/+7 |
| | | | | This avoids the unportable five pointer hack. | ||||
* | linked-list: invoke_offset() doesn't take any additional arguments anymore | Tobias Brunner | 2017-05-26 | 1 | -9/+11 |
| | |||||
* | Change interface for enumerator_create_filter() callback | Tobias Brunner | 2017-05-26 | 1 | -15/+35 |
| | | | | | This avoids the unportable 5 pointer hack, but requires enumerating in the callback. | ||||
* | unit-tests: Fix test_chunk_eq() if arguments have side-effects | Tobias Brunner | 2017-05-24 | 1 | -1/+1 |
| | |||||
* | utils: chunk_from_hex() skips optional 0x prefix | Andreas Steffen | 2017-03-06 | 1 | -10/+11 |
| | |||||
* | host: Don't log port if it is zero | Tobias Brunner | 2017-03-02 | 1 | -5/+5 |
| | |||||
* | traffic-selector: Allow calling set_address() for any traffic selector | Tobias Brunner | 2017-02-27 | 1 | -2/+10 |
| | | | | | Users may check is_host(), is_dynamic() or includes() before calling this if restrictions are required (most actually already do). | ||||
* | unit-tests: Allow default test timeout to be configured via compile option | Thomas Egerer | 2017-02-14 | 1 | -0/+2 |
| | | | | Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com> | ||||
* | Moved Ed25519 tests to libstrongswan | Andreas Steffen | 2016-12-14 | 3 | -1/+531 |
| | |||||
* | unit-tests: Completed coverage of hasher, crypter and libnttfft | Andreas Steffen | 2016-12-14 | 2 | -34/+47 |
| | |||||
* | gmp: Support of SHA-3 RSA signatures | Andreas Steffen | 2016-09-22 | 4 | -44/+55 |
| | |||||
* | unit-tests: MGF1 tests depend on an XOF implementation not just a hash function | Tobias Brunner | 2016-09-21 | 1 | -2/+2 |
| | | | | | If the mgf1 plugin was not enabled (e.g. with the default configure options) the tests failed. | ||||
* | mgf1: Refactored MGF1 as an XOF | Andreas Steffen | 2016-09-21 | 2 | -43/+61 |
| | |||||
* | unit-tests: Defining TESTS_RUNNERS allows to only run specific test runners | Tobias Brunner | 2016-06-17 | 2 | -1/+33 |
| | |||||
* | configure: Check for and explicitly link against -latomic | Martin Willi | 2016-06-14 | 1 | -1/+1 |
| | | | | | Some C libraries, such as uClibc, require an explicit link for some atomic functions. Check for any libatomic, and explcily link it. | ||||
* | chunk: Skip all leading zero bytes in chunk_skip_zero() not just the first | Tobias Brunner | 2016-04-04 | 1 | -12/+16 |
| | |||||
* | string: Gracefully handle NULL in str*eq() macros | Tobias Brunner | 2016-04-04 | 1 | -0/+78 |
| | |||||
* | Use standard unsigned integer types | Andreas Steffen | 2016-03-24 | 11 | -78/+78 |
| | |||||
* | Implemented IPv4/IPv6 subnet and range identities | Andreas Steffen | 2016-03-10 | 1 | -48/+207 |
| | | | | | | The IKEv1 IPV4_ADDR_SUBNET, IPV6_ADDR_SUBNET, IPV4_ADDR_RANGE and IPV6_ADDR_RANGE identities have been fully implemented and can be used as owners of shared secrets (PSKs). | ||||
* | linked-list: Add method to compare two lists of objects for equality | Tobias Brunner | 2016-03-08 | 1 | -0/+91 |
| | |||||
* | auth-cfg: Make IKE signature schemes configurable | Tobias Brunner | 2016-03-04 | 3 | -0/+124 |
| | | | | | | This also restores the charon.signature_authentication_constraints functionality, that is, if no explicit IKE signature schemes are configured we apply all regular signature constraints as IKE constraints. | ||||
* | unit-tests: The pseudonym RDN is now recognized, so use something more exotic | Tobias Brunner | 2016-01-28 | 1 | -3/+3 |
| | |||||
* | array: Add an insert/create function for value based arrays | Martin Willi | 2015-12-07 | 1 | -0/+43 |
| | |||||
* | settings: Add settings_value_as_uint64() helper function | Tobias Brunner | 2015-11-11 | 1 | -0/+24 |
| | |||||
* | traffic-selector: Don't end printf'ed list of traffic selectors with a space | Tobias Brunner | 2015-11-10 | 1 | -3/+3 |
| | |||||
* | testing: Updated hasher tests | Andreas Steffen | 2015-11-06 | 1 | -0/+75 |
| | |||||
* | Explicitly mention SHA2 algorithm in BLISS OIDs and signature schemes | Andreas Steffen | 2015-11-06 | 2 | -30/+38 |
| | |||||
* | unit-tests: Add a test to verify that there is no partial matching of RDNs | Tobias Brunner | 2015-09-09 | 1 | -0/+1 |
| | |||||
* | Fixed some typos, courtesy of codespell | Tobias Brunner | 2015-08-27 | 1 | -1/+1 |
| | |||||
* | unit-tests: Additional test cases to increase coverage | Tobias Brunner | 2015-08-27 | 2 | -9/+611 |
| | |||||
* | identification: Add hash() method | Tobias Brunner | 2015-08-06 | 1 | -1/+90 |
| | | | | | | | Compared to hashing the encoding we can ignore string types of RDNs when hashing DNs, making hash() compatible to equals() that does the same. Fixes #991. | ||||
* | unit-tests: Add unit tests for settings_t.load_string[_section] | Tobias Brunner | 2015-07-28 | 1 | -8/+113 |
| | |||||
* | settings: Add support for multi-line strings | Tobias Brunner | 2015-07-28 | 1 | -8/+17 |
| | | | | Unterminated strings are now an error. | ||||
* | host: Properly handle NULL in host_create_from_string[_and_family] | Tobias Brunner | 2015-07-27 | 1 | -0/+6 |
| | |||||
* | unit-tests: Increase failure message buffer to hold larger hex dumps | Martin Willi | 2015-07-12 | 2 | -2/+2 |
| | |||||
* | unit-tests: Forward variable argument list in TEST_SUITE_DEPEND | Martin Willi | 2015-07-12 | 1 | -2/+2 |
| | | | | | For some plugin features, such as crypters or AEADs, we have some additional feature arguments, such as the key size. | ||||
* | unit-tests: Add tests for iv_gen_seq_t | Tobias Brunner | 2015-06-05 | 3 | -0/+75 |
| | |||||
* | unit-tests: Further increase the test vector testing timeout | Martin Willi | 2015-04-16 | 1 | -1/+1 |
| | | | | Some build bots running make check seem to have longer for the DH testing. | ||||
* | unit-tests: Set test verbosity just after test suite loading | Martin Willi | 2015-04-15 | 1 | -10/+9 |
| | | | | | | We see any plugin startup messages during suite configuration, where initialization is called once to query plugin features. No need to be verbose and show these messages once again in the first test. | ||||
* | unit-tests: Use progressive testing of transforms with test vectors | Martin Willi | 2015-04-15 | 1 | -7/+26 |
| | | | | | | This allows us to show which transform from which plugin failed. Also, we use the new cleanup handler functionality that allows proper deinitialization on failure or timeout. | ||||
* | enum-names: Fail gracefully when passing a NULL value as enum names | Martin Willi | 2015-04-15 | 1 | -0/+10 |
| | |||||
* | unit-tests: Invoke all registered thread cleanup handlers on test failure | Martin Willi | 2015-04-15 | 1 | -0/+3 |
| | | | | | | | | | | | If a test fails in a timeout or a test failure, longjmp() is used to restore the thread context and handle test failure. However, there might be unreleased resources, namely locks, which prevent the library to clean up properly after finishing the test. By using thread cleanup handlers, we can release any test subject internal or test specific external resources on test failure. We do so by calling all registered cleanup handlers. | ||||
* | thread: Add a function to pop and call all registered cleanup handlers | Martin Willi | 2015-04-15 | 1 | -0/+31 |
| | |||||
* | unit-tests: Add a TESTS_PLUGINS environment variable | Martin Willi | 2015-04-15 | 2 | -1/+6 |
| | | | | This is often more convenient than specifying plugins in a configuration file. | ||||
* | unit-tests: Use a larger timeout for test vector testing | Martin Willi | 2015-04-15 | 1 | -0/+1 |
| | | | | | As we test DH calculations this now takes more time. If multiple DH backends are enabled, we likely hit the default test timeout. | ||||
* | unit-tests: Pass stringyfied assertion statement as non-format string argument | Martin Willi | 2015-04-15 | 1 | -3/+3 |
| | | | | | | If the assertion contains a modulo (%) operation, test_fail_msg() handles this as printf() format specifier. Pass the assertion string as argument for an explicit "%s" in the format string, instead. | ||||
* | utils: Add malloc/free wrappers returning aligned data | Martin Willi | 2015-04-15 | 1 | -0/+39 |
| | | | | | | | | | | | | | While we could use posix_memalign(3), that is not fully portable. Further, it might be difficult on some platforms to properly catch it in leak-detective, which results in invalid free()s when releasing such memory. We instead use a simple wrapper, which allocates larger data, and saves the padding size in the allocated header. This requires that memory is released using a dedicated function. To reduce the risk of invalid free() when working on corrupted data, we fill up all the padding with the padding length, and verify it during free_align(). | ||||
* | utils: Add a constant time chunk_equals() variant for cryptographic purposes | Martin Willi | 2015-04-14 | 1 | -0/+27 |
| |