Searched refs:pkt2 (Results 1 – 7 of 7) sorted by relevance
/openssl/test/ |
H A D | clienthellotest.c | 67 PACKET pkt, pkt2, pkt3; in test_client_hello() local 81 memset(&pkt2, 0, sizeof(pkt2)); in test_client_hello() 208 || !TEST_true(PACKET_get_length_prefixed_1(&pkt, &pkt2)) in test_client_hello() 210 || !TEST_true(PACKET_get_length_prefixed_2(&pkt, &pkt2)) in test_client_hello() 212 || !TEST_true(PACKET_get_length_prefixed_1(&pkt, &pkt2)) in test_client_hello() 214 || !TEST_true(PACKET_as_length_prefixed_2(&pkt, &pkt2))) in test_client_hello() 218 while (PACKET_remaining(&pkt2)) { in test_client_hello() 220 if (!TEST_true(PACKET_get_net_2(&pkt2, &type)) in test_client_hello() 221 || !TEST_true(PACKET_get_length_prefixed_2(&pkt2, &pkt3))) in test_client_hello()
|
H A D | servername_test.c | 45 PACKET pkt, pkt2, pkt3, pkt4, pkt5; in get_sni_from_client_hello() local 50 memset(&pkt2, 0, sizeof(pkt2)); in get_sni_from_client_hello() 65 || !TEST_true(PACKET_get_length_prefixed_1(&pkt, &pkt2)) in get_sni_from_client_hello() 67 || !TEST_true(PACKET_get_length_prefixed_2(&pkt, &pkt2)) in get_sni_from_client_hello() 69 || !TEST_true(PACKET_get_length_prefixed_1(&pkt, &pkt2)) in get_sni_from_client_hello() 71 || !TEST_true(PACKET_as_length_prefixed_2(&pkt, &pkt2))) in get_sni_from_client_hello() 75 while (PACKET_remaining(&pkt2)) { in get_sni_from_client_hello() 76 if (!TEST_true(PACKET_get_net_2(&pkt2, &type)) in get_sni_from_client_hello() 77 || !TEST_true(PACKET_get_length_prefixed_2(&pkt2, &pkt3))) in get_sni_from_client_hello()
|
H A D | quic_fifd_test.c | 110 QUIC_TXPIM_PKT *pkt = NULL, *pkt2 = NULL; in test_generic() local 228 if (!TEST_ptr(pkt2 = ossl_quic_txpim_pkt_alloc(info->txpim))) in test_generic() 232 pkt2->ackm_pkt.pkt_num = 50; in test_generic() 233 pkt2->ackm_pkt.pkt_space = pn_space; in test_generic() 234 pkt2->ackm_pkt.largest_acked = QUIC_PN_INVALID; in test_generic() 235 pkt2->ackm_pkt.num_bytes = 50; in test_generic() 236 pkt2->ackm_pkt.time = cur_time; in test_generic() 237 pkt2->ackm_pkt.is_inflight = 1; in test_generic() 238 pkt2->ackm_pkt.is_ack_eliciting = 1; in test_generic() 245 if (!TEST_true(ossl_quic_fifd_pkt_commit(&info->fifd, pkt2)) in test_generic()
|
H A D | bad_dtls_test.c | 119 PACKET pkt, pkt2; in validate_client_hello() local 156 if (!PACKET_get_length_prefixed_1(&pkt, &pkt2) || in validate_client_hello() 157 !PACKET_equal(&pkt2, session_id, sizeof(session_id))) in validate_client_hello() 161 if (!PACKET_get_length_prefixed_1(&pkt, &pkt2)) in validate_client_hello() 163 if (PACKET_remaining(&pkt2)) { in validate_client_hello() 164 if (!PACKET_equal(&pkt2, cookie, sizeof(cookie))) in validate_client_hello()
|
H A D | quic_wire_test.c | 1262 PACKET pkt2; in test_wire_encode() local 1271 if (!TEST_int_eq(PACKET_buf_init(&pkt2, (unsigned char *)c->expect_buf, i), 1)) in test_wire_encode() 1274 if (!TEST_int_eq(c->deserializer(&pkt2, i), 1)) in test_wire_encode()
|
H A D | sslapitest.c | 7268 PACKET pkt, pkt2, pkt3; in get_MFL_from_client_hello() local 7275 memset(&pkt2, 0, sizeof(pkt2)); in get_MFL_from_client_hello() 7288 || !TEST_true(PACKET_get_length_prefixed_1(&pkt, &pkt2)) in get_MFL_from_client_hello() 7290 || !TEST_true(PACKET_get_length_prefixed_2(&pkt, &pkt2)) in get_MFL_from_client_hello() 7292 || !TEST_true(PACKET_get_length_prefixed_1(&pkt, &pkt2)) in get_MFL_from_client_hello() 7294 || !TEST_true(PACKET_as_length_prefixed_2(&pkt, &pkt2))) in get_MFL_from_client_hello() 7298 while (PACKET_remaining(&pkt2)) { in get_MFL_from_client_hello() 7299 if (!TEST_true(PACKET_get_net_2(&pkt2, &type)) in get_MFL_from_client_hello() 7300 || !TEST_true(PACKET_get_length_prefixed_2(&pkt2, &pkt3))) in get_MFL_from_client_hello()
|
/openssl/ssl/quic/ |
H A D | quic_wire.c | 981 PACKET pkt2; in ossl_quic_wire_decode_transport_param_preferred_addr() local 991 if (!PACKET_buf_init(&pkt2, body, len)) in ossl_quic_wire_decode_transport_param_preferred_addr() 994 if (!PACKET_copy_bytes(&pkt2, p->ipv4, sizeof(p->ipv4)) in ossl_quic_wire_decode_transport_param_preferred_addr() 995 || !PACKET_get_net_2(&pkt2, &ipv4_port) in ossl_quic_wire_decode_transport_param_preferred_addr() 996 || !PACKET_copy_bytes(&pkt2, p->ipv6, sizeof(p->ipv6)) in ossl_quic_wire_decode_transport_param_preferred_addr() 997 || !PACKET_get_net_2(&pkt2, &ipv6_port) in ossl_quic_wire_decode_transport_param_preferred_addr() 998 || !PACKET_get_1(&pkt2, &cidl) in ossl_quic_wire_decode_transport_param_preferred_addr() 1000 || !PACKET_copy_bytes(&pkt2, p->cid.id, cidl) in ossl_quic_wire_decode_transport_param_preferred_addr() 1001 || !PACKET_copy_bytes(&pkt2, p->stateless_reset.token, in ossl_quic_wire_decode_transport_param_preferred_addr()
|
Completed in 39 milliseconds