Lines Matching refs:trns
340 struct isakmp_pl_t *trns = p->trns; local
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)
495 p->prop->p_no, p->trns->t_no,
507 p->prop->p_no, p->trns->t_no,
519 p->prop->p_no, p->trns->t_no,
531 p->prop->p_no, p->trns->t_no,
549 t2isakmpsa(trns, sa) in t2isakmpsa() argument
550 struct isakmp_pl_t *trns; in t2isakmpsa()
562 tlen = ntohs(trns->h.len) - sizeof(*trns);
564 d = (struct isakmp_data *)(trns + 1);
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;
1402 if (p->trns == NULL) {
1467 struct isakmp_pl_t *trns; local
1496 trns = (struct isakmp_pl_t *)pa->ptr;
1500 "transform #%u len=%u\n", trns->t_no, trnslen);
1523 if (check_transform[prop->proto_id](trns->t_id) < 0)
1527 if (check_attributes[prop->proto_id](trns) != 0)
1538 p->trns = trns;
1582 newtlen += ntohs(p->trns->h.len);
1603 trnslen = ntohs(p->trns->h.len);
1619 memcpy(bp, p->trns, trnslen);
1664 p->trns->t_id == pr->head->trns_id) {
1724 if (tr->trns_no == p->trns->t_no)
1730 newtlen += ntohs(p->trns->h.len);
1755 if (tr->trns_no == p->trns->t_no)
1761 trnslen = ntohs(p->trns->h.len);
1776 memcpy(bp, p->trns, trnslen);
2059 check_attr_isakmp(trns) in check_attr_isakmp() argument
2060 struct isakmp_pl_t *trns; in check_attr_isakmp()
2067 tlen = ntohs(trns->h.len) - sizeof(struct isakmp_pl_t);
2068 d = (struct isakmp_data *)((caddr_t)trns + sizeof(struct isakmp_pl_t));
2259 check_attr_ah(trns) in check_attr_ah() argument
2260 struct isakmp_pl_t *trns; in check_attr_ah()
2262 return check_attr_ipsec(IPSECDOI_PROTO_IPSEC_AH, trns);
2266 check_attr_esp(trns) in check_attr_esp() argument
2267 struct isakmp_pl_t *trns; in check_attr_esp()
2269 return check_attr_ipsec(IPSECDOI_PROTO_IPSEC_ESP, trns);
2273 check_attr_ipsec(proto_id, trns) in check_attr_ipsec() argument
2275 struct isakmp_pl_t *trns;
2283 tlen = ntohs(trns->h.len) - sizeof(struct isakmp_pl_t);
2284 d = (struct isakmp_data *)((caddr_t)trns + sizeof(struct isakmp_pl_t));
2339 trns->t_id != IPSECDOI_AH_MD5) {
2344 lorv, trns->t_id);
2350 if (trns->t_id != IPSECDOI_AH_SHA)
2356 if (trns->t_id != IPSECDOI_AH_SHA256)
2362 if (trns->t_id != IPSECDOI_AH_SHA384)
2368 if (trns->t_id != IPSECDOI_AH_SHA512)
2484 trns->t_id == IPSECDOI_ESP_NULL &&
2495 check_attr_ipcomp(trns) in check_attr_ipcomp() argument
2496 struct isakmp_pl_t *trns; in check_attr_ipcomp()
2504 tlen = ntohs(trns->h.len) - sizeof(struct isakmp_pl_t);
2505 d = (struct isakmp_data *)((caddr_t)trns + sizeof(struct isakmp_pl_t));
2729 struct isakmp_pl_t *trns = NULL; local
2733 trnslen = sizeof(*trns);
2736 trns = (struct isakmp_pl_t *)p;
2737 trns->h.np = ISAKMP_NPTYPE_NONE;
2738 trns->t_no = sa->trns_no;
2739 trns->t_id = IPSECDOI_KEY_IKE;
2740 p += sizeof(*trns);
2749 trns->h.len = htons(trnslen);
2948 struct isakmp_pl_t *trns; local
3071 p = vrealloc(p, p->l + sizeof(*trns) + attrlen);
3077 trns = (struct isakmp_pl_t *)(p->v + trnsoff);
3078 trns->h.np = ISAKMP_NPTYPE_NONE;
3079 trns->t_no = tr->trns_no;
3080 trns->t_id = tr->trns_id;
3083 x = x0 = p->v + trnsoff + sizeof(*trns);
3135 trns = (struct isakmp_pl_t *)(p->v + trnsoff);
3136 trns->h.len = htons(sizeof(*trns) + attrlen);
3139 np_t = &trns->h.np;
3141 trnsoff += (sizeof(*trns) + attrlen);