aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/tests
Commit message (Collapse)AuthorAgeFilesLines
* unit-tests: Defining TESTS_RUNNERS allows to only run specific test runnersTobias Brunner2016-06-172-1/+33
|
* configure: Check for and explicitly link against -latomicMartin Willi2016-06-141-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 firstTobias Brunner2016-04-041-12/+16
|
* string: Gracefully handle NULL in str*eq() macrosTobias Brunner2016-04-041-0/+78
|
* Use standard unsigned integer typesAndreas Steffen2016-03-2411-78/+78
|
* Implemented IPv4/IPv6 subnet and range identitiesAndreas Steffen2016-03-101-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 equalityTobias Brunner2016-03-081-0/+91
|
* auth-cfg: Make IKE signature schemes configurableTobias Brunner2016-03-043-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 exoticTobias Brunner2016-01-281-3/+3
|
* array: Add an insert/create function for value based arraysMartin Willi2015-12-071-0/+43
|
* settings: Add settings_value_as_uint64() helper functionTobias Brunner2015-11-111-0/+24
|
* traffic-selector: Don't end printf'ed list of traffic selectors with a spaceTobias Brunner2015-11-101-3/+3
|
* testing: Updated hasher testsAndreas Steffen2015-11-061-0/+75
|
* Explicitly mention SHA2 algorithm in BLISS OIDs and signature schemesAndreas Steffen2015-11-062-30/+38
|
* unit-tests: Add a test to verify that there is no partial matching of RDNsTobias Brunner2015-09-091-0/+1
|
* Fixed some typos, courtesy of codespellTobias Brunner2015-08-271-1/+1
|
* unit-tests: Additional test cases to increase coverageTobias Brunner2015-08-272-9/+611
|
* identification: Add hash() methodTobias Brunner2015-08-061-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 Brunner2015-07-281-8/+113
|
* settings: Add support for multi-line stringsTobias Brunner2015-07-281-8/+17
| | | | Unterminated strings are now an error.
* host: Properly handle NULL in host_create_from_string[_and_family]Tobias Brunner2015-07-271-0/+6
|
* unit-tests: Increase failure message buffer to hold larger hex dumpsMartin Willi2015-07-122-2/+2
|
* unit-tests: Forward variable argument list in TEST_SUITE_DEPENDMartin Willi2015-07-121-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_tTobias Brunner2015-06-053-0/+75
|
* unit-tests: Further increase the test vector testing timeoutMartin Willi2015-04-161-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 loadingMartin Willi2015-04-151-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 vectorsMartin Willi2015-04-151-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 namesMartin Willi2015-04-151-0/+10
|
* unit-tests: Invoke all registered thread cleanup handlers on test failureMartin Willi2015-04-151-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 handlersMartin Willi2015-04-151-0/+31
|
* unit-tests: Add a TESTS_PLUGINS environment variableMartin Willi2015-04-152-1/+6
| | | | This is often more convenient than specifying plugins in a configuration file.
* unit-tests: Use a larger timeout for test vector testingMartin Willi2015-04-151-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 argumentMartin Willi2015-04-151-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 dataMartin Willi2015-04-151-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 purposesMartin Willi2015-04-141-0/+27
|
* utils: Add a constant time memeq() variant for cryptographic purposesMartin Willi2015-04-141-0/+47
|
* diffie-hellman: Add a bool return value to set_other_public_value()Martin Willi2015-03-231-7/+7
|
* diffie-hellman: Add a bool return value to get_my_public_value()Martin Willi2015-03-231-11/+11
|
* diffie-hellman: Use bool instead of status_t as get_shared_secret() return valueMartin Willi2015-03-231-7/+4
| | | | | While such a change is not unproblematic, keeping status_t makes the API inconsistent once we introduce return values for the public value operations.
* unit-tests: Fix settings test after merging multi-line stringsTobias Brunner2015-03-231-2/+2
|
* unit-tests: Depend on SHA1/SHA256 features for mgf1 test casesMartin Willi2015-03-232-5/+16
|
* public-key: Add helper to determine acceptable signature schemes for keysTobias Brunner2015-03-041-1/+44
|
* enum: Extend printf hook to print flagsThomas Egerer2015-03-031-2/+164
| | | | Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
* unit-tests: Don't fail host_create_from_dns() test if IPv6 not supportedMartin Willi2015-03-021-4/+10
| | | | | On some systems, such as the Ubuntu daily build machine, localhost does not resolve to an IPv6 address. Accept such a lookup failure.
* Allow SHA256 and SHA384 data hash for BLISS signatures.Andreas Steffen2015-02-261-0/+3
| | | | | The default is SHA512 since this hash function is also used for the c_indices random oracle.
* unit-tests: Add host_create_from_dns() test cases resolving "localhost"Martin Willi2015-02-241-0/+42
|
* unit-tests: Accept numerical protocol/port numbers in traffic selector testsMartin Willi2015-02-231-11/+16
|
* unit-tests: Add an initial set of traffic selector unit testsMartin Willi2015-02-203-0/+281
|
* unit-tests: Adapted to coverity fixesAndreas Steffen2014-12-231-3/+15
|
* Implemented get_byte() method for mgf1_bitspender classAndreas Steffen2014-11-291-6/+16
| | | | | | The new get_byte() method returns a pseudo-random byte at a time. Changed the get_bits() interface to the same interface as get_byte(). Updated the mgf1 unit-tests accordingly.