Home
last modified time | relevance | path

Searched refs:os_strcmp (Results 1 – 25 of 88) sorted by relevance

1234

/freebsd-12.1/contrib/wpa/hostapd/
H A Dconfig_file.c700 if (os_strcmp(start, "WPA-PSK") == 0) in hostapd_config_parse_key_mgmt()
721 else if (os_strcmp(start, "SAE") == 0) in hostapd_config_parse_key_mgmt()
1011 if (os_strcmp(pos, "aifs") == 0) { in hostapd_config_tx_queue()
3100 if (os_strcmp(pos, "a") == 0)
3102 else if (os_strcmp(pos, "b") == 0)
3104 else if (os_strcmp(pos, "g") == 0)
3106 else if (os_strcmp(pos, "ad") == 0)
3116 if (os_strcmp(pos, "ad") == 0)
3118 else if (os_strcmp(pos, "a") == 0)
3121 os_strcmp(pos, "b") == 0)
[all …]
H A Dctrl_iface.c266 if (os_strcmp(cmd, "WPS") == 0) in hostapd_ctrl_iface_wps_nfc_config_token()
314 if (os_strcmp(cmd, "WPS") == 0) in hostapd_ctrl_iface_wps_nfc_token()
318 if (os_strcmp(cmd, "NDEF") == 0) in hostapd_ctrl_iface_wps_nfc_token()
322 if (os_strcmp(cmd, "enable") == 0) in hostapd_ctrl_iface_wps_nfc_token()
348 if (os_strcmp(cmd, "WPS") == 0) in hostapd_ctrl_iface_nfc_get_handover_sel()
355 if (os_strcmp(pos, "WPS-CR") == 0) in hostapd_ctrl_iface_nfc_get_handover_sel()
429 if (os_strcmp(role, "RESP") == 0 && os_strcmp(type, "WPS") == 0) { in hostapd_ctrl_iface_nfc_report_handover()
461 if (os_strcmp(txt, "random") == 0) { in hostapd_ctrl_iface_wps_ap_pin()
470 if (os_strcmp(txt, "get") == 0) { in hostapd_ctrl_iface_wps_ap_pin()
477 if (os_strcmp(txt, "set") == 0) { in hostapd_ctrl_iface_wps_ap_pin()
[all …]
/freebsd-12.1/contrib/wpa/wpa_supplicant/dbus/
H A Ddbus_new_handlers_p2p.c105 if (os_strcmp(entry.key, "Timeout") == 0 && in wpas_dbus_handler_p2p_find()
236 if (os_strcmp(entry.key, "period") == 0 && in wpas_dbus_handler_p2p_extendedlisten()
280 if (os_strcmp(entry.key, "duration1") == 0 && in wpas_dbus_handler_p2p_presence_request()
463 if (os_strcmp(entry.key, "peer") == 0 && in wpas_dbus_handler_p2p_remove_client()
550 if (os_strcmp(entry.key, "peer") == 0 && in wpas_dbus_handler_p2p_connect()
574 if (os_strcmp(entry.str_value, "pbc") == 0) in wpas_dbus_handler_p2p_connect()
712 if (os_strcmp(entry.key, "peer") == 0 && in wpas_dbus_handler_p2p_invite()
818 if (os_strcmp(config_method, "display") && in wpas_dbus_handler_p2p_prov_disc_req()
819 os_strcmp(config_method, "keypad") && in wpas_dbus_handler_p2p_prov_disc_req()
820 os_strcmp(config_method, "pbc") && in wpas_dbus_handler_p2p_prov_disc_req()
[all …]
H A Ddbus_new_handlers_wps.c51 if (os_strcmp(val, "enrollee") == 0) in wpas_dbus_handler_wps_role()
53 else if (os_strcmp(val, "registrar") == 0) in wpas_dbus_handler_wps_role()
81 if (os_strcmp(val, "pin") == 0) in wpas_dbus_handler_wps_type()
83 else if (os_strcmp(val, "pbc") == 0) in wpas_dbus_handler_wps_type()
186 if (os_strcmp(key, "Role") == 0) in wpas_dbus_handler_wps_start_entry()
189 else if (os_strcmp(key, "Type") == 0) in wpas_dbus_handler_wps_start_entry()
192 else if (os_strcmp(key, "Bssid") == 0) in wpas_dbus_handler_wps_start_entry()
195 else if (os_strcmp(key, "Pin") == 0) in wpas_dbus_handler_wps_start_entry()
199 else if (os_strcmp(key, "P2PDeviceAddress") == 0) in wpas_dbus_handler_wps_start_entry()
H A Ddbus_new_handlers.c149 if (os_strcmp(key, dont_quote[i]) == 0) in should_quote_opt()
266 if (os_strcmp(entry.key, "bssid") != 0 && in set_network_properties()
267 os_strcmp(entry.key, "priority") != 0) in set_network_properties()
279 if ((os_strcmp(entry.key, "psk") == 0 && in set_network_properties()
578 if (os_strcmp(entry.key, "Driver") == 0 && in wpas_dbus_handler_create_interface()
1349 if (os_strcmp(key, "Type") == 0) { in wpas_dbus_handler_scan()
1353 } else if (os_strcmp(key, "SSIDs") == 0) { in wpas_dbus_handler_scan()
1357 } else if (os_strcmp(key, "IEs") == 0) { in wpas_dbus_handler_scan()
1388 if (os_strcmp(type, "passive") == 0) { in wpas_dbus_handler_scan()
1418 } else if (os_strcmp(type, "active") == 0) { in wpas_dbus_handler_scan()
[all …]
H A Ddbus_new_helpers.c150 if (os_strcmp(dbus_message_get_signature(message), "s") != 0) in properties_get_all()
166 if (os_strcmp(dbus_message_get_signature(message), "ss")) { in properties_get()
200 if (os_strcmp(dbus_message_get_signature(message), "ssv")) { in properties_set()
553 if (os_strcmp(error.name, DBUS_ERROR_OBJECT_PATH_IN_USE) == 0) { in wpa_dbus_register_object_per_iface()
617 if (os_strcmp(dsc->dbus_interface, interface) != 0) in put_changed_properties()
865 if (os_strcmp(property, dsc->dbus_property) == 0 && in wpa_dbus_mark_property_changed()
866 os_strcmp(interface, dsc->dbus_interface) == 0) { in wpa_dbus_mark_property_changed()
/freebsd-12.1/contrib/wpa/wpa_supplicant/
H A Dconfig.c70 if (os_strcmp(value, "NULL") == 0) { in wpa_config_parse_str()
360 os_strcmp(value, "any") == 0) { in wpa_config_parse_bssid()
405 os_strcmp(value, "any") == 0) { in wpa_config_parse_bssid_hint()
622 if (os_strcmp(start, "WPA") == 0) in wpa_config_parse_proto()
625 os_strcmp(start, "WPA2") == 0) in wpa_config_parse_proto()
3304 if (os_strcmp(var, "eap") == 0) { in wpa_config_set_cred()
3651 if (os_strcmp(var, "pcsc") == 0) in wpa_config_get_cred_no_key()
3654 if (os_strcmp(var, "eap") == 0) { in wpa_config_get_cred_no_key()
3720 if (os_strcmp(var, "ocsp") == 0) in wpa_config_get_cred_no_key()
3723 if (os_strcmp(var, "realm") == 0) in wpa_config_get_cred_no_key()
[all …]
H A Dctrl_iface.c301 if (os_strcmp(band, "AUTO") == 0) in wpas_ctrl_set_band()
1225 if (os_strcmp(cmd, "any") == 0) in wpa_supplicant_ctrl_iface_wps_pin()
1352 if (os_strcmp(cmd, "WPS") == 0) in wpa_supplicant_ctrl_iface_wps_nfc_config_token()
1381 if (os_strcmp(cmd, "WPS") == 0) in wpa_supplicant_ctrl_iface_wps_nfc_token()
1506 if (os_strcmp(pos, "WPS") == 0 || os_strcmp(pos, "WPS-CR") == 0) { in wpas_ctrl_nfc_get_handover_req()
1592 if (os_strcmp(pos, "WPS") == 0 || os_strcmp(pos, "WPS-CR") == 0) { in wpas_ctrl_nfc_get_handover_sel()
1700 if (os_strcmp(role, "INIT") == 0 && os_strcmp(type, "WPS") == 0) { in wpas_ctrl_nfc_report_handover()
1703 } else if (os_strcmp(role, "RESP") == 0 && os_strcmp(type, "WPS") == 0) in wpas_ctrl_nfc_report_handover()
1710 } else if (os_strcmp(role, "INIT") == 0 && os_strcmp(type, "P2P") == 0) in wpas_ctrl_nfc_report_handover()
1713 } else if (os_strcmp(role, "RESP") == 0 && os_strcmp(type, "P2P") == 0) in wpas_ctrl_nfc_report_handover()
[all …]
H A Dctrl_iface_udp.c249 if (os_strcmp(addr, "::1")) {
270 if (os_strcmp(buf, "GET_COOKIE") == 0) {
304 if (os_strcmp(pos, "ATTACH") == 0) {
312 } else if (os_strcmp(pos, "DETACH") == 0) {
641 if (os_strcmp(buf, "GET_COOKIE") == 0) {
668 if (os_strcmp(pos, "ATTACH") == 0) {
674 } else if (os_strcmp(pos, "DETACH") == 0) {
H A Dwpas_glue.c796 if (os_strcmp(field, "IDENTITY") == 0) in wpa_supplicant_ctrl_req_from_string()
798 else if (os_strcmp(field, "PASSWORD") == 0) in wpa_supplicant_ctrl_req_from_string()
800 else if (os_strcmp(field, "NEW_PASSWORD") == 0) in wpa_supplicant_ctrl_req_from_string()
802 else if (os_strcmp(field, "PIN") == 0) in wpa_supplicant_ctrl_req_from_string()
804 else if (os_strcmp(field, "OTP") == 0) in wpa_supplicant_ctrl_req_from_string()
806 else if (os_strcmp(field, "PASSPHRASE") == 0) in wpa_supplicant_ctrl_req_from_string()
808 else if (os_strcmp(field, "SIM") == 0) in wpa_supplicant_ctrl_req_from_string()
810 else if (os_strcmp(field, "PSK_PASSPHRASE") == 0) in wpa_supplicant_ctrl_req_from_string()
812 else if (os_strcmp(field, "EXT_CERT_CHECK") == 0) in wpa_supplicant_ctrl_req_from_string()
H A Dctrl_iface_unix.c151 if (os_strcmp(buf, "ATTACH") == 0) { in wpa_supplicant_ctrl_iface_receive()
159 } else if (os_strcmp(buf, "DETACH") == 0) { in wpa_supplicant_ctrl_iface_receive()
714 if (os_strcmp(wpa_s->global->params.ctrl_interface, in wpa_supplicant_ctrl_iface_init()
732 os_strcmp(pos + 1, in wpa_supplicant_ctrl_iface_init()
1008 if (os_strcmp(buf, "ATTACH") == 0) { in wpa_supplicant_ctrl_iface_wait()
1065 if (os_strcmp(buf, "ATTACH") == 0) { in wpa_supplicant_global_ctrl_iface_receive()
1071 } else if (os_strcmp(buf, "DETACH") == 0) { in wpa_supplicant_global_ctrl_iface_receive()
/freebsd-12.1/contrib/wpa/src/ap/
H A Deap_user_db.c44 if (os_strcmp(start, "TTLS-PAP") == 0) { in set_user_methods()
48 if (os_strcmp(start, "TTLS-CHAP") == 0) { in set_user_methods()
52 if (os_strcmp(start, "TTLS-MSCHAP") == 0) { in set_user_methods()
56 if (os_strcmp(start, "TTLS-MSCHAPV2") == 0) { in set_user_methods()
85 if (os_strcmp(col[i], "password") == 0 && argv[i]) { in get_user_cb()
90 } else if (os_strcmp(col[i], "methods") == 0 && argv[i]) { in get_user_cb()
92 } else if (os_strcmp(col[i], "remediation") == 0 && argv[i]) { in get_user_cb()
94 } else if (os_strcmp(col[i], "t_c_timestamp") == 0 && argv[i]) { in get_user_cb()
110 if (os_strcmp(col[i], "identity") == 0 && argv[i]) in get_wildcard_cb()
112 else if (os_strcmp(col[i], "methods") == 0 && argv[i]) in get_wildcard_cb()
/freebsd-12.1/contrib/wpa/src/utils/
H A Dos_unix.c574 if (i < res && os_strcmp(func[i], __func__) == 0) in testing_fail_alloc()
576 if (i < res && os_strcmp(func[i], "os_malloc") == 0) in testing_fail_alloc()
578 if (i < res && os_strcmp(func[i], "os_zalloc") == 0) in testing_fail_alloc()
580 if (i < res && os_strcmp(func[i], "os_calloc") == 0) in testing_fail_alloc()
582 if (i < res && os_strcmp(func[i], "os_realloc") == 0) in testing_fail_alloc()
584 if (i < res && os_strcmp(func[i], "os_realloc_array") == 0) in testing_fail_alloc()
586 if (i < res && os_strcmp(func[i], "os_strdup") == 0) in testing_fail_alloc()
588 if (i < res && os_strcmp(func[i], "os_memdup") == 0) in testing_fail_alloc()
660 if (i < res && os_strcmp(func[i], __func__) == 0) in testing_test_fail()
H A Dtrace.c309 os_strcmp(data.function, __func__) != 0)) { in wpa_trace_calling_func()
345 (os_strcmp(func, "wpa_trace_add_ref_func") == 0 || in wpa_trace_dump_func()
346 os_strcmp(func, "wpa_trace_check_ref") == 0 || in wpa_trace_dump_func()
347 os_strcmp(func, "wpa_trace_show") == 0)) in wpa_trace_dump_func()
360 os_strcmp(func, "main") == 0) in wpa_trace_dump_func()
H A Dos_none.c183 return os_strcmp(s1, s2); in os_strcasecmp()
209 int os_strcmp(const char *s1, const char *s2) in os_strcmp() function
H A Dos.h432 int os_strcmp(const char *s1, const char *s2);
535 #ifndef os_strcmp
536 #define os_strcmp(s1, s2) strcmp((s1), (s2)) macro
/freebsd-12.1/contrib/wpa/src/eap_server/
H A Deap_sim_db.c213 if (os_strcmp(col[i], "permanent") == 0 && argv[i]) { in get_pseudonym_cb()
314 if (os_strcmp(col[i], "permanent") == 0 && argv[i]) { in get_reauth_cb()
320 } else if (os_strcmp(col[i], "mk") == 0 && argv[i]) { in get_reauth_cb()
325 } else if (os_strcmp(col[i], "k_aut") == 0 && argv[i]) { in get_reauth_cb()
328 } else if (os_strcmp(col[i], "k_re") == 0 && argv[i]) { in get_reauth_cb()
662 if (os_strcmp(cmd, "SIM-RESP-AUTH") == 0) in eap_sim_db_receive()
664 else if (os_strcmp(cmd, "AKA-RESP-AUTH") == 0) in eap_sim_db_receive()
1123 if (os_strcmp(permanent, p->permanent) == 0) in eap_sim_db_add_pseudonym()
1163 if (os_strcmp(r->permanent, permanent) == 0) in eap_sim_db_add_reauth_data()
1300 if (os_strcmp(p->pseudonym, pseudonym) == 0) in eap_sim_db_get_permanent()
[all …]
H A Deap_server_methods.c49 if (os_strcmp(m->name, name) == 0) { in eap_server_get_type()
119 os_strcmp(m->name, method->name) == 0) { in eap_server_method_register()
H A Dtncs.c302 if (os_strcmp(functionName, "TNC_TNCS_ReportMessageTypes") == 0) in TNC_TNCS_BindFunction()
304 else if (os_strcmp(functionName, "TNC_TNCS_SendMessage") == 0) in TNC_TNCS_BindFunction()
306 else if (os_strcmp(functionName, "TNC_TNCS_RequestHandshakeRetry") == in TNC_TNCS_BindFunction()
309 else if (os_strcmp(functionName, "TNC_TNCS_ProvideRecommendation") == in TNC_TNCS_BindFunction()
312 else if (os_strcmp(functionName, "TNC_TNCS_GetAttribute") == 0) in TNC_TNCS_BindFunction()
314 else if (os_strcmp(functionName, "TNC_TNCS_SetAttribute") == 0) in TNC_TNCS_BindFunction()
/freebsd-12.1/contrib/wpa/src/eap_peer/
H A Deap_teap_pac.c432 if (os_strcmp(pac_file_hdr, rc.buf) != 0) in eap_teap_load_pac()
436 if (os_strcmp(rc.buf, "START") == 0) in eap_teap_load_pac()
438 else if (os_strcmp(rc.buf, "END") == 0) { in eap_teap_load_pac()
443 else if (os_strcmp(rc.buf, "PAC-Type") == 0) in eap_teap_load_pac()
445 else if (os_strcmp(rc.buf, "PAC-Key") == 0) in eap_teap_load_pac()
447 else if (os_strcmp(rc.buf, "PAC-Opaque") == 0) in eap_teap_load_pac()
449 else if (os_strcmp(rc.buf, "A-ID") == 0) in eap_teap_load_pac()
451 else if (os_strcmp(rc.buf, "I-ID") == 0) in eap_teap_load_pac()
453 else if (os_strcmp(rc.buf, "A-ID-Info") == 0) in eap_teap_load_pac()
H A Deap_fast_pac.c431 if (os_strcmp(pac_file_hdr, rc.buf) != 0) in eap_fast_load_pac()
435 if (os_strcmp(rc.buf, "START") == 0) in eap_fast_load_pac()
437 else if (os_strcmp(rc.buf, "END") == 0) { in eap_fast_load_pac()
442 else if (os_strcmp(rc.buf, "PAC-Type") == 0) in eap_fast_load_pac()
444 else if (os_strcmp(rc.buf, "PAC-Key") == 0) in eap_fast_load_pac()
446 else if (os_strcmp(rc.buf, "PAC-Opaque") == 0) in eap_fast_load_pac()
448 else if (os_strcmp(rc.buf, "A-ID") == 0) in eap_fast_load_pac()
450 else if (os_strcmp(rc.buf, "I-ID") == 0) in eap_fast_load_pac()
452 else if (os_strcmp(rc.buf, "A-ID-Info") == 0) in eap_fast_load_pac()
H A Dtncc.c239 if (os_strcmp(functionName, "TNC_TNCC_ReportMessageTypes") == 0) in TNC_TNCC_BindFunction()
241 else if (os_strcmp(functionName, "TNC_TNCC_SendMessage") == 0) in TNC_TNCC_BindFunction()
243 else if (os_strcmp(functionName, "TNC_TNCC_RequestHandshakeRetry") == in TNC_TNCC_BindFunction()
246 else if (os_strcmp(functionName, "TNC_9048_LogMessage") == 0) in TNC_TNCC_BindFunction()
248 else if (os_strcmp(functionName, "TNC_9048_UserMessage") == 0) in TNC_TNCC_BindFunction()
673 if (os_strcmp(pos, "allow") == 0) in tncc_get_recommendation()
675 else if (os_strcmp(pos, "none") == 0) in tncc_get_recommendation()
677 else if (os_strcmp(pos, "isolate") == 0) in tncc_get_recommendation()
/freebsd-12.1/contrib/wpa/hs20/client/
H A Dest.c262 if (os_strcmp(txt, "1.2.840.113549.1.9.7") == 0) { in add_csrattrs_oid()
264 } else if (os_strcmp(txt, "1.2.840.113549.1.1.11") == 0) { in add_csrattrs_oid()
287 if (os_strcmp(txt, "1.3.6.1.1.1.1.22") == 0) { in add_csrattrs_ext_req()
289 } else if (os_strcmp(txt, "1.3.6.1.4.1.40808.1.1.3") == 0) { in add_csrattrs_ext_req()
291 } else if (os_strcmp(txt, "1.3.6.1.4.1.40808.1.1.4") == 0) { in add_csrattrs_ext_req()
293 } else if (os_strcmp(txt, "1.3.6.1.4.1.40808.1.1.5") == 0) { in add_csrattrs_ext_req()
316 if (os_strcmp(txt, "1.2.840.113549.1.9.14") == 0) { in add_csrattrs_attr()
/freebsd-12.1/contrib/wpa/src/eapol_auth/
H A Deapol_auth_sm.c1123 if (os_strcmp(value, "Both") == 0) in eapol_auth_set_conf()
1125 else if (os_strcmp(value, "In") == 0) in eapol_auth_set_conf()
1134 if (os_strcmp(value, "ForceAuthorized") == 0) in eapol_auth_set_conf()
1136 else if (os_strcmp(value, "ForceUnauthorized") == 0) in eapol_auth_set_conf()
1138 else if (os_strcmp(value, "Auto") == 0) in eapol_auth_set_conf()
1162 if (os_strcmp(value, "TRUE") == 0) in eapol_auth_set_conf()
1164 else if (os_strcmp(value, "FALSE") == 0) in eapol_auth_set_conf()
1173 if (os_strcmp(value, "TRUE") == 0) in eapol_auth_set_conf()
1175 else if (os_strcmp(value, "FALSE") == 0) in eapol_auth_set_conf()
/freebsd-12.1/contrib/wpa/src/common/
H A Dwpa_common.c2444 if (os_strcmp(start, "CCMP-256") == 0) in wpa_parse_cipher()
2446 else if (os_strcmp(start, "GCMP-256") == 0) in wpa_parse_cipher()
2448 else if (os_strcmp(start, "CCMP") == 0) in wpa_parse_cipher()
2450 else if (os_strcmp(start, "GCMP") == 0) in wpa_parse_cipher()
2452 else if (os_strcmp(start, "TKIP") == 0) in wpa_parse_cipher()
2454 else if (os_strcmp(start, "WEP104") == 0) in wpa_parse_cipher()
2456 else if (os_strcmp(start, "WEP40") == 0) in wpa_parse_cipher()
2458 else if (os_strcmp(start, "NONE") == 0) in wpa_parse_cipher()
2460 else if (os_strcmp(start, "GTK_NOT_USED") == 0) in wpa_parse_cipher()
2462 else if (os_strcmp(start, "AES-128-CMAC") == 0) in wpa_parse_cipher()
[all …]

1234