/openbsd-current/sbin/iked/ |
H A D | eap.c | 1 /* $OpenBSD: eap.c,v 1.27 2024/07/13 12:22:46 yasuoka Exp $ */ 41 #include "eap.h" 52 struct eap_message *eap; local 54 if ((eap = ibuf_reserve(e, sizeof(*eap))) == NULL) 56 eap->eap_code = EAP_CODE_REQUEST; 57 eap->eap_id = 0; 58 eap->eap_length = htobe16(sizeof(*eap)); 59 eap 65 eap_validate_id_response(struct eap_message *eap) argument 192 struct eap_message *eap; local 340 eap_mschap(struct iked *env, const struct iked_sa *sa, struct iked_message *msg, struct eap_message *eap) argument 418 struct eap_message *eap = data; local [all...] |
H A D | Makefile | 5 eap.c iked.c ikev2.c ikev2_msg.c ikev2_pld.c \ 30 eap_map.c: genmap.sh eap.h 31 /bin/sh ${.CURDIR}/genmap.sh ${.CURDIR}/eap.h eap > $@
|
H A D | radius.c | 41 #include "eap.h" 69 struct eap_message *eap; local 73 eap = ibuf_data(msg->msg_eapmsg); 74 len = betoh16(eap->eap_length); 75 if (eap->eap_code != EAP_CODE_RESPONSE) { 77 (unsigned)eap->eap_code); 81 if (eap->eap_type == EAP_TYPE_IDENTITY) { 109 (uint8_t *)eap, len) == -1) {
|
H A D | ikev2_pld.c | 43 #include "eap.h" 2075 struct eap_message *eap = NULL; local 2089 if (eap_len < sizeof(*eap)) { 2095 if ((eap = ibuf_seek(msg->msg_data, offset, eap_len)) == NULL) { 2101 print_map(eap->eap_code, eap_code_map), 2102 eap->eap_id, betoh16(eap->eap_length), 2103 print_map(eap->eap_type, eap_type_map)); 2105 if (eap_parse(env, sa, msg, eap, msg->msg_response) == -1) 2111 if ((msg->msg_parent->msg_eapmsg = ibuf_new(eap, eap_le [all...] |
H A D | ikev2.c | 47 #include "eap.h" 3026 log_info("%s: failed eap response", 3792 struct eap_msg *eap = &msg->msg_eap; local 3799 switch (eap->eam_state) { 3801 sa->sa_eapid = eap->eam_identity; 3802 return (eap_challenge_request(env, sa, eap->eam_id)); 3804 if (eap->eam_user) { 3805 name = eap->eam_user; 3824 eap->eam_challenge, usr->usr_name, strlen(usr->usr_name), 3827 if (memcmp(ntresponse, eap [all...] |
/openbsd-current/usr.sbin/radiusd/ |
H A D | radiusd_eap2mschap.c | 294 struct eap *eap; local 324 eap = (struct eap *)buf; 325 if (msgsiz < offsetof(struct eap, value[1]) || 326 ntohs(eap->length) > msgsiz) { 328 "received length %zu eap.length=%u", q_id, msgsiz, 329 ntohs(eap->length)); 334 (int)eap->code, (int)eap 630 } eap; local 728 } __packed eap; local [all...] |
H A D | eap2mschap_local.h | 45 struct eap { struct 60 struct eap eap; member in struct:eap_chap 66 struct eap eap; member in struct:eap_mschap_challenge 80 struct eap eap; member in struct:eap_mschap_response
|
H A D | radiusd_ipcp.c | 954 } __packed eap; local 972 memset(&eap, 0, sizeof(eap)); /* just in case */ 973 eap.code = 1; /* EAP Request */ 977 eap.id = attr[1]; 979 eap.id = 0; 980 eap.length = htons(sizeof(eap)); 981 radius_put_raw_attr(resp, RADIUS_TYPE_EAP_MESSAGE, &eap, 982 ntohs(eap [all...] |
/openbsd-current/sys/dev/dec/ |
H A D | if_le_dec.c | 72 dec_le_common_attach(struct am7990_softc *sc, u_char *eap) argument 89 lsc->sc_arpcom.ac_enaddr[i] = *eap; 90 eap += 4;
|
/openbsd-current/usr.bin/getent/ |
H A D | getent.c | 150 #define ETHERSPRINT printf("%-17s %s\n", ether_ntoa(eap), hp) 157 struct ether_addr ea, *eap; local 165 if ((eap = ether_aton(argv[i])) == NULL) { 166 eap = &ea; 168 if (ether_hostton(hp, eap) != 0) { 174 if (ether_ntohost(hp, eap) != 0) {
|
/openbsd-current/usr.sbin/npppd/npppd/ |
H A D | ppp.h | 242 uint8_t eap; member in struct:_lcp::_opt 341 } eap; typedef in typeref:struct:_eap 486 eap eap; /** eap */ member in struct:_npppd_ppp 808 void eap_init(eap *, npppd_ppp *); 809 void eap_stop(eap *); 810 void eap_start(eap *); 811 void eap_input(eap *, u_char *, int);
|
H A D | lcp.c | 108 (!psm_opt_is_enabled(lcp, eap) || psm_opt_is_rejected(lcp, eap)) 209 else if (psm_opt_is_accepted(_this, eap)) 358 if (psm_opt_is_rejected(_this, eap)) 363 psm_opt_set_requested(_this, eap, 1); 609 LCP_OPT_ACCEPTED(eap); 693 psm_opt_set_rejected(_this, eap, 1); 738 peer_auth = "eap"; 739 if (psm_opt_is_requested(_this, eap)) 740 psm_opt_set_accepted(_this, eap, [all...] |
H A D | ppp.c | 282 eap_stop(&_this->eap); 491 eap_init(&_this->eap, _this); 492 eap_start(&_this->eap); 547 case PPP_PROTO_EAP: return "eap"; 899 eap_input(&_this->eap, inp, lpkt - (inp - pkt));
|
/openbsd-current/share/man/man4/ |
H A D | Makefile | 34 eap.4 ec.4 eephy.4 ef.4 efi.4 eg.4 ehci.4 eisa.4 el.4 em.4 emc.4 gcu.4 \
|
/openbsd-current/sbin/ifconfig/ |
H A D | ifconfig.c | 6726 struct ether_addr *eap, eabuf; local 6732 eap = &eabuf; 6734 eap = ether_aton(addr); 6735 if (eap == NULL) { 6743 bcopy(eap, ifr.ifr_addr.sa_data, ETHER_ADDR_LEN);
|