/freebsd/contrib/wpa/src/eap_peer/ |
H A D | eap_tls.c | 433 struct eap_method *eap; in eap_peer_tls_register() local 435 eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, in eap_peer_tls_register() 437 if (eap == NULL) in eap_peer_tls_register() 440 eap->init = eap_tls_init; in eap_peer_tls_register() 441 eap->deinit = eap_tls_deinit; in eap_peer_tls_register() 442 eap->process = eap_tls_process; in eap_peer_tls_register() 443 eap->isKeyAvailable = eap_tls_isKeyAvailable; in eap_peer_tls_register() 444 eap->getKey = eap_tls_getKey; in eap_peer_tls_register() 445 eap->getSessionId = eap_tls_get_session_id; in eap_peer_tls_register() 446 eap->get_status = eap_tls_get_status; in eap_peer_tls_register() [all …]
|
H A D | eap_otp.c | 85 struct eap_method *eap; in eap_peer_otp_register() local 87 eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, in eap_peer_otp_register() 89 if (eap == NULL) in eap_peer_otp_register() 92 eap->init = eap_otp_init; in eap_peer_otp_register() 93 eap->deinit = eap_otp_deinit; in eap_peer_otp_register() 94 eap->process = eap_otp_process; in eap_peer_otp_register() 96 return eap_peer_method_register(eap); in eap_peer_otp_register()
|
H A D | eap_vendor_test.c | 171 struct eap_method *eap; in eap_peer_vendor_test_register() local 173 eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, in eap_peer_vendor_test_register() 176 if (eap == NULL) in eap_peer_vendor_test_register() 179 eap->init = eap_vendor_test_init; in eap_peer_vendor_test_register() 180 eap->deinit = eap_vendor_test_deinit; in eap_peer_vendor_test_register() 181 eap->process = eap_vendor_test_process; in eap_peer_vendor_test_register() 182 eap->isKeyAvailable = eap_vendor_test_isKeyAvailable; in eap_peer_vendor_test_register() 183 eap->getKey = eap_vendor_test_getKey; in eap_peer_vendor_test_register() 185 return eap_peer_method_register(eap); in eap_peer_vendor_test_register()
|
H A D | eap_md5.c | 104 struct eap_method *eap; in eap_peer_md5_register() local 106 eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, in eap_peer_md5_register() 108 if (eap == NULL) in eap_peer_md5_register() 111 eap->init = eap_md5_init; in eap_peer_md5_register() 112 eap->deinit = eap_md5_deinit; in eap_peer_md5_register() 113 eap->process = eap_md5_process; in eap_peer_md5_register() 115 return eap_peer_method_register(eap); in eap_peer_md5_register()
|
H A D | eap_leap.c | 281 const struct eap_hdr *eap; in eap_leap_process() local 299 eap = wpabuf_head(reqData); in eap_leap_process() 300 if (wpabuf_len(reqData) < sizeof(*eap) || in eap_leap_process() 301 be_to_host16(eap->length) > wpabuf_len(reqData)) { in eap_leap_process() 314 switch (eap->code) { in eap_leap_process() 323 "ignored", eap->code); in eap_leap_process() 402 struct eap_method *eap; in eap_peer_leap_register() local 404 eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, in eap_peer_leap_register() 406 if (eap == NULL) in eap_peer_leap_register() 409 eap->init = eap_leap_init; in eap_peer_leap_register() [all …]
|
H A D | eap_gtc.c | 129 struct eap_method *eap; in eap_peer_gtc_register() local 131 eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION, in eap_peer_gtc_register() 133 if (eap == NULL) in eap_peer_gtc_register() 136 eap->init = eap_gtc_init; in eap_peer_gtc_register() 137 eap->deinit = eap_gtc_deinit; in eap_peer_gtc_register() 138 eap->process = eap_gtc_process; in eap_peer_gtc_register() 140 return eap_peer_method_register(eap); in eap_peer_gtc_register()
|
H A D | eap_methods.c | 286 struct eap_method *eap; in eap_peer_method_alloc() local 287 eap = os_zalloc(sizeof(*eap)); in eap_peer_method_alloc() 288 if (eap == NULL) in eap_peer_method_alloc() 290 eap->version = version; in eap_peer_method_alloc() 291 eap->vendor = vendor; in eap_peer_method_alloc() 292 eap->method = method; in eap_peer_method_alloc() 293 eap->name = name; in eap_peer_method_alloc() 294 return eap; in eap_peer_method_alloc()
|
/freebsd/contrib/wpa/src/eap_server/ |
H A D | eap_server_tls.c | 430 struct eap_method *eap; in eap_server_tls_register() local 432 eap = eap_server_method_alloc(EAP_SERVER_METHOD_INTERFACE_VERSION, in eap_server_tls_register() 434 if (eap == NULL) in eap_server_tls_register() 437 eap->init = eap_tls_init; in eap_server_tls_register() 438 eap->reset = eap_tls_reset; in eap_server_tls_register() 439 eap->buildReq = eap_tls_buildReq; in eap_server_tls_register() 440 eap->check = eap_tls_check; in eap_server_tls_register() 441 eap->process = eap_tls_process; in eap_server_tls_register() 442 eap->isDone = eap_tls_isDone; in eap_server_tls_register() 443 eap->getKey = eap_tls_getKey; in eap_server_tls_register() [all …]
|
H A D | eap_server_vendor_test.c | 170 struct eap_method *eap; in eap_server_vendor_test_register() local 172 eap = eap_server_method_alloc(EAP_SERVER_METHOD_INTERFACE_VERSION, in eap_server_vendor_test_register() 175 if (eap == NULL) in eap_server_vendor_test_register() 178 eap->init = eap_vendor_test_init; in eap_server_vendor_test_register() 179 eap->reset = eap_vendor_test_reset; in eap_server_vendor_test_register() 180 eap->buildReq = eap_vendor_test_buildReq; in eap_server_vendor_test_register() 181 eap->check = eap_vendor_test_check; in eap_server_vendor_test_register() 182 eap->process = eap_vendor_test_process; in eap_server_vendor_test_register() 183 eap->isDone = eap_vendor_test_isDone; in eap_server_vendor_test_register() 184 eap->getKey = eap_vendor_test_getKey; in eap_server_vendor_test_register() [all …]
|
H A D | eap_server_identity.c | 159 struct eap_method *eap; in eap_server_identity_register() local 161 eap = eap_server_method_alloc(EAP_SERVER_METHOD_INTERFACE_VERSION, in eap_server_identity_register() 164 if (eap == NULL) in eap_server_identity_register() 167 eap->init = eap_identity_init; in eap_server_identity_register() 168 eap->initPickUp = eap_identity_initPickUp; in eap_server_identity_register() 169 eap->reset = eap_identity_reset; in eap_server_identity_register() 170 eap->buildReq = eap_identity_buildReq; in eap_server_identity_register() 171 eap->check = eap_identity_check; in eap_server_identity_register() 172 eap->process = eap_identity_process; in eap_server_identity_register() 173 eap->isDone = eap_identity_isDone; in eap_server_identity_register() [all …]
|
H A D | eap_server_methods.c | 76 struct eap_method *eap; in eap_server_method_alloc() local 77 eap = os_zalloc(sizeof(*eap)); in eap_server_method_alloc() 78 if (eap == NULL) in eap_server_method_alloc() 80 eap->version = version; in eap_server_method_alloc() 81 eap->vendor = vendor; in eap_server_method_alloc() 82 eap->method = method; in eap_server_method_alloc() 83 eap->name = name; in eap_server_method_alloc() 84 return eap; in eap_server_method_alloc()
|
H A D | eap_server_md5.c | 155 struct eap_method *eap; in eap_server_md5_register() local 157 eap = eap_server_method_alloc(EAP_SERVER_METHOD_INTERFACE_VERSION, in eap_server_md5_register() 159 if (eap == NULL) in eap_server_md5_register() 162 eap->init = eap_md5_init; in eap_server_md5_register() 163 eap->reset = eap_md5_reset; in eap_server_md5_register() 164 eap->buildReq = eap_md5_buildReq; in eap_server_md5_register() 165 eap->check = eap_md5_check; in eap_server_md5_register() 166 eap->process = eap_md5_process; in eap_server_md5_register() 167 eap->isDone = eap_md5_isDone; in eap_server_md5_register() 168 eap->isSuccess = eap_md5_isSuccess; in eap_server_md5_register() [all …]
|
H A D | eap_server_gtc.c | 203 struct eap_method *eap; in eap_server_gtc_register() local 205 eap = eap_server_method_alloc(EAP_SERVER_METHOD_INTERFACE_VERSION, in eap_server_gtc_register() 207 if (eap == NULL) in eap_server_gtc_register() 210 eap->init = eap_gtc_init; in eap_server_gtc_register() 211 eap->reset = eap_gtc_reset; in eap_server_gtc_register() 212 eap->buildReq = eap_gtc_buildReq; in eap_server_gtc_register() 213 eap->check = eap_gtc_check; in eap_server_gtc_register() 214 eap->process = eap_gtc_process; in eap_server_gtc_register() 215 eap->isDone = eap_gtc_isDone; in eap_server_gtc_register() 216 eap->isSuccess = eap_gtc_isSuccess; in eap_server_gtc_register() [all …]
|
H A D | eap_server_wsc.c | 492 struct eap_method *eap; in eap_server_wsc_register() local 494 eap = eap_server_method_alloc(EAP_SERVER_METHOD_INTERFACE_VERSION, in eap_server_wsc_register() 497 if (eap == NULL) in eap_server_wsc_register() 500 eap->init = eap_wsc_init; in eap_server_wsc_register() 501 eap->reset = eap_wsc_reset; in eap_server_wsc_register() 502 eap->buildReq = eap_wsc_buildReq; in eap_server_wsc_register() 503 eap->check = eap_wsc_check; in eap_server_wsc_register() 504 eap->process = eap_wsc_process; in eap_server_wsc_register() 505 eap->isDone = eap_wsc_isDone; in eap_server_wsc_register() 506 eap->isSuccess = eap_wsc_isSuccess; in eap_server_wsc_register() [all …]
|
H A D | eap_server_ttls.c | 159 u8 *eap; member 230 if (parse->eap == NULL) { in eap_ttls_avp_parse() 231 parse->eap = os_memdup(dpos, dlen); in eap_ttls_avp_parse() 232 if (parse->eap == NULL) { in eap_ttls_avp_parse() 240 u8 *neweap = os_realloc(parse->eap, in eap_ttls_avp_parse() 249 parse->eap = neweap; in eap_ttls_avp_parse() 325 os_free(parse->eap); in eap_ttls_avp_parse() 326 parse->eap = NULL; in eap_ttls_avp_parse() 967 const u8 *eap, size_t eap_len) in eap_ttls_process_phase2_eap() argument 988 hdr = (struct eap_hdr *) eap; in eap_ttls_process_phase2_eap() [all …]
|
H A D | eap_server_ikev2.c | 551 struct eap_method *eap; in eap_server_ikev2_register() local 553 eap = eap_server_method_alloc(EAP_SERVER_METHOD_INTERFACE_VERSION, in eap_server_ikev2_register() 556 if (eap == NULL) in eap_server_ikev2_register() 559 eap->init = eap_ikev2_init; in eap_server_ikev2_register() 560 eap->reset = eap_ikev2_reset; in eap_server_ikev2_register() 561 eap->buildReq = eap_ikev2_buildReq; in eap_server_ikev2_register() 562 eap->check = eap_ikev2_check; in eap_server_ikev2_register() 563 eap->process = eap_ikev2_process; in eap_server_ikev2_register() 564 eap->isDone = eap_ikev2_isDone; in eap_server_ikev2_register() 565 eap->getKey = eap_ikev2_getKey; in eap_server_ikev2_register() [all …]
|
/freebsd/sys/ufs/ufs/ |
H A D | extattr.h | 95 #define EXTATTR_NEXT(eap) \ argument 96 ((struct extattr *)(__DECONST(char *, (eap)) + (eap)->ea_length)) 97 #define EXTATTR_CONTENT(eap) \ argument 98 (void *)(((u_char *)(eap)) + EXTATTR_BASE_LENGTH(eap)) 99 #define EXTATTR_CONTENT_SIZE(eap) \ argument 100 ((eap)->ea_length - EXTATTR_BASE_LENGTH(eap) - (eap)->ea_contentpadlen) 102 #define EXTATTR_BASE_LENGTH(eap) \ argument 103 roundup2((sizeof(struct extattr) - 1 + (eap)->ea_namelength), 8)
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | wpa_supplicant.conf | 1813 eap=TLS 1827 eap=PEAP 1841 eap=TTLS 1854 eap=TTLS 1867 eap=TTLS 1904 eap=SIM 1914 eap=PSK 1927 eap=TLS 1941 eap=LEAP 1950 eap=IKEV2 [all …]
|
H A D | config.c | 1632 if (!errors && ssid->eap.eap_methods) { in wpa_config_parse_eap() 1636 prev_m = ssid->eap.eap_methods; in wpa_config_parse_eap() 1660 os_free(ssid->eap.eap_methods); in wpa_config_parse_eap() 1661 ssid->eap.eap_methods = methods; in wpa_config_parse_eap() 1672 const struct eap_method_type *eap_methods = ssid->eap.eap_methods; in wpa_config_write_eap() 1710 if (!ssid->eap.password) in wpa_config_parse_password() 1713 bin_clear_free(ssid->eap.password, ssid->eap.password_len); in wpa_config_parse_password() 1714 ssid->eap.password = NULL; in wpa_config_parse_password() 1715 ssid->eap.password_len = 0; in wpa_config_parse_password() 1724 bin_clear_free(ssid->eap.password, ssid->eap.password_len); in wpa_config_parse_password() [all …]
|
H A D | interworking.c | 347 struct nai_realm_eap *eap; member 358 os_free(realms[i].eap); in nai_realm_free() 514 r->eap = os_calloc(r->eap_count, sizeof(struct nai_realm_eap)); in nai_realm_parse_realm() 515 if (r->eap == NULL) in nai_realm_parse_realm() 519 pos = nai_realm_parse_eap(&r->eap[e], pos, f_end); in nai_realm_parse_realm() 608 struct nai_realm_eap *eap) in nai_realm_cred_username() argument 610 if (eap_get_name(EAP_VENDOR_IETF, eap->method) == NULL) { in nai_realm_cred_username() 613 eap->method); in nai_realm_cred_username() 617 if (eap->method != EAP_TYPE_TTLS && eap->method != EAP_TYPE_PEAP && in nai_realm_cred_username() 618 eap->method != EAP_TYPE_FAST) { in nai_realm_cred_username() [all …]
|
/freebsd/libexec/bootpd/ |
H A D | getether.c | 40 getether(ifname, eap) in getether() argument 41 char *ifname, *eap; in getether() 55 bcopy(&phys.current_pa[0], eap, EALEN); 73 getether(ifname, eap) in getether() argument 75 char *eap; /* Ether address (output) */ 100 bcopy(&ifrnit.ifr_addr.sa_data[0], eap, EALEN); 120 getether(char *ifname, char *eap) in getether() argument 149 bcopy(LLADDR((struct sockaddr_dl *) &ifrp->ifr_addr), eap, EALEN); in getether() 184 getether(ifname, eap) in getether() argument 186 char *eap; /* Ether address (output) */ [all …]
|
/freebsd/sys/ufs/ffs/ |
H A D | ffs_vnops.c | 1313 struct extattr *eap, *eaend; in ffs_findextattr() local 1318 eap = (struct extattr *)ptr; in ffs_findextattr() 1320 for (; eap < eaend; eap = EXTATTR_NEXT(eap)) { in ffs_findextattr() 1321 KASSERT(EXTATTR_NEXT(eap) <= eaend, in ffs_findextattr() 1322 ("extattr next %p beyond %p", EXTATTR_NEXT(eap), eaend)); in ffs_findextattr() 1323 if (eap->ea_namespace != nspace || eap->ea_namelength != nlen in ffs_findextattr() 1324 || memcmp(eap->ea_name, name, nlen) != 0) in ffs_findextattr() 1327 *eapp = eap; in ffs_findextattr() 1329 *eac = EXTATTR_CONTENT(eap); in ffs_findextattr() 1330 return (EXTATTR_CONTENT_SIZE(eap)); in ffs_findextattr() [all …]
|
/freebsd/sbin/restore/ |
H A D | tape.c | 730 struct extattr *eap, *eaend; in set_extattr() 738 for (eap = buf; eap < eaend; eap = EXTATTR_NEXT(eap)) { in set_extattr() 742 if (EXTATTR_NEXT(eap) > eaend || eap->ea_length <= 0) { in set_extattr() 744 eap == buf ? "" : "remainder "); in set_extattr() 747 if (eap->ea_namespace == EXTATTR_NAMESPACE_EMPTY) in set_extattr() 750 (int)eap in set_extattr() 729 struct extattr *eap, *eaend; set_extattr() local [all...] |
/freebsd/contrib/tcpdump/ |
H A D | print-eap.c | 305 const struct eap_frame_t *eap; in eapol_print() local 309 eap = (const struct eap_frame_t *)cp; in eapol_print() 310 ND_TCHECK_SIZE(eap); in eapol_print() 311 eap_type = GET_U_1(eap->type); in eapol_print() 316 GET_U_1(eap->version), in eapol_print() 317 GET_BE_U_2(eap->length)); in eapol_print() 322 eap_len = GET_BE_U_2(eap->length); in eapol_print()
|
/freebsd/contrib/wpa/src/eapol_supp/ |
H A D | eapol_supp_sm.c | 124 struct eap_sm *eap; member 522 eap_peer_erp_init(sm->eap, session_id, in SM_STATE() 534 if (eap_key_available(sm->eap)) { in SM_STATE() 902 resp = eap_get_eapRespData(sm->eap); in eapol_sm_txSuppRsp() 934 eap_sm_abort(sm->eap); in eapol_sm_abortSupp() 995 if (eap_proxy_sm_step(sm->eap_proxy, sm->eap)) in eapol_sm_step() 999 if (eap_peer_sm_step(sm->eap)) in eapol_sm_step() 1016 else if (eap_peer_was_failure_expected(sm->eap)) in eapol_sm_step() 1140 return eap_sm_get_method_name(sm->eap); in eapol_sm_get_method_name() 1199 len += eap_sm_get_status(sm->eap, buf + len, buflen - len, verbose); in eapol_sm_get_status() [all …]
|