Lines Matching defs:vendor

39 static Boolean eap_sm_allowMethod(struct eap_sm *sm, int vendor,
135 * @vendor: Vendor-Id for expanded types or 0 = IETF for legacy types
141 int vendor, u32 method)
150 for (i = 0; m[i].vendor != EAP_VENDOR_IETF ||
152 if (m[i].vendor == vendor && m[i].method == method)
162 * @vendor: Vendor-Id for expanded types or 0 = IETF for legacy types
166 int eap_allowed_method(struct eap_sm *sm, int vendor, u32 method)
168 return eap_config_allowed_method(sm, eap_get_config(sm), vendor,
335 wpa_printf(MSG_DEBUG, "EAP: vendor %u method %u not allowed",
338 "vendor=%u method=%u -> NAK",
346 "vendor=%u method=%u", sm->reqVendor, method);
359 sm->m && sm->m->vendor == sm->reqVendor &&
376 "vendor %d method %d",
384 "vendor %u method %u (%s)",
398 "EAP: Failed to initialize EAP method: vendor %u "
422 "EAP vendor %u method %u (%s) selected",
883 if (sm->m->vendor == EAP_VENDOR_IETF && sm->m->method == EAP_TYPE_LEAP)
1351 static Boolean eap_sm_allowMethod(struct eap_sm *sm, int vendor,
1354 if (!eap_allowed_method(sm, vendor, method)) {
1356 "vendor %u method %u", vendor, method);
1359 if (eap_peer_get_eap_method(vendor, method))
1362 "vendor %u method %u", vendor, method);
1387 if (sm->reqVendor == m->vendor &&
1390 if (eap_allowed_method(sm, m->vendor, m->method)) {
1392 "vendor=%u method=%u",
1393 m->vendor, m->method);
1395 wpabuf_put_be24(resp, m->vendor);
1423 "vendor=%u method=%u not allowed)", sm->reqMethod,
1440 if (m->vendor == EAP_VENDOR_IETF && m->method == sm->reqMethod)
1442 if (eap_allowed_method(sm, m->vendor, m->method)) {
1443 if (m->vendor != EAP_VENDOR_IETF) {
1554 for (i = 0; m && (m[i].vendor != EAP_VENDOR_IETF ||
1556 if (m[i].vendor == EAP_VENDOR_IETF &&
1562 if (m[i].vendor == EAP_VENDOR_IETF &&
2001 "method=%u vendor=%u vendorMethod=%u",
2601 static int eap_allowed_phase2_type(int vendor, int type)
2603 if (vendor != EAP_VENDOR_IETF)
2613 * @vendor: Buffer for returning EAP Vendor-Id
2620 u32 eap_get_phase2_type(const char *name, int *vendor)
2625 *vendor = v;
2628 *vendor = EAP_VENDOR_IETF;
2647 int vendor;
2660 vendor = m->vendor;
2662 if (eap_allowed_phase2_type(vendor, method)) {
2663 if (vendor == EAP_VENDOR_IETF &&
2667 buf[*count].vendor = vendor;