Lines Matching defs:method

23  * eap_peer_get_eap_method - Get EAP method based on type number
25 * @method: EAP type number
26 * Returns: Pointer to EAP method or %NULL if not found
28 const struct eap_method * eap_peer_get_eap_method(int vendor, EapType method)
32 if (m->vendor == vendor && m->method == method)
40 * eap_peer_get_type - Get EAP type for the given EAP method name
41 * @name: EAP method name, e.g., TLS
43 * Returns: EAP method type or %EAP_TYPE_NONE if not found
54 return m->method;
63 * eap_get_name - Get EAP method name for the given EAP type
65 * @type: EAP method type
66 * Returns: EAP method name, e.g., TLS, or %NULL if not found
77 if (m->vendor == vendor && m->method == type)
178 * eap_peer_method_load - Load a dynamic EAP method library (shared object)
190 wpa_printf(MSG_ERROR, "EAP: Failed to open dynamic EAP method "
198 wpa_printf(MSG_ERROR, "EAP: Invalid EAP method '%s' - no "
206 wpa_printf(MSG_ERROR, "EAP: Failed to add EAP method '%s' - "
212 * dlclose() when the EAP method is unregistered. */
215 wpa_printf(MSG_DEBUG, "EAP: Loaded dynamic EAP method: '%s'", so);
222 * eap_peer_method_unload - Unload a dynamic EAP method library (shared object)
223 * @method: Pointer to the dynamically loaded EAP method
227 * loaded with eap_peer_method_load(). Before unloading the method, all
228 * references to the method must be removed to make sure that no dereferences
231 int eap_peer_method_unload(struct eap_method *method)
239 if (m == method)
268 * eap_peer_method_alloc - Allocate EAP peer method structure
269 * @version: Version of the EAP peer method interface (set to
272 * @method: EAP type number (EAP_TYPE_*)
273 * @name: Name of the method (e.g., "TLS")
274 * Returns: Allocated EAP method structure or %NULL on failure
280 EapType method, const char *name)
288 eap->method = method;
295 * eap_peer_method_free - Free EAP peer method structure
296 * @method: Method structure allocated with eap_peer_method_alloc()
298 void eap_peer_method_free(struct eap_method *method)
300 os_free(method);
305 * eap_peer_method_register - Register an EAP peer method
306 * @method: EAP method to register
307 * Returns: 0 on success, -1 on invalid method, or -2 if a matching EAP method
310 * Each EAP peer method needs to call this function to register itself as a
311 * supported EAP method.
313 int eap_peer_method_register(struct eap_method *method)
317 if (method == NULL || method->name == NULL ||
318 method->version != EAP_PEER_METHOD_INTERFACE_VERSION)
322 if ((m->vendor == method->vendor &&
323 m->method == method->method) ||
324 os_strcmp(m->name, method->name) == 0)
330 last->next = method;
332 eap_methods = method;