proposal: Add selection flags to clone() method
authorTobias Brunner <tobias@strongswan.org>
Thu, 5 Sep 2019 15:29:00 +0000 (17:29 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 24 Oct 2019 15:43:21 +0000 (17:43 +0200)
commita2cb2c9cc8619ee487283ab4b20dcedf8a91a996
tree0cd66ea87898e7bd966c8771ac503b5f76233604
parent3187293e3ddf2f457614f62a9d51f27e7764bb48
proposal: Add selection flags to clone() method

This avoids having to call strip_dh() in child_cfg_t::get_proposals().
It also inverts the ALLOW_PRIVATE flag (i.e. makes it SKIP_PRIVATE) so
nothing has to be supplied to clone complete proposals.
13 files changed:
src/libcharon/config/child_cfg.c
src/libcharon/config/ike_cfg.c
src/libcharon/plugins/load_tester/load_tester_config.c
src/libcharon/sa/child_sa.c
src/libcharon/sa/ike_sa.c
src/libcharon/sa/ikev1/tasks/aggressive_mode.c
src/libcharon/sa/ikev1/tasks/main_mode.c
src/libcharon/sa/ikev1/tasks/quick_mode.c
src/libcharon/sa/ikev2/tasks/child_create.c
src/libcharon/sa/ikev2/tasks/ike_init.c
src/libstrongswan/crypto/proposal/proposal.c
src/libstrongswan/crypto/proposal/proposal.h
src/libstrongswan/tests/suites/test_proposal.c