Home
last modified time | relevance | path

Searched refs:sa_hdr (Results 1 – 9 of 9) sorted by relevance

/openbsd/sbin/iked/
H A Dpolicy.c179 if (sa->sa_hdr.sh_initiator) { in policy_lookup_sa()
510 sa->sa_hdr.sh_ispi = ispi; in sa_new()
520 sa->sa_hdr.sh_rspi = rspi; in sa_new()
827 key.sa_hdr.sh_ispi = ispi; in sa_lookup()
828 key.sa_hdr.sh_initiator = initiator; in sa_lookup()
834 if ((sa->sa_hdr.sh_rspi != 0) && in sa_lookup()
836 (sa->sa_hdr.sh_rspi != rspi)) in sa_lookup()
846 if (a->sa_hdr.sh_initiator > b->sa_hdr.sh_initiator) in sa_cmp()
848 if (a->sa_hdr.sh_initiator < b->sa_hdr.sh_initiator) in sa_cmp()
851 if (a->sa_hdr.sh_ispi > b->sa_hdr.sh_ispi) in sa_cmp()
[all …]
H A Dikev2.c973 if (!sa->sa_hdr.sh_initiator && in ikev2_ike_auth_recv()
978 if (sa->sa_hdr.sh_initiator) in ikev2_ike_auth_recv()
1167 if (sa->sa_hdr.sh_initiator) { in ikev2_ike_auth()
1923 if (sa->sa_hdr.sh_initiator) in ikev2_add_header()
2710 sa->sa_hdr.sh_ispi : sa->sa_hdr.sh_rspi; in ikev2_add_proposals()
3386 if (sa->sa_hdr.sh_initiator) { in ikev2_resp_ike_sa_init()
3532 if (sa->sa_hdr.sh_initiator) { in ikev2_send_auth_failed()
3697 if (sa->sa_hdr.sh_initiator) { in ikev2_send_init_error()
3755 if (sa->sa_hdr.sh_initiator) in ikev2_handle_certreq()
4732 if (sa->sa_hdr.sh_initiator == nsa->sa_hdr.sh_initiator) { in ikev2_ikesa_enable()
[all …]
H A Dikev2_msg.c429 if (sa->sa_hdr.sh_initiator) in ikev2_msg_encrypt()
535 if (sa->sa_hdr.sh_initiator) in ikev2_msg_integr()
589 if (!sa->sa_hdr.sh_initiator) { in ikev2_msg_decrypt()
1012 if (sa->sa_hdr.sh_initiator) in ikev2_msg_authverify()
1087 if (sa->sa_hdr.sh_initiator) in ikev2_msg_authsign()
1174 if (!sa->sa_hdr.sh_initiator && in ikev2_msg_frompeer()
1177 else if (sa->sa_hdr.sh_initiator && in ikev2_msg_frompeer()
H A Dikev2_pld.c763 if (((sa->sa_hdr.sh_initiator && payload == IKEV2_PAYLOAD_IDr) || in ikev2_pld_id()
764 (!sa->sa_hdr.sh_initiator && payload == IKEV2_PAYLOAD_IDi))) in ikev2_pld_id()
766 else if (!sa->sa_hdr.sh_initiator && payload == IKEV2_PAYLOAD_IDr) in ikev2_pld_id()
1112 if (!sa->sa_hdr.sh_initiator) { in ikev2_pld_notify()
1837 sa->sa_hdr.sh_initiator = sa->sa_hdr.sh_initiator ? 0 : 1; in ikev2_pld_e()
1839 sa->sa_hdr.sh_initiator = sa->sa_hdr.sh_initiator ? 0 : 1; in ikev2_pld_e()
H A Deap.c102 if (sa->sa_hdr.sh_initiator) in eap_identity_request()
355 if (sa->sa_hdr.sh_initiator) { in eap_mschap()
H A Diked.h418 struct iked_sahdr sa_hdr; member
489 #define IKESA_SRCID(x) ((x)->sa_hdr.sh_initiator ? &(x)->sa_iid : &(x)->sa_rid)
490 #define IKESA_DSTID(x) ((x)->sa_hdr.sh_initiator ? &(x)->sa_rid : &(x)->sa_iid)
1204 #define SPI_SA(sa, f) SPI_SH(&(sa)->sa_hdr, (f))
H A Dca.c512 iov[iovcnt].iov_base = &sa->sa_hdr; in ca_setreq()
513 iov[iovcnt].iov_len = sizeof(sa->sa_hdr); in ca_setreq()
582 iov[0].iov_base = &sa->sa_hdr; in ca_setauth()
583 iov[0].iov_len = sizeof(sa->sa_hdr); in ca_setauth()
941 memcpy(&sa.sa_hdr, &sh, sizeof(sh)); in ca_getauth()
H A Dconfig.c52 sa->sa_hdr.sh_initiator = initiator; in config_new_sa()
56 sa->sa_hdr.sh_ispi = config_getspi(); in config_new_sa()
58 sa->sa_hdr.sh_rspi = config_getspi(); in config_new_sa()
H A Dradius.c734 (unsigned long long)sa->sa_hdr.sh_ispi); in iked_radius_acct_request()
893 if (sa->sa_hdr.sh_ispi == ispi) in iked_radius_dae_on_event()