aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/tests/utils/exchange_test_helper.c
Commit message (Collapse)AuthorAgeFilesLines
* daemon: Use separate method to set default loggersTobias Brunner2017-01-251-1/+1
| | | | | This way it is not necessary to pass the same values to reload the loggers.
* unit-tests: Only deliver messages to the SA they are addressed toTobias Brunner2016-06-171-4/+12
|
* unit-tests: Make sure to flush the IKE_SA manager before destroying the senderTobias Brunner2016-06-171-1/+3
| | | | | | | | | | As the static plugin that creates and destroys the default sender was not initialized because of the missing socket the daemon won't destroy our sender. Test cases will eventually have to flush the IKE_SA manager to satisfy the leak detective. However, in case of a test failure and if there are IKE_SAs in the manager the daemon will flush the SAs when deinitializing, which will cause deletes to get sent. This crashes if the sender is already destroyed.
* unit-tests: Return status from process_message()Tobias Brunner2016-06-171-2/+5
|
* unit-tests: Provide a wrapper around bus_t::add_listener and unregister them ↵Tobias Brunner2016-06-171-0/+20
| | | | | | | | during cleanup In case listeners on the stack are triggered while cleaning up after a test failed (e.g. via ike_sa_manager_t::flush) remaining listeners defined on the stack would cause a segmentation fault.
* unit-tests: Make IKE and ESP proposals configurableTobias Brunner2016-06-171-30/+87
|
* unit-tests: Register nonce generator and make first nonce byte configurableTobias Brunner2016-06-171-1/+13
|
* unit-tests: Register mock DH implementation as static plugin featureTobias Brunner2016-06-171-0/+11
|
* unit-tests: Make IKE SPIs predictableTobias Brunner2016-06-171-0/+14
|
* unit-tests: Call methods on IKE_SAs in their contextTobias Brunner2016-06-171-2/+1
|
* unit-tests: Add helper class/object to test IKE exchangesTobias Brunner2016-06-171-0/+246