Lines Matching full:trns
340 struct isakmp_pl_t *trns = p->trns;
345 "prop#=%d, prot-id=%s, spi-size=%d, #trns=%d\n",
350 "trns#=%d, trns-id=%s\n",
351 trns->t_no,
352 s_ipsecdoi_trns(prop->proto_id, trns->t_id));
357 if (t2isakmpsa(trns, tsap) < 0)
486 if (t2isakmpsa(p->trns, &sa) < 0)
492 "DB(prop#%d:trns#%d):Peer(prop#%d:trns#%d) = "
495 p->prop->p_no, p->trns->t_no,
504 "DB(prop#%d:trns#%d):Peer(prop#%d:trns#%d) = "
507 p->prop->p_no, p->trns->t_no,
516 "DB(prop#%d:trns#%d):Peer(prop#%d:trns#%d) = "
519 p->prop->p_no, p->trns->t_no,
528 "DB(prop#%d:trns#%d):Peer(prop#%d:trns#%d) = "
531 p->prop->p_no, p->trns->t_no,
549 t2isakmpsa(trns, sa)
550 struct isakmp_pl_t *trns;
562 tlen = ntohs(trns->h.len) - sizeof(*trns);
564 d = (struct isakmp_data *)(trns + 1);
1038 /* compare trns */
1039 if (p->trns->t_no == r->trns->t_no)
1080 if (p->trns->t_id != r->trns->t_id) {
1085 if (p->trns->reserved != r->trns->reserved) {
1092 len = ntohs(r->trns->h.len) - sizeof(*p->trns);
1093 if (memcmp(p->trns + 1, r->trns + 1, len) != 0) {
1212 if (sp->head->trns_no == x->trns->t_no)
1225 n->trns = x->trns;
1398 trns == NULL) {
1463 struct isakmp_pl_t *trns;
1492 trns = (struct isakmp_pl_t *)pa->ptr;
1496 "transform #%u len=%u\n", trns->t_no, trnslen);
1519 if (check_transform[prop->proto_id](trns->t_id) < 0)
1523 if (check_attributes[prop->proto_id](trns) != 0)
1534 p->trns = trns;
1578 newtlen += ntohs(p->trns->h.len);
1599 trnslen = ntohs(p->trns->h.len);
1615 memcpy(bp, p->trns, trnslen);
1660 p->trns->t_id == pr->head->trns_id) {
1720 if (tr->trns_no == p->trns->t_no)
1726 newtlen += ntohs(p->trns->h.len);
1751 if (tr->trns_no == p->trns->t_no)
1757 trnslen = ntohs(p->trns->h.len);
1772 memcpy(bp, p->trns, trnslen);
2055 check_attr_isakmp(trns)
2056 struct isakmp_pl_t *trns;
2063 tlen = ntohs(trns->h.len) - sizeof(struct isakmp_pl_t);
2064 d = (struct isakmp_data *)((caddr_t)trns + sizeof(struct isakmp_pl_t));
2255 check_attr_ah(trns)
2256 struct isakmp_pl_t *trns;
2258 return check_attr_ipsec(IPSECDOI_PROTO_IPSEC_AH, trns);
2262 check_attr_esp(trns)
2263 struct isakmp_pl_t *trns;
2265 return check_attr_ipsec(IPSECDOI_PROTO_IPSEC_ESP, trns);
2269 check_attr_ipsec(proto_id, trns)
2271 struct isakmp_pl_t *trns;
2279 tlen = ntohs(trns->h.len) - sizeof(struct isakmp_pl_t);
2280 d = (struct isakmp_data *)((caddr_t)trns + sizeof(struct isakmp_pl_t));
2335 trns->t_id != IPSECDOI_AH_MD5) {
2340 lorv, trns->t_id);
2346 if (trns->t_id != IPSECDOI_AH_SHA)
2352 if (trns->t_id != IPSECDOI_AH_SHA256)
2358 if (trns->t_id != IPSECDOI_AH_SHA384)
2364 if (trns->t_id != IPSECDOI_AH_SHA512)
2480 trns->t_id == IPSECDOI_ESP_NULL &&
2491 check_attr_ipcomp(trns)
2492 struct isakmp_pl_t *trns;
2500 tlen = ntohs(trns->h.len) - sizeof(struct isakmp_pl_t);
2501 d = (struct isakmp_data *)((caddr_t)trns + sizeof(struct isakmp_pl_t));
2677 u_int8_t *np_t; /* pointer next trns type in previous header */
2725 struct isakmp_pl_t *trns = NULL;
2729 trnslen = sizeof(*trns);
2732 trns = (struct isakmp_pl_t *)p;
2733 trns->h.np = ISAKMP_NPTYPE_NONE;
2734 trns->t_no = sa->trns_no;
2735 trns->t_id = IPSECDOI_KEY_IKE;
2736 p += sizeof(*trns);
2745 trns->h.len = htons(trnslen);
2944 struct isakmp_pl_t *trns;
2949 u_int8_t *np_t; /* pointer next trns type in previous header */
3067 p = vrealloc(p, p->l + sizeof(*trns) + attrlen);
3073 trns = (struct isakmp_pl_t *)(p->v + trnsoff);
3074 trns->h.np = ISAKMP_NPTYPE_NONE;
3075 trns->t_no = tr->trns_no;
3076 trns->t_id = tr->trns_id;
3079 x = x0 = p->v + trnsoff + sizeof(*trns);
3131 trns = (struct isakmp_pl_t *)(p->v + trnsoff);
3132 trns->h.len = htons(sizeof(*trns) + attrlen);
3135 np_t = &trns->h.np;
3137 trnsoff += (sizeof(*trns) + attrlen);