From d6f70ff68929e3b50a25fd2e11aa263beb5312e7 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 25 Jun 2015 17:41:09 +0200 Subject: plugin-feature: Add vendor specific EAP method registration macros Vendor specific EAP methods may be registered with: PLUGIN_CALLBACK(eap_method_register, ), PLUGIN_PROVIDE(EAP_SERVER_VENDOR, , ), Same for client implementations via EAP_PEER_VENDOR. References #969. --- src/libcharon/sa/eap/eap_method.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libcharon/sa/eap/eap_method.c') 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); } -- cgit v1.2.3