peer-cfg: Store mediated_by as name and not peer-cfg reference
authorTobias Brunner <tobias@strongswan.org>
Tue, 7 Feb 2017 10:30:49 +0000 (11:30 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 16 Feb 2017 18:24:09 +0000 (19:24 +0100)
commited96fe72cf8c741427b833c6f284a8857d8371a7
tree968ed43d4a7780b82bc8cc2b08e6f180d05305db
parentec5f127a45c7c98eb0992d202bda1629e387469c
peer-cfg: Store mediated_by as name and not peer-cfg reference

This way updates to the mediation config are respected and the order in
which configs are configured/loaded does not matter.

The SQL plugin currently maintains the strong relationship between
mediated and mediation connection (we could theoretically change that to a
string too).
src/libcharon/config/peer_cfg.c
src/libcharon/config/peer_cfg.h
src/libcharon/plugins/medcli/medcli_config.c
src/libcharon/plugins/sql/sql_config.c
src/libcharon/plugins/stroke/stroke_config.c
src/libcharon/processing/jobs/initiate_mediation_job.c