Lines Matching defs:method

12  * functions in this file. The method functions, m.func(), are similar to the
40 EapType method);
113 wpa_printf(MSG_DEBUG, "EAP: deinitialize previously used EAP method "
122 * eap_allowed_method - Check whether EAP method is allowed
125 * @method: EAP type
126 * Returns: 1 = allowed EAP method, 0 = not allowed
128 int eap_allowed_method(struct eap_sm *sm, int vendor, u32 method)
139 m[i].method != EAP_TYPE_NONE; i++) {
140 if (m[i].vendor == vendor && m[i].method == method)
159 wpa_printf(MSG_DEBUG, "EAP: maintaining EAP method data for "
246 * correct method is started, or a Nak response is built.
251 EapType method;
257 method = sm->reqVendorMethod;
259 method = sm->reqMethod;
261 eap_method = eap_peer_get_eap_method(sm->reqVendor, method);
263 if (!eap_sm_allowMethod(sm, sm->reqVendor, method)) {
264 wpa_printf(MSG_DEBUG, "EAP: vendor %u method %u not allowed",
265 sm->reqVendor, method);
267 "vendor=%u method=%u -> NAK",
268 sm->reqVendor, method);
269 eap_notify_status(sm, "refuse proposed method",
275 "vendor=%u method=%u", sm->reqVendor, method);
277 eap_notify_status(sm, "accept proposed method",
282 * the previously used method data to be maintained for
283 * re-authentication if the method support session resumption.
284 * Otherwise, the previously used method data is freed and a new method
289 sm->m->method == method &&
292 wpa_printf(MSG_DEBUG, "EAP: Using previous method data"
304 wpa_printf(MSG_DEBUG, "EAP: Could not find selected method: "
305 "vendor %d method %d",
306 sm->reqVendor, method);
312 wpa_printf(MSG_DEBUG, "EAP: Initialize selected EAP method: "
313 "vendor %u method %u (%s)",
314 sm->reqVendor, method, sm->m->name);
324 "EAP: Failed to initialize EAP method: vendor %u "
325 "method %u (%s)",
326 sm->reqVendor, method, sm->m->name);
348 "EAP vendor %u method %u (%s) selected",
349 sm->reqVendor, method, sm->m->name);
621 * The method processing happens here. The request from the authenticator is
632 wpa_printf(MSG_WARNING, "EAP::METHOD - method not selected");
637 if (sm->m->vendor == EAP_VENDOR_IETF && sm->m->method == EAP_TYPE_LEAP)
644 * eapRespData. RFC 4137 uses three separate method procedure (check,
647 * method implementation interface a bit. These procedures are only
665 wpa_printf(MSG_DEBUG, "EAP: method process -> ignore=%s "
738 * Handles requests for Identity method and builds a response.
756 * Handles requests for Notification method and builds a response.
961 SM_ENTER(EAP, SUCCESS); /* EAP-Success prior any EAP method */
965 SM_ENTER(EAP, FAILURE); /* EAP-Failure prior any EAP method */
1035 * final EAP method response to be sent without having to change
1103 EapType method)
1105 if (!eap_allowed_method(sm, vendor, method)) {
1107 "vendor %u method %u", vendor, method);
1110 if (eap_peer_get_eap_method(vendor, method))
1113 "vendor %u method %u", vendor, method);
1139 sm->reqVendorMethod == m->method)
1140 continue; /* do not allow the current method again */
1141 if (eap_allowed_method(sm, m->vendor, m->method)) {
1143 "vendor=%u method=%u",
1144 m->vendor, m->method);
1147 wpabuf_put_be32(resp, m->method);
1174 "vendor=%u method=%u not allowed)", sm->reqMethod,
1191 if (m->vendor == EAP_VENDOR_IETF && m->method == sm->reqMethod)
1192 continue; /* do not allow the current method again */
1193 if (eap_allowed_method(sm, m->vendor, m->method)) {
1200 wpabuf_put_u8(resp, m->method);
1311 enum { EAP_SM_SIM, EAP_SM_AKA, EAP_SM_AKA_PRIME } method = EAP_SM_SIM;
1337 m[i].method != EAP_TYPE_NONE); i++) {
1339 m[i].method == EAP_TYPE_AKA_PRIME) {
1340 method = EAP_SM_AKA_PRIME;
1345 m[i].method == EAP_TYPE_AKA) {
1346 method = EAP_SM_AKA;
1359 switch (method) {
1442 wpa_hexdump_ascii(MSG_DEBUG, "EAP: using method re-auth "
1793 "method=%u vendor=%u vendorMethod=%u",
1813 "LEAP method=%d id=%d",
2281 * the current network. This is normally called when the EAP method indicates
2340 * @req: EAP method specific request
2391 * eap_get_phase2_type - Get EAP type for the given EAP phase 2 method name
2392 * @name: EAP method name, e.g., MD5
2394 * Returns: EAP method type or %EAP_TYPE_NONE if not found
2426 u32 method;
2441 method = m->method;
2442 if (eap_allowed_phase2_type(vendor, method)) {
2444 method == EAP_TYPE_TLS && config &&
2448 buf[*count].method = method;
2875 * eap_notify_pending - Notify that EAP method is ready to re-process a request
2878 * An EAP method can perform a pending operation (e.g., to get a response from