Home
last modified time | relevance | path

Searched refs:token_len (Results 1 – 14 of 14) sorted by relevance

/openssl/test/
H A Dquic_record_test_util.h36 || !TEST_size_t_eq(a->token_len, b->token_len) in cmp_pkt_hdr()
40 if (a->token_len > 0 && b->token_len > 0 in cmp_pkt_hdr()
41 && !TEST_mem_eq(a->token, a->token_len, b->token, b->token_len)) in cmp_pkt_hdr()
44 if ((a->token_len == 0 && !TEST_ptr_null(a->token)) in cmp_pkt_hdr()
45 || (b->token_len == 0 && !TEST_ptr_null(b->token))) in cmp_pkt_hdr()
H A Dquic_wire_test.c309 size_t token_len = 0; in encode_case_7_dec() local
313 &token_len), fail < 0)) in encode_case_7_dec()
319 if (!TEST_mem_eq(token, token_len, in encode_case_7_dec()
H A Dquic_txp_test.c68 size_t token_len; member
528 h->frame.new_token.token_len, in check_cfq_new_token()
1347 if (!TEST_mem_eq(h.qrx_pkt->hdr->token, h.qrx_pkt->hdr->token_len, in run_script()
1389 &h.frame.new_token.token_len))) in run_script()
/openssl/ssl/quic/
H A Dquic_wire_pkt.c259 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()
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()
636 enclen = ossl_quic_vlint_encode_len(hdr->token_len); in ossl_quic_wire_get_encoded_pkt_hdr_len()
[all …]
H A Dquic_trace.c68 static void put_token(BIO *bio, const uint8_t *token, size_t token_len) in put_token() argument
70 if (token_len == 0) in put_token()
73 put_data(bio, token, token_len); in put_token()
170 size_t token_len; in frame_new_token() local
172 if (!ossl_quic_wire_decode_frame_new_token(pkt, &token, &token_len)) in frame_new_token()
176 put_token(bio, token, token_len); in frame_new_token()
608 put_token(bio, hdr.token, hdr.token_len); in ossl_quic_trace()
H A Dqlog_event_helpers.c481 size_t token_len; in log_frame_actual() local
483 if (!ossl_quic_wire_decode_frame_new_token(pkt, &token, &token_len)) in log_frame_actual()
489 QLOG_BIN("data", token, token_len); in log_frame_actual()
588 if (hdr->token_len > 0) { in log_packet()
591 QLOG_BIN("data", hdr->token, hdr->token_len); in log_packet()
H A Dquic_wire.c168 size_t token_len) in ossl_quic_wire_encode_frame_new_token() argument
171 || !WPACKET_quic_write_vlint(pkt, token_len) in ossl_quic_wire_encode_frame_new_token()
172 || !WPACKET_memcpy(pkt, token, token_len)) in ossl_quic_wire_encode_frame_new_token()
655 size_t *token_len) in ossl_quic_wire_decode_frame_new_token() argument
667 *token_len = (size_t)token_len_; in ossl_quic_wire_decode_frame_new_token()
H A Dquic_txp.c545 static int txp_check_token_len(size_t token_len, size_t mdpl) in txp_check_token_len() argument
547 if (token_len == 0) in txp_check_token_len()
550 if (token_len >= mdpl) in txp_check_token_len()
557 if (token_len > mdpl - TXP_REQUIRED_TOKEN_MARGIN) in txp_check_token_len()
565 size_t token_len, in ossl_quic_tx_packetiser_set_initial_token() argument
569 if (!txp_check_token_len(token_len, txp_get_mdpl(txp))) in ossl_quic_tx_packetiser_set_initial_token()
577 txp->initial_token_len = token_len; in ossl_quic_tx_packetiser_set_initial_token()
1255 phdr->token_len = txp->initial_token_len; in txp_determine_geometry()
1258 phdr->token_len = 0; in txp_determine_geometry()
H A Dquic_rx_depack.c330 size_t token_len; in depack_do_frame_new_token() local
332 if (!ossl_quic_wire_decode_frame_new_token(pkt, &token, &token_len)) { in depack_do_frame_new_token()
340 if (token_len == 0) { in depack_do_frame_new_token()
H A Dquic_record_rx.c930 if (!qrx_relocate_buffer(qrx, &rxe, &i, &token, rxe->hdr.token_len)) in qrx_process_pkt()
H A Dquic_channel.c2301 && ch->qrx_pkt->hdr->token_len > 0) { in ch_rx_handle_packet()
/openssl/include/internal/
H A Dquic_wire.h310 size_t token_len);
579 size_t *token_len);
H A Dquic_txp.h123 size_t token_len,
H A Dquic_wire_pkt.h391 size_t token_len; member

Completed in 85 milliseconds