aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/tests/suites
Commit message (Collapse)AuthorAgeFilesLines
* process: Add a wrapper to invoke a command under the system default shellMartin Willi2014-10-061-0/+16
|
* process: Port child process spawning to the Windows platformMartin Willi2014-10-061-0/+32
|
* process: Provide an abstraction to spawn child processes with redirected I/OMartin Willi2014-10-061-0/+173
|
* unit-tests: Give worker threads time to clean up when testing thread_t.detach()Tobias Brunner2014-09-091-2/+4
|
* chunk: Add function to calculate Internet Checksums according to RFC 1071Tobias Brunner2014-07-221-0/+49
|
* settings: Allow spaces in time settings before the optional unitMartin Willi2014-07-071-2/+2
|
* settings: Be more strict in converting settings to specific data typesMartin Willi2014-07-071-20/+15
| | | | | | | As the behavior was inconsistent for empty strings or strings with characters appended to a number, testing the code failed on some platforms. The new rules are more strict, returning the default if additional characters or an empty string was found for a setting.
* unit-tests: Add tests for DH factoryTobias Brunner2014-06-201-0/+157
|
* unit-tests: Add test for crypto_factory_t's rng_create methodTobias Brunner2014-06-201-0/+155
|
* identification: Only use either , or / to separate RDNsTobias Brunner2014-06-181-4/+4
| | | | | If a DN starts with a slash (or whitespace and a slash) slashes will be used, otherwise commas.
* unit-tests: Zero-initialize chunk to avoid free on non-successful fetchMartin Willi2014-06-041-1/+1
| | | | | If the fetch fails, the fetcher is not required to return an empty chunk. Avoid the resulting invalid free() by initializing data.ptr to NULL.
* unit-tests: Force a CET/CEST timezone Windows understandsMartin Willi2014-06-041-0/+4
| | | | | | As it is currently unclear what the "three-letter-timezone" for CEST is, we use the German timezone, which actually is CET/CEST. SetEnvironmentVariable() "TZ" does not seem to affect localtime(), so we use _putenv() instead.
* unit-tests: Adapt settings tests for WindowsMartin Willi2014-06-041-2/+13
|
* utils: Provide a path_absolute() function to check path for non-relativenessMartin Willi2014-06-041-38/+53
| | | | The usually used trivial '/' check won't work on Windows platforms.
* utils: Support Windows path separators in path_basename/dirnameMartin Willi2014-06-041-0/+19
|
* windows: Provide a sched_yield() implementationMartin Willi2014-06-042-2/+0
|
* unit-tests: Don't test Unix socket stream/services on WindowsMartin Willi2014-06-041-1/+2
|
* unit-tests: Use send/recv on socket in watcher testsMartin Willi2014-06-041-4/+4
| | | | Windows does not support read/write on sockets.
* unit-tests: Use Windows path for chunk tests, and socket functions if requiredMartin Willi2014-06-041-2/+10
|
* unit-tests: Don't depend on sockaddr_un to test invalid host_t familyMartin Willi2014-06-041-2/+2
|
* unit-tests: Sync threads with main thread in test_cleanup_cancel()Tobias Brunner2014-05-191-0/+5
| | | | | Without synchronization threads could get canceled before they could disable their cancelability.
* unit-tests: Allow some HTTP write operations to failTobias Brunner2014-05-191-7/+12
| | | | | | Because CURLOPT_FAILONERROR is enabled in the curl plugin an error code will often (not always) cause the client to close the TCP connection before the server has written the complete response.
* unit-tests: Add a test case for HTTP response codesTobias Brunner2014-05-191-8/+57
|
* unit-tests: Don't assert failures for unreadable settings files as rootTobias Brunner2014-05-161-5/+8
| | | | The file can still be read by root even if nobody has read privileges.
* enum: Return boolean result for enum_from_name() lookupMartin Willi2014-05-161-21/+30
| | | | | | | | | | | Handling the result for enum_from_name() is difficult, as checking for negative return values requires a cast if the enum type is unsigned. The new signature clearly differentiates lookup result from lookup value. Further, this actually allows to convert real -1 enum values, which could not be distinguished from "not-found" and the -1 return value. This also fixes several clang warnings where enums are unsigned.
* enum: Don't directly include enum.hMartin Willi2014-05-161-1/+0
| | | | | To allow enum.h to depend on utils.h definitions, avoid its direct inclusion. Instead include utils.h, which includes enum.h as well.
* settings: Adopt the new order of sections and settings when replacing configsTobias Brunner2014-05-151-1/+83
|
* settings: Only purge sections if necessaryTobias Brunner2014-05-151-0/+29
| | | | | Instead of removing and caching all values of a previous config, we only do this for actually removed sections/settings.
* settings: Maintain order of sections and settings while enumeratingTobias Brunner2014-05-151-57/+24
|
* settings: Don't overwrite values in-placeTobias Brunner2014-05-151-7/+16
| | | | | | | This is not thread safe. If threads are reading from pointers to existing values they could get a partially updated invalid value. Refactored assignment to a separate function.
* unit-tests: Update settings tests to match new parserTobias Brunner2014-05-151-59/+124
| | | | | Empty settings are now ignored, strings are supported, newlines are handled properly (e.g. at the end of files) etc.
* settings: Move to a separate folderTobias Brunner2014-05-151-1/+1
|
* unit-tests: Silence a literal signedness warning raised by GCC 4.6.3Martin Willi2014-04-301-2/+2
|
* unit-tests: Verify two bytes at once when testing chunk_clear()Tobias Brunner2014-04-021-3/+6
| | | | | This reduces the chances of arbitrary test failures if the memory area already got overwritten.
* unit-tests: Fix filtered enumerator tests on 64-bit big-endian platformsTobias Brunner2014-03-271-12/+12
| | | | | In case of sizeof(void*) == 8 and sizeof(int) == 4 on big-endian hosts the tests failed as the actual integer value got cut off.
* unit-tests: Fix memory leak in ntru testsTobias Brunner2014-03-271-3/+5
|
* unit-test: added missing TEST_FUNCTION macrosAndreas Steffen2014-03-221-8/+16
|
* Completed integration of ntru_crypto library into ntru pluginAndreas Steffen2014-03-221-4/+62
|
* unit-tests: Actually verify registered algorithms against test vectorsTobias Brunner2014-03-201-4/+9
| | | | | | | | Previously, the {ns}.crypto_test.on_add option had to be enabled to actually test the algorithms, which we can't enforce for the tests in the test_runner as the option is already read when the crypto factory is initialized. Even so, we wouldn't want to do this for every unit test, which would be the result of enabling that option.
* unit-tests: Use TEST_FUNCTION macro in ntru testsTobias Brunner2014-03-201-34/+44
|
* unit-tests: Call functions with TEST_ prefix in ntru testTobias Brunner2014-03-201-36/+38
|
* Implemented ntru_private_key classAndreas Steffen2014-03-181-40/+344
|
* Added get_array() method to ntru_poly_t classAndreas Steffen2014-02-271-1/+33
|
* Defined ntru_poly_create_from_seed() and ntru_poly_create_from_data() ↵Andreas Steffen2014-02-271-7/+120
| | | | constructors and built some unit tests for the latter)
* Implement ring multiplication methodAndreas Steffen2014-02-271-14/+17
|
* utils: Add memrchr(3) replacement for platforms that don't support itTobias Brunner2014-02-261-0/+44
| | | | For instance, on Mac OS X memrchr(3) is not provided by the C library.
* utils: Add thread-safe variants of dirname(3) and basename(3)Tobias Brunner2014-02-241-0/+56
|
* index limit can be easily computedAndreas Steffen2014-02-191-12/+10
|
* Created ntru_poly class for sparse trinary polynomialsAndreas Steffen2014-02-181-6/+120
|
* settings: Add support to enumerate sections and key/value pairs with fallbacksTobias Brunner2014-02-121-10/+24
|