Lines Matching refs:iph1
179 ipsecdoi_checkph1proposal(sa, iph1) in ipsecdoi_checkph1proposal() argument
181 struct ph1handle *iph1;
192 newsa = get_ph1approval(iph1, pair);
199 iph1->sa_ret = newsa;
209 get_ph1approval(iph1, pair) in get_ph1approval() argument
210 struct ph1handle *iph1; in get_ph1approval()
219 if (iph1->approval) {
220 delisakmpsa(iph1->approval);
221 iph1->approval = NULL;
234 iph1->rmconf->proposal, &tsa,
235 iph1->rmconf->pcheck_level)) != NULL)
254 iph1->rmconf->proposal);
289 if (iph1-> side == INITIATOR) {
290 if (iph1->rmconf->proposal->gssid != NULL)
291 iph1->gi_i = vdup(iph1->rmconf->proposal->gssid);
293 iph1->gi_r = vdup(tsa.gssid);
294 iph1->approval = fixup_initiator_sa(sa, &tsa);
297 iph1->gi_r = vdup(tsa.gssid);
298 iph1->gi_i = gssapi_get_id(iph1);
299 if (sa->gssid == NULL && iph1->gi_i != NULL)
300 sa->gssid = vdup(iph1->gi_i);
302 iph1->approval = sa;
304 if (iph1->gi_i != NULL)
306 (int)iph1->gi_i->l, iph1->gi_i->v);
307 if (iph1->gi_r != NULL)
309 (int)iph1->gi_r->l, iph1->gi_r->v);
311 iph1->approval = sa;
313 if(iph1->approval) {
315 s_oakley_attr_method(iph1->approval->authmethod));
318 newsa = get_sabyproppair(p, iph1);
320 delisakmpsa(iph1->approval);
321 iph1->approval = NULL;
1567 get_sabyproppair(pair, iph1) in get_sabyproppair() argument
1569 struct ph1handle *iph1;
1595 ((struct ipsecdoi_sa_b *)bp)->doi = htonl(iph1->rmconf->doitype);
1596 ((struct ipsecdoi_sa_b *)bp)->sit = htonl(iph1->rmconf->sittype);
3600 ipsecdoi_checkid1(iph1) in ipsecdoi_checkid1() argument
3601 struct ph1handle *iph1; in ipsecdoi_checkid1()
3607 if (iph1->id_p == NULL) {
3612 if (iph1->id_p->l < sizeof(*id_b)) {
3615 (u_long)iph1->id_p->l);
3619 id_b = (struct ipsecdoi_id_b *)iph1->id_p->v;
3623 if (iph1->etype == ISAKMP_ETYPE_IDENT &&
3624 iph1->approval->authmethod == OAKLEY_ATTR_AUTH_METHOD_PSKEY) {
3666 port = extract_port(iph1->remote);
3678 if (genlist_next(iph1->rmconf->idvl_p, 0)) {
3684 for (id = genlist_next (iph1->rmconf->idvl_p, &gpb); id; id = genlist_next (0, &gpb)) {
3698 ident.v = iph1->id_p->v + sizeof(*id_b);
3699 ident.l = iph1->id_p->l - sizeof(*id_b);
3708 if (iph1->id_p->l - sizeof(*id_b) != sizeof(struct in_addr))
3716 if (iph1->id_p->l - sizeof(*id_b) != sizeof(struct in6_addr))
3738 if (iph1->rmconf->verify_identifier)
3754 ipsecdoi_setid1(iph1) in ipsecdoi_setid1() argument
3755 struct ph1handle *iph1; in ipsecdoi_setid1()
3767 switch (iph1->rmconf->idvtype) {
3770 ident = getidval(iph1->rmconf->idvtype, iph1->rmconf->idv);
3774 ident = getidval(iph1->rmconf->idvtype, iph1->rmconf->idv);
3778 ident = getidval(iph1->rmconf->idvtype, iph1->rmconf->idv);
3782 if (iph1->rmconf->idv) {
3784 ident = vdup(iph1->rmconf->idv);
3786 if (oakley_getmycert(iph1) < 0) {
3791 ident = eay_get_x509asn1subjectname(&iph1->cert->cert);
3800 if (iph1->rmconf->idv)
3801 ipid = (struct sockaddr *)iph1->rmconf->idv->v;
3809 ipid = iph1->local;
3857 iph1->id = ret;