HomeSort by: relevance | last modified time | path
    Searched refs:iph2 (Results 1 - 15 of 15) sorted by relevancy

  /src/crypto/dist/ipsec-tools/src/racoon/
isakmp_quick.c 113 quick_timeover(struct ph2handle *iph2)
117 saddrwop2str(iph2->dst));
120 if (iph2->side == INITIATOR)
121 pk_sendeacquire(iph2);
123 remph2(iph2);
124 delph2(iph2);
136 quick_i1prep(struct ph2handle *iph2, vchar_t *msg __unused) /* must be null pointer */
141 if (iph2->status != PHASE2ST_STATUS2) {
143 "status mismatched %d.\n", iph2->status);
147 iph2->msgid = isakmp_newmsgid2(iph2->ph1)
    [all...]
handler.c 642 struct ph2handle *iph2; local
645 LIST_FOREACH(iph2, &ph2tree, chain) {
646 if (iph2->proposal == NULL && iph2->approval == NULL)
648 if (iph2->approval != NULL) {
649 for (pr = iph2->approval->head; pr != NULL;
654 return iph2;
656 } else if (iph2->proposal != NULL) {
657 for (pr = iph2->proposal->head; pr != NULL;
662 return iph2;
676 struct ph2handle *iph2 = NULL; local
863 struct ph2handle *iph2, *next; local
1423 struct ph2handle *iph2, *iph2_next; local
    [all...]
isakmp.c 653 struct ph2handle *iph2; local
688 iph2 = getph2bymsgid(iph1, msgid);
689 if (iph2 == NULL) {
705 iph2->flags |= ISAKMP_FLAG_C;
708 if (quick_main(iph2, msg) < 0) {
711 remph2(iph2);
712 delph2(iph2);
958 quick_main(struct ph2handle *iph2, vchar_t *msg)
967 if (iph2->status == PHASE2ST_ESTABLISHED
968 || iph2->status == PHASE2ST_GETSPISENT
1308 struct ph2handle *iph2 = 0; local
1865 struct ph2handle *iph2 = container_of(p, struct ph2handle, scr); local
3165 struct ph2handle *iph2; local
    [all...]
pfkey.c 873 pk_sendgetspi(struct ph2handle *iph2)
883 if (iph2->side == INITIATOR)
884 pp = iph2->proposal;
886 pp = iph2->approval;
888 if (iph2->sa_src && iph2->sa_dst) {
890 src = dupsaddr(iph2->sa_src);
891 dst = dupsaddr(iph2->sa_dst);
894 src = dupsaddr(iph2->src);
895 dst = dupsaddr(iph2->dst)
979 struct ph2handle *iph2; local
1231 struct ph2handle *iph2; local
1509 struct ph2handle *iph2; local
1574 struct ph2handle *iph2; local
1693 struct ph2handle *iph2; local
1956 struct ph2handle *iph2 = NULL; local
3322 struct ph2handle *iph2; local
    [all...]
admin.c 488 struct ph2handle *iph2; local
516 iph2 = getph2byid(src, dst, sp_out->id);
517 if (iph2 != NULL) {
518 event_list = &iph2->evt_listeners;
519 if (iph2->status == PHASE2ST_ESTABLISHED)
549 iph2 = newph2();
550 if (iph2 == NULL) {
555 iph2->side = INITIATOR;
556 iph2->satype = admin2pfkey_proto(com->ac_proto);
557 iph2->spid = sp_out->id
    [all...]
isakmp_inf.c 607 isakmp_info_send_d2( struct ph2handle *iph2)
617 if (iph2->status != PHASE2ST_ESTABLISHED)
624 iph1 = getph1byaddr(iph2->src, iph2->dst, 0);
632 for (pr = iph2->approval->head; pr != NULL; pr = pr->next) {
804 isakmp_info_send_n2(struct ph2handle *iph2, int type, vchar_t *data)
806 struct ph1handle *iph1 = iph2->ph1;
813 if (!iph2->approval)
816 pr = iph2->approval->head;
840 iph2->flags |= ISAKMP_FLAG_E; /* XXX Should we do FLAG_A ? *
854 struct ph2handle *iph2 = NULL; local
1054 struct ph2handle *iph2; local
1184 struct ph2handle *iph2; local
    [all...]
security.c 164 set_secctx_in_proposal(iph2, spidx)
165 struct ph2handle *iph2;
168 iph2->proposal->sctx.ctx_doi = spidx.sec_ctx.ctx_doi;
169 iph2->proposal->sctx.ctx_alg = spidx.sec_ctx.ctx_alg;
170 iph2->proposal->sctx.ctx_strlen = spidx.sec_ctx.ctx_strlen;
171 memcpy(iph2->proposal->sctx.ctx_str, spidx.sec_ctx.ctx_str,
isakmp_cfg.c 1118 struct ph2handle *iph2 = NULL; local
1137 iph2 = newph2();
1138 if (iph2 == NULL)
1141 iph2->dst = dupsaddr(iph1->remote);
1142 if (iph2->dst == NULL) {
1143 delph2(iph2);
1146 iph2->src = dupsaddr(iph1->local);
1147 if (iph2->src == NULL) {
1148 delph2(iph2);
1152 iph2->side = INITIATOR
    [all...]
proposal.c 1002 set_proposal_from_policy(struct ph2handle *iph2,
1017 newpp->lifetime = iph2->sainfo->lifetime;
1018 newpp->lifebyte = iph2->sainfo->lifebyte;
1019 newpp->pfs_group = iph2->sainfo->pfs_group;
1034 if (iph2->ph1 && (iph2->ph1->natt_flags & NAT_DETECTED))
1035 encmodesv += iph2->ph1->natt_options->mode_udp_diff;
1067 if (iph2->ph1 && (iph2->ph1->natt_flags & NAT_DETECTED))
1069 iph2->ph1->natt_options->mode_udp_diff
    [all...]
ipsec_doi.c 732 ipsecdoi_selectph2proposal(struct ph2handle *iph2)
739 pair = get_proppair_and_doi_sit(iph2->sa, IPSECDOI_TYPE_PH2,
745 ret = get_ph2approval(iph2, pair);
752 iph2->sa_ret = get_sabyproppair(doitype, sittype, ret);
754 if (iph2->sa_ret == NULL)
768 ipsecdoi_checkph2proposal(struct ph2handle *iph2)
778 spair = get_proppair_and_doi_sit(iph2->sa, IPSECDOI_TYPE_PH2,
789 rpair = get_proppair(iph2->sa_ret, IPSECDOI_TYPE_PH2);
839 p = get_ph2approval(iph2, rpair);
844 sa_ret = iph2->sa_ret
    [all...]
policy.c 106 getsp_r(spidx, iph2)
108 struct ph2handle *iph2;
139 saddr2str(iph2->src));
143 if (cmpsaddr(iph2->src, (struct sockaddr *) &spidx->src) != CMPSADDR_MATCH ||
148 saddr2str(iph2->dst));
152 if (cmpsaddr(iph2->dst, (struct sockaddr *) &spidx->dst) != CMPSADDR_MATCH ||
oakley.c 469 oakley_compute_keymat(struct ph2handle *iph2, int side)
474 if (iph2->approval->pfs_group && iph2->dhpub_p) {
475 if (oakley_dh_compute(iph2->pfsgrp, iph2->dhpub,
476 iph2->dhpriv, iph2->dhpub_p, &iph2->dhgxy) < 0)
481 if (oakley_compute_keymat_x(iph2, side, INBOUND_SA) < 0
482 || oakley_compute_keymat_x(iph2, side, OUTBOUND_SA) < 0
    [all...]
ipsec_doi.h 222 extern int ipsecdoi_updatespi(struct ph2handle *iph2);
handler.h 497 int (* enum_func)(struct ph2handle *iph2, void *arg), void *enum_arg);
racoonctl.c 1101 struct ph2handle *iph2; local
1124 iph2 = (struct ph2handle *)buf;
1125 addr = (struct sockaddr *)(++iph2);

Completed in 79 milliseconds