Mediation support in vici
I didn't find any code related to medaiton configuration in this trongswan/src/libcharon/plugins/vici/vici_config.c
Is vici supports mediation configuration handling?
#3 Updated by Tobias Brunner almost 2 years ago
is the below usage is correct ?
vici_add_key_valuef(req,"mediation_peer", "%s", "email@example.com");
Depends on the rest of the code, but looks about right (and you don't have to use "%s" for static texts, you could just write them directly). Just note that the first option is used for mediation connections and the other two for mediated connections.
#6 Updated by Tobias Brunner almost 2 years ago
For initiating the tunnel using the initiate command it expects "childname" , for mediation tunnel childname will not be present , so how should we invoke the initiate command in this case.
You don't really have to do that manually, the mediation connection is started automatically when a mediated connection requires it.
And if you really wanted to initiate the mediation connection you can just define an empty child section and then initiate that.