Searched refs:subpkt (Results 1 - 6 of 6) sorted by relevance

/freebsd-current/crypto/openssl/test/
H A Dpackettest.c135 PACKET pkt, subpkt; local
139 || !TEST_true(PACKET_get_sub_packet(&pkt, &subpkt, 4))
140 || !TEST_true(PACKET_get_net_4(&subpkt, &i))
142 || !TEST_size_t_eq(PACKET_remaining(&subpkt), 0)
144 || !TEST_true(PACKET_get_sub_packet(&pkt, &subpkt, 4))
145 || !TEST_true(PACKET_get_net_4(&subpkt, &i))
147 || !TEST_size_t_eq(PACKET_remaining(&subpkt), 0)
148 || !TEST_false(PACKET_get_sub_packet(&pkt, &subpkt, 4)))
353 PACKET pkt, short_pkt, subpkt; local
355 memset(&subpkt,
378 PACKET pkt, short_pkt, subpkt; local
402 PACKET pkt, short_pkt, subpkt; local
426 PACKET pkt, exact_pkt, subpkt; local
450 PACKET pkt, exact_pkt, subpkt; local
[all...]
/freebsd-current/crypto/openssl/include/crypto/
H A Dasn1_dsa.h19 int ossl_decode_der_length(PACKET *pkt, PACKET *subpkt);
/freebsd-current/crypto/openssl/include/internal/
H A Dpacket.h103 * Peek ahead and initialize |subpkt| with the next |len| bytes read from |pkt|.
104 * Data is not copied: the |subpkt| packet will share its underlying buffer with
105 * the original |pkt|, so data wrapped by |pkt| must outlive the |subpkt|.
108 PACKET *subpkt, size_t len)
113 return PACKET_buf_init(subpkt, pkt->curr, len);
117 * Initialize |subpkt| with the next |len| bytes read from |pkt|. Data is not
118 * copied: the |subpkt| packet will share its underlying buffer with the
119 * original |pkt|, so data wrapped by |pkt| must outlive the |subpkt|.
122 PACKET *subpkt, size_t len)
124 if (!PACKET_peek_sub_packet(pkt, subpkt, le
107 PACKET_peek_sub_packet(const PACKET *pkt, PACKET *subpkt, size_t len) argument
121 PACKET_get_sub_packet(PACKET *pkt, PACKET *subpkt, size_t len) argument
514 PACKET_get_length_prefixed_1(PACKET *pkt, PACKET *subpkt) argument
536 PACKET_as_length_prefixed_1(PACKET *pkt, PACKET *subpkt) argument
562 PACKET_get_length_prefixed_2(PACKET *pkt, PACKET *subpkt) argument
585 PACKET_as_length_prefixed_2(PACKET *pkt, PACKET *subpkt) argument
612 PACKET_get_length_prefixed_3(PACKET *pkt, PACKET *subpkt) argument
[all...]
/freebsd-current/crypto/openssl/crypto/
H A Dasn1_dsa.c150 * Decodes the DER length octets in pkt and initialises subpkt with the
155 int ossl_decode_der_length(PACKET *pkt, PACKET *subpkt) argument
163 return PACKET_get_sub_packet(pkt, subpkt, (size_t)byte);
165 return PACKET_get_length_prefixed_1(pkt, subpkt);
167 return PACKET_get_length_prefixed_2(pkt, subpkt);
/freebsd-current/crypto/openssl/ssl/
H A Dktls.c24 PACKET pkt, subpkt; local
36 if (!PACKET_get_length_prefixed_2(&pkt, &subpkt))
/freebsd-current/crypto/openssl/ssl/statem/
H A Dextensions_srvr.c466 PACKET subpkt; local
474 || !PACKET_get_sub_packet(pkt, &subpkt, ct)) {
485 while (PACKET_remaining(&subpkt)) {
486 if (!PACKET_get_net_2(&subpkt, &id)) {

Completed in 96 milliseconds