Home
last modified time | relevance | path

Searched refs:pkt (Results 1 – 25 of 105) sorted by relevance

12345

/openssl/test/
H A Dwpackettest.c61 WPACKET_cleanup(pkt); in cleanup()
67 WPACKET pkt; in test_WPACKET_init() local
86 return cleanup(&pkt); in test_WPACKET_init()
143 WPACKET pkt; in test_WPACKET_set_max_size() local
190 WPACKET pkt; in test_WPACKET_start_sub_packet() local
272 WPACKET pkt; in test_WPACKET_set_flags() local
332 WPACKET pkt; in test_WPACKET_allocate_bytes() local
362 WPACKET pkt; in test_WPACKET_memcpy() local
386 WPACKET pkt; in test_WPACKET_init_der() local
459 WPACKET pkt; in test_WPACKET_quic() local
[all …]
H A Dpackettest.c19 PACKET pkt; in test_PACKET_remaining() local
34 PACKET pkt; in test_PACKET_end() local
51 PACKET pkt; in test_PACKET_get_1() local
68 PACKET pkt; in test_PACKET_get_4() local
85 PACKET pkt; in test_PACKET_get_net_2() local
102 PACKET pkt; in test_PACKET_get_net_3() local
119 PACKET pkt; in test_PACKET_get_net_4() local
157 PACKET pkt; in test_PACKET_get_bytes() local
181 PACKET pkt; in test_PACKET_copy_bytes() local
506 memset(&pkt, 0, sizeof(pkt)); in test_PACKET_get_quic_vlint()
[all …]
H A Dquic_wire_test.c16 int (*serializer)(WPACKET *pkt);
28 static int encode_case_1_enc(WPACKET *pkt) in encode_case_1_enc() argument
53 static int encode_case_2_enc(WPACKET *pkt) in encode_case_2_enc() argument
88 static int encode_case_3_enc(WPACKET *pkt) in encode_case_3_enc() argument
174 static int encode_case_4_enc(WPACKET *pkt) in encode_case_4_enc() argument
839 if (!TEST_true(PACKET_forward(pkt, PACKET_remaining(pkt)))) in encode_case_16b_dec()
1229 PACKET pkt; in test_wire_encode() local
1430 PACKET pkt; in test_wire_ack() local
1438 r = c->deserializer(&pkt); in test_wire_ack()
1538 PACKET pkt = {0}; in test_wire_retry_integrity_tag() local
[all …]
H A Dquic_cc_test.c142 NET_PKT *pkt = OPENSSL_zalloc(sizeof(*pkt)); in net_sim_send() local
162 pkt->arrive_time = ossl_time_add(pkt->tx_time, in net_sim_send()
165 pkt->determination_time = ossl_time_add(pkt->arrive_time, in net_sim_send()
167 pkt->next_time = pkt->arrive_time; in net_sim_send()
175 pkt->arrive_time = ossl_time_add(pkt->tx_time, in net_sim_send()
180 pkt->determination_time = ossl_time_add(pkt->tx_time, in net_sim_send()
182 pkt->next_time = pkt->determination_time; in net_sim_send()
211 if (pkt->success && !pkt->arrived in net_sim_process_one()
218 pkt->next_time = pkt->determination_time; in net_sim_process_one()
219 if (!ossl_pqueue_NET_PKT_push(s->pkts, pkt, &pkt->idx)) in net_sim_process_one()
[all …]
/openssl/include/internal/
H A Dpacket.h32 pkt->curr += len; in packet_forward()
52 return pkt->curr + pkt->remaining; in PACKET_end()
61 return pkt->curr; in PACKET_data()
77 pkt->curr = buf; in PACKET_buf_init()
436 memcpy(dest, pkt->curr, pkt->remaining); in PACKET_copy_all()
493 return memchr(pkt->curr, 0, pkt->remaining) != NULL; in PACKET_contains_zero_byte()
525 *pkt = tmp; in PACKET_get_length_prefixed_1()
548 *pkt = tmp; in PACKET_as_length_prefixed_1()
574 *pkt = tmp; in PACKET_get_length_prefixed_2()
598 *pkt = tmp; in PACKET_as_length_prefixed_2()
[all …]
H A Dquic_wire.h244 int ossl_quic_wire_encode_frame_ping(WPACKET *pkt);
260 int ossl_quic_wire_encode_frame_ack(WPACKET *pkt,
302 void *ossl_quic_wire_encode_frame_crypto(WPACKET *pkt,
308 int ossl_quic_wire_encode_frame_new_token(WPACKET *pkt,
327 int ossl_quic_wire_encode_frame_stream_hdr(WPACKET *pkt,
347 void *ossl_quic_wire_encode_frame_stream(WPACKET *pkt,
353 int ossl_quic_wire_encode_frame_max_data(WPACKET *pkt,
545 int ossl_quic_wire_decode_frame_ack(PACKET *pkt,
617 int ossl_quic_wire_decode_frame_max_data(PACKET *pkt,
717 size_t ossl_quic_wire_decode_padding(PACKET *pkt);
[all …]
H A Dpacket_quic.h27 if (PACKET_remaining(pkt) < 1) in PACKET_get_quic_vlint()
30 enclen = ossl_quic_vlint_decode_len(*pkt->curr); in PACKET_get_quic_vlint()
32 if (PACKET_remaining(pkt) < enclen) in PACKET_get_quic_vlint()
36 packet_forward(pkt, enclen); in PACKET_get_quic_vlint()
52 if (PACKET_remaining(pkt) < 1) in PACKET_peek_quic_vlint_ex()
57 if (PACKET_remaining(pkt) < enclen) in PACKET_peek_quic_vlint_ex()
81 if (PACKET_remaining(pkt) < 1) in PACKET_skip_quic_vlint()
86 if (PACKET_remaining(pkt) < enclen) in PACKET_skip_quic_vlint()
89 packet_forward(pkt, enclen); in PACKET_skip_quic_vlint()
105 PACKET tmp = *pkt; in PACKET_get_quic_length_prefixed()
[all …]
H A Dder.h76 int ossl_DER_w_precompiled(WPACKET *pkt, int tag,
80 int ossl_DER_w_boolean(WPACKET *pkt, int tag, int b);
81 int ossl_DER_w_uint32(WPACKET *pkt, int tag, uint32_t v);
82 int ossl_DER_w_bn(WPACKET *pkt, int tag, const BIGNUM *v);
83 int ossl_DER_w_null(WPACKET *pkt, int tag);
84 int ossl_DER_w_octet_string(WPACKET *pkt, int tag,
86 int ossl_DER_w_octet_string_uint32(WPACKET *pkt, int tag, uint32_t value);
91 int ossl_DER_w_begin_sequence(WPACKET *pkt, int tag);
92 int ossl_DER_w_end_sequence(WPACKET *pkt, int tag);
/openssl/crypto/
H A Dpacket.c52 if (pkt->maxsize - pkt->written < len) in WPACKET_reserve_bytes()
55 if (pkt->buf != NULL && (pkt->buf->length - pkt->written < len)) { in WPACKET_reserve_bytes()
59 reflen = (len > pkt->buf->length) ? len : pkt->buf->length; in WPACKET_reserve_bytes()
110 if ((pkt->subs = OPENSSL_zalloc(sizeof(*pkt->subs))) == NULL) in wpacket_intern_init_len()
340 if (pkt->subs == NULL || pkt->subs->parent == NULL) in WPACKET_close()
343 return wpacket_intern_close(pkt, pkt->subs, 1); in WPACKET_close()
354 if (pkt->subs == NULL || pkt->subs->parent != NULL) in WPACKET_finish()
357 ret = wpacket_intern_close(pkt, pkt->subs, 1); in WPACKET_finish()
503 *len = pkt->written - pkt->subs->pwritten; in WPACKET_get_length()
516 return buf + pkt->maxsize - pkt->curr; in WPACKET_get_curr()
[all …]
H A Dder_writer.c22 return WPACKET_start_sub_packet(pkt); in int_start_context()
46 && WPACKET_close(pkt) in int_end_context()
55 return int_start_context(pkt, tag) in ossl_DER_w_precompiled()
57 && int_end_context(pkt, tag); in ossl_DER_w_precompiled()
65 && !WPACKET_close(pkt) in ossl_DER_w_boolean()
67 && int_end_context(pkt, tag); in ossl_DER_w_boolean()
76 && WPACKET_close(pkt) in ossl_DER_w_octet_string()
78 && int_end_context(pkt, tag); in ossl_DER_w_octet_string()
104 && WPACKET_close(pkt) in int_der_w_integer()
165 && WPACKET_close(pkt) in ossl_DER_w_null()
[all …]
H A Dasn1_dsa.c45 if (!WPACKET_put_bytes_u8(pkt, 0x82) in ossl_encode_der_length()
85 if (!WPACKET_start_sub_packet(pkt) in ossl_encode_der_integer()
89 || !WPACKET_close(pkt)) in ossl_encode_der_integer()
110 int isnull = WPACKET_is_null_buf(pkt); in ossl_encode_der_dsa_sig()
112 if (!WPACKET_start_sub_packet(pkt)) in ossl_encode_der_dsa_sig()
121 dummypkt = pkt; in ossl_encode_der_dsa_sig()
143 || !WPACKET_close(pkt)) in ossl_encode_der_dsa_sig()
159 if (!PACKET_get_1(pkt, &byte)) in ossl_decode_der_length()
193 if (!PACKET_get_1(pkt, &tag) in ossl_decode_der_integer()
237 PACKET pkt, contpkt; in ossl_decode_der_dsa_sig() local
[all …]
/openssl/ssl/quic/
H A Dquic_wire.c42 return WPACKET_memset(pkt, 0, num_bytes); in ossl_quic_wire_encode_padding()
76 if (!encode_frame_hdr(pkt, frame_type) in ossl_quic_wire_encode_frame_ack()
190 if (!encode_frame_hdr(pkt, frame_type) in ossl_quic_wire_encode_frame_stream_hdr()
407 b = WPACKET_get_curr(pkt); in ossl_quic_wire_encode_transport_param_bytes()
490 PACKET pkt = *orig_pkt; in ossl_quic_wire_peek_frame_ack_num_ranges() local
644 f->data = PACKET_data(pkt); in ossl_quic_wire_decode_frame_crypto()
666 *token = PACKET_data(pkt); in ossl_quic_wire_decode_frame_new_token()
719 f->data = PACKET_data(pkt); in ossl_quic_wire_decode_frame_stream()
806 || !PACKET_get_1(pkt, &len) in ossl_quic_wire_decode_frame_new_conn_id()
890 const unsigned char *start = PACKET_data(pkt), *end = PACKET_end(pkt), in ossl_quic_wire_decode_padding()
[all …]
H A Dquic_fifd.c69 QUIC_TXPIM_PKT *pkt = arg; in on_acked() local
70 QUIC_FIFD *fifd = pkt->fifd; in on_acked()
125 QUIC_TXPIM_PKT *pkt = arg; in on_lost() local
126 QUIC_FIFD *fifd = pkt->fifd; in on_lost()
184 pkt, in on_lost()
204 if (pkt->had_max_data_frame) in on_lost()
219 if (pkt->had_ack_frame) in on_lost()
234 QUIC_TXPIM_PKT *pkt = arg; in on_discarded() local
235 QUIC_FIFD *fifd = pkt->fifd; in on_discarded()
264 pkt->ackm_pkt.cb_arg = pkt; in ossl_quic_fifd_pkt_commit()
[all …]
H A Dquic_trace.c76 static int frame_ack(BIO *bio, PACKET *pkt) in frame_ack() argument
421 if (!frame_ack(bio, pkt)) in trace_frame_data()
427 if (!frame_reset_stream(bio, pkt)) in trace_frame_data()
439 if (!frame_crypto(bio, pkt)) in trace_frame_data()
445 if (!frame_new_token(bio, pkt)) in trace_frame_data()
464 if (!frame_max_data(bio, pkt)) in trace_frame_data()
481 if (!frame_max_streams(bio, pkt)) in trace_frame_data()
510 if (!frame_new_conn_id(bio, pkt)) in trace_frame_data()
539 if (!frame_conn_closed(bio, pkt)) in trace_frame_data()
553 if (PACKET_remaining(pkt) != 0) in trace_frame_data()
[all …]
H A Dquic_ackm.c159 if (pkt == NULL) in tx_pkt_history_remove()
637 for (; pkt != NULL; pkt = pkt->anext) in ack_includes_ack_eliciting()
693 if (pkt == NULL) in ackm_detect_and_remove_newly_acked_pkts()
696 for (; pkt != NULL; pkt = pprev) { in ackm_detect_and_remove_newly_acked_pkts()
775 for (; pkt != NULL; pkt = pnext) { in ackm_detect_and_remove_lost_pkts()
1093 if (!pkt->is_inflight && pkt->is_ack_eliciting) in ossl_ackm_on_tx_packet()
1240 pkt != NULL; pkt = pnext) { in ossl_ackm_on_pkt_space_discarded()
1247 pkt->on_discarded(pkt->cb_arg); /* may free pkt */ in ossl_ackm_on_pkt_space_discarded()
1547 if (pkt->pkt_num > ackm->rx_largest_pn[pkt->pkt_space]) { in ossl_ackm_on_rx_packet()
1548 ackm->rx_largest_pn[pkt->pkt_space] = pkt->pkt_num; in ossl_ackm_on_rx_packet()
[all …]
H A Dquic_rx_depack.c37 static int depack_do_frame_padding(PACKET *pkt) in depack_do_frame_padding() argument
40 ossl_quic_wire_decode_padding(pkt); in depack_do_frame_padding()
49 if (!ossl_quic_wire_decode_frame_ping(pkt)) { in depack_do_frame_ping()
141 static int depack_do_frame_reset_stream(PACKET *pkt, in depack_do_frame_reset_stream() argument
217 static int depack_do_frame_stop_sending(PACKET *pkt, in depack_do_frame_stop_sending() argument
726 static int depack_do_frame_max_streams(PACKET *pkt, in depack_do_frame_max_streams() argument
1052 if (PACKET_remaining(pkt) == 0) { in depack_process_frames()
1065 while (PACKET_remaining(pkt) > 0) { in depack_process_frames()
1072 sof = PACKET_data(pkt); in depack_process_frames()
1116 if (!depack_do_frame_padding(pkt)) in depack_process_frames()
[all …]
H A Dqlog_event_helpers.c214 PACKET orig_pkt = *pkt; in log_frame_actual()
228 ossl_quic_wire_decode_padding(pkt)); in log_frame_actual()
231 if (!ossl_quic_wire_decode_frame_ping(pkt)) in log_frame_actual()
508 ignore_res(PACKET_forward(pkt, PACKET_remaining(pkt))); in log_frame_actual()
520 rem_before = PACKET_remaining(pkt); in log_frame()
525 rem_after = PACKET_remaining(pkt); in log_frame()
534 PACKET pkt; in log_frames() local
541 while (PACKET_remaining(&pkt) > 0) { in log_frames()
545 if (adv < PACKET_remaining(&pkt)) in log_frames()
546 adv = PACKET_remaining(&pkt); in log_frames()
[all …]
H A Dquic_wire_pkt.c185 int ossl_quic_wire_decode_pkt_hdr(PACKET *pkt, in ossl_quic_wire_decode_pkt_hdr() argument
194 size_t l = PACKET_remaining(pkt); in ossl_quic_wire_decode_pkt_hdr()
204 || !PACKET_get_1(pkt, &b0)) in ossl_quic_wire_decode_pkt_hdr()
246 pn = (unsigned char *)PACKET_data(pkt); in ossl_quic_wire_decode_pkt_hdr()
273 if (!PACKET_forward(pkt, hdr->len)) in ossl_quic_wire_decode_pkt_hdr()
280 if (!PACKET_get_net_4(pkt, &version)) in ossl_quic_wire_decode_pkt_hdr()
311 hdr->data = PACKET_data(pkt); in ossl_quic_wire_decode_pkt_hdr()
332 if (!PACKET_forward(pkt, hdr->len)) in ossl_quic_wire_decode_pkt_hdr()
457 int ossl_quic_wire_encode_pkt_hdr(WPACKET *pkt, in ossl_quic_wire_encode_pkt_hdr() argument
503 if (!WPACKET_put_bytes_u8(pkt, b0) in ossl_quic_wire_encode_pkt_hdr()
[all …]
/openssl/ssl/statem/
H A Dstatem_local.h74 int parse_ca_names(SSL_CONNECTION *s, PACKET *pkt);
77 WPACKET *pkt);
130 PACKET *pkt);
177 PACKET *pkt);
179 PACKET *pkt);
294 int tls_parse_ctos_early_data(SSL_CONNECTION *s, PACKET *pkt,
309 int tls_parse_ctos_sig_algs(SSL_CONNECTION *s, PACKET *pkt,
323 int tls_parse_ctos_use_srtp(SSL_CONNECTION *s, PACKET *pkt,
328 int tls_parse_ctos_key_share(SSL_CONNECTION *s, PACKET *pkt,
525 int tls_parse_stoc_use_srtp(SSL_CONNECTION *s, PACKET *pkt,
[all …]
H A Dextensions_clnt.c265 if (!WPACKET_close(pkt) || !WPACKET_close(pkt)) { in tls_construct_ctos_supported_groups()
386 if (!WPACKET_close(pkt) in tls_construct_ctos_status_request()
406 if (!WPACKET_close(pkt) || !WPACKET_close(pkt)) { in tls_construct_ctos_status_request()
591 if (!WPACKET_close(pkt) || !WPACKET_close(pkt)) { in tls_construct_ctos_supported_versions()
736 if (!WPACKET_close(pkt) || !WPACKET_close(pkt)) { in tls_construct_ctos_key_share()
1319 if (PACKET_remaining(pkt) != 1 || !PACKET_get_1(pkt, &value)) { in tls_parse_stoc_maxfragmentlen()
1542 PACKET_data(pkt), PACKET_remaining(pkt), in tls_parse_stoc_sct()
1594 tmppkt = *pkt; in tls_parse_stoc_npn()
1601 PACKET_data(pkt), PACKET_remaining(pkt), in tls_parse_stoc_npn()
1647 || PACKET_remaining(pkt) != len || !PACKET_get_1_len(pkt, &len) in tls_parse_stoc_alpn()
[all …]
H A Dextensions_srvr.c50 if (!PACKET_get_1(pkt, &ilen) in tls_parse_ctos_renegotiate()
182 if (PACKET_remaining(pkt) != 1 || !PACKET_get_1(pkt, &value)) { in tls_parse_ctos_maxfragmentlen()
269 PACKET_data(pkt), PACKET_remaining(pkt), in tls_parse_ctos_session_ticket()
538 || PACKET_remaining(pkt)) { in tls_parse_ctos_use_srtp()
1301 || !WPACKET_close(pkt) in tls_construct_stoc_renegotiate()
1348 || !WPACKET_close(pkt)) { in tls_construct_stoc_maxfragmentlen()
1434 if (!WPACKET_close(pkt) || !WPACKET_close(pkt)) { in tls_construct_stoc_supported_groups()
1490 if (!WPACKET_close(pkt)) { in tls_construct_stoc_status_request()
1542 || !WPACKET_close(pkt) in tls_construct_stoc_alpn()
1830 || !WPACKET_close(pkt) in tls_construct_stoc_cookie()
[all …]
/openssl/providers/common/der/
H A Dder_ecx_key.c16 return ossl_DER_w_begin_sequence(pkt, cont) in ossl_DER_w_algorithmIdentifier_X25519()
18 && ossl_DER_w_precompiled(pkt, -1, ossl_der_oid_id_X25519, in ossl_DER_w_algorithmIdentifier_X25519()
20 && ossl_DER_w_end_sequence(pkt, cont); in ossl_DER_w_algorithmIdentifier_X25519()
25 return ossl_DER_w_begin_sequence(pkt, cont) in ossl_DER_w_algorithmIdentifier_X448()
27 && ossl_DER_w_precompiled(pkt, -1, ossl_der_oid_id_X448, in ossl_DER_w_algorithmIdentifier_X448()
29 && ossl_DER_w_end_sequence(pkt, cont); in ossl_DER_w_algorithmIdentifier_X448()
34 return ossl_DER_w_begin_sequence(pkt, cont) in ossl_DER_w_algorithmIdentifier_ED25519()
38 && ossl_DER_w_end_sequence(pkt, cont); in ossl_DER_w_algorithmIdentifier_ED25519()
43 return ossl_DER_w_begin_sequence(pkt, cont) in ossl_DER_w_algorithmIdentifier_ED448()
45 && ossl_DER_w_precompiled(pkt, -1, ossl_der_oid_id_Ed448, in ossl_DER_w_algorithmIdentifier_ED448()
[all …]
/openssl/fuzz/
H A Dquic-lcidm.c53 static int get_cid(PACKET *pkt, QUIC_CONN_ID *cid) in get_cid() argument
57 if (!PACKET_get_1(pkt, &cidl) in get_cid()
59 || !PACKET_copy_bytes(pkt, cid->id, cidl)) in get_cid()
70 PACKET pkt; in FuzzerTestOneInput() local
79 if (!PACKET_buf_init(&pkt, buf, len)) in FuzzerTestOneInput()
82 if (!PACKET_get_1(&pkt, &lcidl) in FuzzerTestOneInput()
93 while (PACKET_remaining(&pkt) > 0) { in FuzzerTestOneInput()
94 if (!PACKET_get_1(&pkt, &cmd)) in FuzzerTestOneInput()
102 if (!PACKET_get_net_8(&pkt, &arg_opaque) in FuzzerTestOneInput()
103 || !get_cid(&pkt, &arg_cid)) { in FuzzerTestOneInput()
[all …]
H A Dquic-rcidm.c62 static int get_cid(PACKET *pkt, QUIC_CONN_ID *cid) in get_cid() argument
66 if (!PACKET_get_1(pkt, &cidl) in get_cid()
68 || !PACKET_copy_bytes(pkt, cid->id, cidl)) in get_cid()
79 PACKET pkt; in FuzzerTestOneInput() local
85 if (!PACKET_buf_init(&pkt, buf, len)) in FuzzerTestOneInput()
91 while (PACKET_remaining(&pkt) > 0) { in FuzzerTestOneInput()
92 if (!PACKET_get_1(&pkt, &cmd)) in FuzzerTestOneInput()
97 if (!get_cid(&pkt, &arg_cid)) { in FuzzerTestOneInput()
118 if (!get_cid(&pkt, &arg_cid)) { in FuzzerTestOneInput()
127 if (!get_cid(&pkt, &arg_cid)) { in FuzzerTestOneInput()
[all …]
H A Dquic-srtm.c49 PACKET pkt; in FuzzerTestOneInput() local
60 if (!PACKET_buf_init(&pkt, buf, len)) in FuzzerTestOneInput()
63 while (PACKET_remaining(&pkt) > 0) { in FuzzerTestOneInput()
64 if (!PACKET_get_1(&pkt, &cmd)) in FuzzerTestOneInput()
74 if (!PACKET_get_net_8(&pkt, &arg_opaque) in FuzzerTestOneInput()
75 || !PACKET_get_net_8(&pkt, &arg_seq_num) in FuzzerTestOneInput()
86 if (!PACKET_get_net_8(&pkt, &arg_opaque) in FuzzerTestOneInput()
87 || !PACKET_get_net_8(&pkt, &arg_seq_num)) in FuzzerTestOneInput()
96 if (!PACKET_get_net_8(&pkt, &arg_opaque)) in FuzzerTestOneInput()
104 if (!PACKET_copy_bytes(&pkt, arg_token.token, in FuzzerTestOneInput()
[all …]

Completed in 131 milliseconds

12345