Lines Matching refs:token_len
259 hdr->token_len = 0; in ossl_quic_wire_decode_pkt_hdr()
329 hdr->token_len = 0; in ossl_quic_wire_decode_pkt_hdr()
368 uint64_t token_len; in ossl_quic_wire_decode_pkt_hdr() local
370 if (!PACKET_get_quic_vlint(pkt, &token_len) in ossl_quic_wire_decode_pkt_hdr()
371 || token_len > SIZE_MAX in ossl_quic_wire_decode_pkt_hdr()
372 || !PACKET_get_bytes(pkt, &hdr->token, (size_t)token_len)) in ossl_quic_wire_decode_pkt_hdr()
375 hdr->token_len = (size_t)token_len; in ossl_quic_wire_decode_pkt_hdr()
376 if (token_len == 0) in ossl_quic_wire_decode_pkt_hdr()
380 hdr->token_len = 0; in ossl_quic_wire_decode_pkt_hdr()
566 if (!WPACKET_quic_write_vlint(pkt, hdr->token_len) in ossl_quic_wire_encode_pkt_hdr()
567 || !WPACKET_memcpy(pkt, hdr->token, hdr->token_len)) in ossl_quic_wire_encode_pkt_hdr()
636 enclen = ossl_quic_vlint_encode_len(hdr->token_len); in ossl_quic_wire_get_encoded_pkt_hdr_len()
640 len += enclen + hdr->token_len; in ossl_quic_wire_get_encoded_pkt_hdr_len()