Lines Matching refs:subs
43 if (!ossl_assert(pkt->subs != NULL && len != 0)) in WPACKET_reserve_bytes()
97 if ((pkt->subs = OPENSSL_zalloc(sizeof(*pkt->subs))) == NULL) { in wpacket_intern_init_len()
105 pkt->subs->pwritten = lenbytes; in wpacket_intern_init_len()
106 pkt->subs->lenbytes = lenbytes; in wpacket_intern_init_len()
109 OPENSSL_free(pkt->subs); in wpacket_intern_init_len()
110 pkt->subs = NULL; in wpacket_intern_init_len()
113 pkt->subs->packet_len = lenchars - GETBUF(pkt); in wpacket_intern_init_len()
155 if (!ossl_assert(pkt->subs != NULL)) in WPACKET_set_flags()
158 pkt->subs->flags = flags; in WPACKET_set_flags()
218 pkt->subs = sub->parent; in wpacket_intern_close()
229 if (!ossl_assert(pkt->subs != NULL)) in WPACKET_fill_lengths()
232 for (sub = pkt->subs; sub != NULL; sub = sub->parent) { in WPACKET_fill_lengths()
246 if (pkt->subs == NULL || pkt->subs->parent == NULL) in WPACKET_close()
249 return wpacket_intern_close(pkt, pkt->subs, 1); in WPACKET_close()
260 if (pkt->subs == NULL || pkt->subs->parent != NULL) in WPACKET_finish()
263 ret = wpacket_intern_close(pkt, pkt->subs, 1); in WPACKET_finish()
265 OPENSSL_free(pkt->subs); in WPACKET_finish()
266 pkt->subs = NULL; in WPACKET_finish()
278 if (!ossl_assert(pkt->subs != NULL)) in WPACKET_start_sub_packet_len__()
286 sub->parent = pkt->subs; in WPACKET_start_sub_packet_len__()
287 pkt->subs = sub; in WPACKET_start_sub_packet_len__()
328 if (!ossl_assert(pkt->subs != NULL)) in WPACKET_set_max_size()
332 for (sub = pkt->subs; sub->parent != NULL; sub = sub->parent) in WPACKET_set_max_size()
402 if (!ossl_assert(pkt->subs != NULL && len != NULL)) in WPACKET_get_length()
405 *len = pkt->written - pkt->subs->pwritten; in WPACKET_get_length()
419 for (sub = pkt->subs; sub != NULL; sub = parent) { in WPACKET_cleanup()
423 pkt->subs = NULL; in WPACKET_cleanup()