aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2015-06-25 17:41:09 +0200
committerTobias Brunner <tobias@strongswan.org>2015-08-17 11:28:08 +0200
commitd6f70ff68929e3b50a25fd2e11aa263beb5312e7 (patch)
treef993d8b783a21d74c5b6b71aab7e1391df2005c1 /src/libcharon/sa
parent39afe6e9d0336cd2212a287b51ff7c788d5a5a64 (diff)
downloadstrongswan-d6f70ff68929e3b50a25fd2e11aa263beb5312e7.tar.bz2
strongswan-d6f70ff68929e3b50a25fd2e11aa263beb5312e7.tar.xz
plugin-feature: Add vendor specific EAP method registration macros
Vendor specific EAP methods may be registered with: PLUGIN_CALLBACK(eap_method_register, <constructor>), PLUGIN_PROVIDE(EAP_SERVER_VENDOR, <type>, <vendor>), Same for client implementations via EAP_PEER_VENDOR. References #969.
Diffstat (limited to 'src/libcharon/sa')
-rw-r--r--src/libcharon/sa/eap/eap_method.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcharon/sa/eap/eap_method.c b/src/libcharon/sa/eap/eap_method.c
index a05e8c59a..9ce6ecf00 100644
--- a/src/libcharon/sa/eap/eap_method.c
+++ b/src/libcharon/sa/eap/eap_method.c
@@ -30,7 +30,8 @@ bool eap_method_register(plugin_t *plugin, plugin_feature_t *feature,
{
if (reg)
{
- charon->eap->add_method(charon->eap, feature->arg.eap, 0,
+ charon->eap->add_method(charon->eap, feature->arg.eap.type,
+ feature->arg.eap.vendor,
feature->type == FEATURE_EAP_SERVER ? EAP_SERVER : EAP_PEER,
(eap_constructor_t)data);
}