aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/tests/suites/test_utils.c
Commit message (Collapse)AuthorAgeFilesLines
* ikev2: Enumerate RSA/PSS schemes and use them if enabledTobias Brunner2017-11-081-11/+16
|
* utils: Add helper function to parse time spans from stringsTobias Brunner2017-11-021-0/+52
|
* gmp: Support of SHA-3 RSA signaturesAndreas Steffen2016-09-221-8/+15
|
* string: Gracefully handle NULL in str*eq() macrosTobias Brunner2016-04-041-0/+78
|
* Use standard unsigned integer typesAndreas Steffen2016-03-241-9/+9
|
* Explicitly mention SHA2 algorithm in BLISS OIDs and signature schemesAndreas Steffen2015-11-061-3/+3
|
* 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 memeq() variant for cryptographic purposesMartin Willi2015-04-141-0/+47
|
* public-key: Add helper to determine acceptable signature schemes for keysTobias Brunner2015-03-041-1/+44
|
* 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.
* 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
|
* 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
|
* utils: Add strreplace functionTobias Brunner2014-01-231-0/+87
|
* unit-tests: Move test suites to its own subfolderMartin Willi2013-11-061-0/+556