Home
last modified time | relevance | path

Searched refs:methods (Results 1 – 25 of 63) sorted by relevance

123

/hostap-latest/src/ap/
Deap_user_db.c23 static void set_user_methods(struct hostapd_eap_user *user, const char *methods) in set_user_methods() argument
28 buf = os_strdup(methods); in set_user_methods()
32 os_memset(&user->methods, 0, sizeof(user->methods)); in set_user_methods()
39 user->methods[num_methods].method = in set_user_methods()
41 &user->methods[num_methods].vendor); in set_user_methods()
42 if (user->methods[num_methods].vendor == EAP_VENDOR_IETF && in set_user_methods()
43 user->methods[num_methods].method == EAP_TYPE_NONE) { in set_user_methods()
106 int i, id = -1, methods = -1; in get_wildcard_cb() local
113 methods = i; in get_wildcard_cb()
116 if (id < 0 || methods < 0) in get_wildcard_cb()
[all …]
Dauthsrv.c70 user->methods[i].vendor = eap_user->methods[i].vendor; in hostapd_radius_get_eap_user()
71 user->methods[i].method = eap_user->methods[i].method; in hostapd_radius_get_eap_user()
/hostap-latest/wpa_supplicant/dbus/
Ddbus_new_handlers_wps.c441 char *methods, *new_methods; in wpas_dbus_setter_config_methods() local
444 &methods)) in wpas_dbus_setter_config_methods()
447 new_methods = os_strdup(methods); in wpas_dbus_setter_config_methods()
495 char *methods, *devname; in wpas_dbus_setter_wps_device_name() local
498 &methods)) in wpas_dbus_setter_wps_device_name()
501 if (os_strlen(methods) > WPS_DEV_NAME_MAX_LEN) in wpas_dbus_setter_wps_device_name()
504 devname = os_strdup(methods); in wpas_dbus_setter_wps_device_name()
551 char *methods, *manufacturer; in wpas_dbus_setter_wps_manufacturer() local
554 &methods)) in wpas_dbus_setter_wps_manufacturer()
557 if (os_strlen(methods) > WPS_MANUFACTURER_MAX_LEN) in wpas_dbus_setter_wps_manufacturer()
[all …]
Ddbus_new_introspect.c97 struct dl_list *list, const struct wpa_dbus_method_desc *methods) in extract_interfaces_methods() argument
102 for (dsc = methods; dsc && dsc->dbus_method; dsc++) { in extract_interfaces_methods()
153 extract_interfaces_methods(list, obj_dsc->methods); in extract_interfaces()
/hostap-latest/hostapd/
Dhostapd.eap_user_sqlite3 methods TEXT,
12 methods TEXT
15 INSERT INTO users(identity,methods,password,phase2) VALUES ('user','TTLS-MSCHAPV2','password',1);
16 INSERT INTO users(identity,methods,password,phase2) VALUES ('DOMAIN\mschapv2 user','TTLS-MSCHAPV2',…
18 INSERT INTO wildcards(identity,methods) VALUES ('','TTLS,TLS');
19 INSERT INTO wildcards(identity,methods) VALUES ('0','AKA');
Dhostapd.eap_user36 # Multiple methods can be configured to make the authenticator try them one by
46 # Tunneled EAP methods are configured with standard EAP method name and [2]
47 # flag. Non-EAP methods can be enabled by following method names: TTLS-PAP,
/hostap-latest/doc/
Deap_server.doxygen11 machine and methods. As such, this RFC provides useful information for
21 \section adding_eap_methods Adding EAP methods
25 methods use the same interface between the server state machine and
26 method specific functions. This allows new EAP methods to be added
29 New EAP methods need to be registered by adding them into the build
33 order to make it possible to select which of the methods are included
36 EAP methods must implement the interface defined in \ref eap_i.h. struct
41 It is recommended that the EAP methods would use generic helper
51 \ref eap_server_method_alloc(). These methods must not try to emulate
Deap.doxygen11 machine and methods. As such, this RFC provides useful information for
21 \section adding_eap_methods Adding EAP methods
25 methods use the same interface between the peer state machine and
26 method specific functions. This allows new EAP methods to be added
29 New EAP methods need to be registered by adding them into the build
33 order to make it possible to select which of the methods are included
36 EAP methods must implement the interface defined in \ref eap_i.h. struct
41 It is recommended that the EAP methods would use generic helper
51 \ref eap_peer_method_alloc(). These methods must not try to emulate
Dtesting_tools.doxygen23 generate a single program that can be used to test EAP methods without
27 methods against RADIUS servers and in development testing for new EAP
28 methods. It can be easily used to automate EAP testing for
37 wpa_supplicant. This file is used to select which EAP methods are
/hostap-latest/src/wps/
Dwps_common.c530 u16 methods = 0; in wps_config_methods_str2bin() local
534 methods |= WPS_CONFIG_DISPLAY | WPS_CONFIG_KEYPAD; in wps_config_methods_str2bin()
535 methods |= WPS_CONFIG_VIRT_DISPLAY; in wps_config_methods_str2bin()
537 methods |= WPS_CONFIG_NFC_INTERFACE; in wps_config_methods_str2bin()
540 methods |= WPS_CONFIG_P2PS; in wps_config_methods_str2bin()
544 methods |= WPS_CONFIG_ETHERNET; in wps_config_methods_str2bin()
546 methods |= WPS_CONFIG_LABEL; in wps_config_methods_str2bin()
548 methods |= WPS_CONFIG_DISPLAY; in wps_config_methods_str2bin()
550 methods |= WPS_CONFIG_EXT_NFC_TOKEN; in wps_config_methods_str2bin()
552 methods |= WPS_CONFIG_INT_NFC_TOKEN; in wps_config_methods_str2bin()
[all …]
Dwps_registrar.c569 static void wps_set_pushbutton(u16 *methods, u16 conf_methods) in wps_set_pushbutton() argument
571 *methods |= WPS_CONFIG_PUSHBUTTON; in wps_set_pushbutton()
574 *methods |= WPS_CONFIG_VIRT_PUSHBUTTON; in wps_set_pushbutton()
577 *methods |= WPS_CONFIG_PHY_PUSHBUTTON; in wps_set_pushbutton()
578 if ((*methods & WPS_CONFIG_VIRT_PUSHBUTTON) != in wps_set_pushbutton()
580 (*methods & WPS_CONFIG_PHY_PUSHBUTTON) != in wps_set_pushbutton()
587 *methods |= WPS_CONFIG_PHY_PUSHBUTTON; in wps_set_pushbutton()
595 u16 methods; in wps_build_sel_reg_config_methods() local
598 methods = reg->wps->config_methods; in wps_build_sel_reg_config_methods()
599 methods &= ~WPS_CONFIG_PUSHBUTTON; in wps_build_sel_reg_config_methods()
[all …]
Dwps_attr_build.c117 int wps_build_config_methods(struct wpabuf *msg, u16 methods) in wps_build_config_methods() argument
119 wpa_printf(MSG_DEBUG, "WPS: * Config Methods (%x)", methods); in wps_build_config_methods()
122 wpabuf_put_be16(msg, methods); in wps_build_config_methods()
/hostap-latest/src/eap_peer/
Deap_tls_common.c1110 struct eap_method_type *methods = NULL, *_methods; in eap_peer_select_phase2_methods() local
1145 os_free(methods); in eap_peer_select_phase2_methods()
1150 _methods = os_realloc_array(methods, num_methods, in eap_peer_select_phase2_methods()
1151 sizeof(*methods)); in eap_peer_select_phase2_methods()
1153 os_free(methods); in eap_peer_select_phase2_methods()
1157 methods = _methods; in eap_peer_select_phase2_methods()
1158 methods[num_methods - 1].vendor = vendor; in eap_peer_select_phase2_methods()
1159 methods[num_methods - 1].method = method; in eap_peer_select_phase2_methods()
1168 if (methods == NULL) in eap_peer_select_phase2_methods()
1169 methods = eap_get_phase2_types(config, &num_methods); in eap_peer_select_phase2_methods()
[all …]
/hostap-latest/eap_example/
Deap_example_server.c37 user->methods[0].vendor = EAP_VENDOR_IETF; in server_get_eap_user()
38 user->methods[0].method = EAP_TYPE_PEAP; in server_get_eap_user()
49 user->methods[0].vendor = EAP_VENDOR_IETF; in server_get_eap_user()
50 user->methods[0].method = EAP_TYPE_MSCHAPV2; in server_get_eap_user()
/hostap-latest/src/eap_server/
Deap_server.c1631 (u8 *) sm->user->methods, in eap_sm_process_nak()
1632 EAP_MAX_METHODS * sizeof(sm->user->methods[0])); in eap_sm_process_nak()
1638 (sm->user->methods[i].vendor != EAP_VENDOR_IETF || in eap_sm_process_nak()
1639 sm->user->methods[i].method != EAP_TYPE_NONE)) { in eap_sm_process_nak()
1640 if (sm->user->methods[i].vendor != EAP_VENDOR_IETF) in eap_sm_process_nak()
1643 if (nak_list[j] == sm->user->methods[i].method) { in eap_sm_process_nak()
1657 os_memmove(&sm->user->methods[i], in eap_sm_process_nak()
1658 &sm->user->methods[i + 1], in eap_sm_process_nak()
1660 sizeof(sm->user->methods[0])); in eap_sm_process_nak()
1662 sm->user->methods[EAP_MAX_METHODS - 1].vendor = in eap_sm_process_nak()
[all …]
Deap_server_psk.c258 (sm->user->methods[i].vendor != EAP_VENDOR_IETF || in eap_psk_process_2()
259 sm->user->methods[i].method != EAP_TYPE_NONE); in eap_psk_process_2()
261 if (sm->user->methods[i].vendor == EAP_VENDOR_IETF && in eap_psk_process_2()
262 sm->user->methods[i].method == EAP_TYPE_PSK) in eap_psk_process_2()
267 sm->user->methods[i].vendor != EAP_VENDOR_IETF || in eap_psk_process_2()
268 sm->user->methods[i].method != EAP_TYPE_PSK) { in eap_psk_process_2()
Deap_server_pax.c380 (sm->user->methods[i].vendor != EAP_VENDOR_IETF || in eap_pax_process_std_2()
381 sm->user->methods[i].method != EAP_TYPE_NONE); in eap_pax_process_std_2()
383 if (sm->user->methods[i].vendor == EAP_VENDOR_IETF && in eap_pax_process_std_2()
384 sm->user->methods[i].method == EAP_TYPE_PAX) in eap_pax_process_std_2()
389 sm->user->methods[i].vendor != EAP_VENDOR_IETF || in eap_pax_process_std_2()
390 sm->user->methods[i].method != EAP_TYPE_PAX) { in eap_pax_process_std_2()
Deap_server_peap.c949 next_type = sm->user->methods[0].method; in eap_peap_process_phase2_soh()
952 sm->user->methods[0].vendor, next_type); in eap_peap_process_phase2_soh()
953 eap_peap_phase2_init(sm, data, sm->user->methods[0].vendor, next_type); in eap_peap_process_phase2_soh()
995 (sm->user->methods[sm->user_eap_method_index].vendor != in eap_peap_process_phase2_response()
997 sm->user->methods[sm->user_eap_method_index].method != in eap_peap_process_phase2_response()
999 next_vendor = sm->user->methods[ in eap_peap_process_phase2_response()
1001 next_type = sm->user->methods[ in eap_peap_process_phase2_response()
1084 next_vendor = sm->user->methods[0].vendor; in eap_peap_process_phase2_response()
1085 next_type = sm->user->methods[0].method; in eap_peap_process_phase2_response()
Deap_server_fast.c1003 sm->user->methods[sm->user_eap_method_index].method != in eap_fast_process_phase2_response()
1005 next_vendor = sm->user->methods[ in eap_fast_process_phase2_response()
1007 next_type = sm->user->methods[ in eap_fast_process_phase2_response()
1063 next_vendor = sm->user->methods[0].vendor; in eap_fast_process_phase2_response()
1064 next_type = sm->user->methods[0].method; in eap_fast_process_phase2_response()
1501 next_vendor = sm->user->methods[0].vendor; in eap_fast_process_phase2_start()
1502 next_type = sm->user->methods[0].method; in eap_fast_process_phase2_start()
/hostap-latest/src/p2p/
Dp2p_build.c196 u16 methods; in p2p_buf_add_device_info() local
207 methods = 0; in p2p_buf_add_device_info()
210 methods |= WPS_CONFIG_PUSHBUTTON; in p2p_buf_add_device_info()
212 methods |= WPS_CONFIG_P2PS; in p2p_buf_add_device_info()
215 methods |= WPS_CONFIG_DISPLAY | WPS_CONFIG_KEYPAD; in p2p_buf_add_device_info()
217 methods |= p2p->cfg->config_methods & in p2p_buf_add_device_info()
221 methods |= WPS_CONFIG_PUSHBUTTON; in p2p_buf_add_device_info()
222 methods |= WPS_CONFIG_DISPLAY | WPS_CONFIG_KEYPAD; in p2p_buf_add_device_info()
223 methods |= WPS_CONFIG_P2PS; in p2p_buf_add_device_info()
225 wpabuf_put_be16(buf, methods); in p2p_buf_add_device_info()
/hostap-latest/hs20/server/
Dsql.txt44 methods TEXT,
69 methods TEXT
Dsql-example.txt15 INSERT INTO users(identity,realm,methods,password,phase2,shared) VALUES('free','example.com','TTLS-…
17 INSERT INTO wildcards(identity,methods) VALUES('','TTLS,TLS');
/hostap-latest/wpa_supplicant/wpa_gui-qt4/
Dpeers.cpp1626 int methods = var.toInt(); in properties() local
1628 if (methods & 0x0001) in properties()
1630 if (methods & 0x0002) in properties()
1632 if (methods & 0x0004) in properties()
1634 if (methods & 0x0008) in properties()
1636 if (methods & 0x0010) in properties()
1638 if (methods & 0x0020) in properties()
1640 if (methods & 0x0040) in properties()
1642 if (methods & 0x0080) in properties()
1644 if (methods & 0x0100) in properties()
/hostap-latest/wpa_supplicant/
Dconfig.c1573 struct eap_method_type *methods = NULL, *tmp; in wpa_config_parse_eap() local
1591 tmp = methods; in wpa_config_parse_eap()
1592 methods = os_realloc_array(methods, num_methods + 1, in wpa_config_parse_eap()
1593 sizeof(*methods)); in wpa_config_parse_eap()
1594 if (methods == NULL) { in wpa_config_parse_eap()
1599 methods[num_methods].method = eap_peer_get_type( in wpa_config_parse_eap()
1600 start, &methods[num_methods].vendor); in wpa_config_parse_eap()
1601 if (methods[num_methods].vendor == EAP_VENDOR_IETF && in wpa_config_parse_eap()
1602 methods[num_methods].method == EAP_TYPE_NONE) { in wpa_config_parse_eap()
1610 } else if (methods[num_methods].vendor == EAP_VENDOR_IETF && in wpa_config_parse_eap()
[all …]
/hostap-latest/wpa_supplicant/doc/docbook/
Deapol_test.sgml55 test EAP methods without having to setup an access point and a
59 of EAP methods against RADIUS servers and in development testing
60 for new EAP methods. It can be easily used to automate EAP testing

123