Home
last modified time | relevance | path

Searched refs:subpkt (Results 1 – 3 of 3) sorted by relevance

/third_party/openssl/test/
Dpackettest.c135 PACKET pkt, subpkt; in test_PACKET_get_sub_packet() local
139 || !TEST_true(PACKET_get_sub_packet(&pkt, &subpkt, 4)) in test_PACKET_get_sub_packet()
140 || !TEST_true(PACKET_get_net_4(&subpkt, &i)) in test_PACKET_get_sub_packet()
142 || !TEST_size_t_eq(PACKET_remaining(&subpkt), 0) in test_PACKET_get_sub_packet()
144 || !TEST_true(PACKET_get_sub_packet(&pkt, &subpkt, 4)) in test_PACKET_get_sub_packet()
145 || !TEST_true(PACKET_get_net_4(&subpkt, &i)) in test_PACKET_get_sub_packet()
147 || !TEST_size_t_eq(PACKET_remaining(&subpkt), 0) in test_PACKET_get_sub_packet()
148 || !TEST_false(PACKET_get_sub_packet(&pkt, &subpkt, 4))) in test_PACKET_get_sub_packet()
353 PACKET pkt, short_pkt, subpkt = {0}; in test_PACKET_get_length_prefixed_1() local
361 || !TEST_true(PACKET_get_length_prefixed_1(&pkt, &subpkt)) in test_PACKET_get_length_prefixed_1()
[all …]
/third_party/openssl/ssl/
Dpacket_local.h107 PACKET *subpkt, size_t len) in PACKET_peek_sub_packet() argument
112 return PACKET_buf_init(subpkt, pkt->curr, len); in PACKET_peek_sub_packet()
121 PACKET *subpkt, size_t len) in PACKET_get_sub_packet() argument
123 if (!PACKET_peek_sub_packet(pkt, subpkt, len)) in PACKET_get_sub_packet()
481 PACKET *subpkt) in PACKET_get_length_prefixed_1() argument
492 subpkt->curr = data; in PACKET_get_length_prefixed_1()
493 subpkt->remaining = length; in PACKET_get_length_prefixed_1()
503 PACKET *subpkt) in PACKET_as_length_prefixed_1() argument
515 subpkt->curr = data; in PACKET_as_length_prefixed_1()
516 subpkt->remaining = length; in PACKET_as_length_prefixed_1()
[all …]
/third_party/openssl/ssl/statem/
Dextensions_srvr.c510 PACKET subpkt; in tls_parse_ctos_use_srtp() local
518 || !PACKET_get_sub_packet(pkt, &subpkt, ct)) { in tls_parse_ctos_use_srtp()
529 while (PACKET_remaining(&subpkt)) { in tls_parse_ctos_use_srtp()
530 if (!PACKET_get_net_2(&subpkt, &id)) { in tls_parse_ctos_use_srtp()