Lines Matching refs:method

2  * EAP server method registration
26 * eap_server_get_eap_method - Get EAP method based on type number
28 * @method: EAP type number
29 * Returns: Pointer to EAP method or %NULL if not found
31 const struct eap_method * eap_server_get_eap_method(int vendor, EapType method)
35 if (m->vendor == vendor && m->method == method)
43 * eap_server_get_type - Get EAP type for the given EAP method name
44 * @name: EAP method name, e.g., TLS
46 * Returns: EAP method type or %EAP_TYPE_NONE if not found
57 return m->method;
66 * eap_server_method_alloc - Allocate EAP server method structure
67 * @version: Version of the EAP server method interface (set to
70 * @method: EAP type number (EAP_TYPE_*)
71 * @name: Name of the method (e.g., "TLS")
72 * Returns: Allocated EAP method structure or %NULL on failure
78 EapType method, const char *name)
86 eap->method = method;
93 * eap_server_method_free - Free EAP server method structure
94 * @method: Method structure allocated with eap_server_method_alloc()
96 void eap_server_method_free(struct eap_method *method)
98 os_free(method);
103 * eap_server_method_register - Register an EAP server method
104 * @method: EAP method to register
105 * Returns: 0 on success, -1 on invalid method, or -2 if a matching EAP method
108 * Each EAP server method needs to call this function to register itself as a
109 * supported EAP method.
111 int eap_server_method_register(struct eap_method *method)
115 if (method == NULL || method->name == NULL ||
116 method->version != EAP_SERVER_METHOD_INTERFACE_VERSION)
120 if ((m->vendor == method->vendor &&
121 m->method == method->method) ||
122 os_strcmp(m->name, method->name) == 0)
128 last->next = method;
130 eap_methods = method;
159 * eap_server_get_name - Get EAP method name for the given EAP type
161 * @type: EAP method type
162 * Returns: EAP method name, e.g., TLS, or %NULL if not found
171 if (m->vendor == vendor && m->method == type)