Lines Matching refs:data

137                                                 unsigned int *data)  in PACKET_peek_net_2()  argument
142 *data = ((unsigned int)(*pkt->curr)) << 8; in PACKET_peek_net_2()
143 *data |= *(pkt->curr + 1); in PACKET_peek_net_2()
150 __owur static ossl_inline int PACKET_get_net_2(PACKET *pkt, unsigned int *data) in PACKET_get_net_2() argument
152 if (!PACKET_peek_net_2(pkt, data)) in PACKET_get_net_2()
161 __owur static ossl_inline int PACKET_get_net_2_len(PACKET *pkt, size_t *data) in PACKET_get_net_2_len() argument
167 *data = (size_t)i; in PACKET_get_net_2_len()
177 unsigned long *data) in PACKET_peek_net_3() argument
182 *data = ((unsigned long)(*pkt->curr)) << 16; in PACKET_peek_net_3()
183 *data |= ((unsigned long)(*(pkt->curr + 1))) << 8; in PACKET_peek_net_3()
184 *data |= *(pkt->curr + 2); in PACKET_peek_net_3()
191 __owur static ossl_inline int PACKET_get_net_3(PACKET *pkt, unsigned long *data) in PACKET_get_net_3() argument
193 if (!PACKET_peek_net_3(pkt, data)) in PACKET_get_net_3()
202 __owur static ossl_inline int PACKET_get_net_3_len(PACKET *pkt, size_t *data) in PACKET_get_net_3_len() argument
208 *data = (size_t)i; in PACKET_get_net_3_len()
218 unsigned long *data) in PACKET_peek_net_4() argument
223 *data = ((unsigned long)(*pkt->curr)) << 24; in PACKET_peek_net_4()
224 *data |= ((unsigned long)(*(pkt->curr + 1))) << 16; in PACKET_peek_net_4()
225 *data |= ((unsigned long)(*(pkt->curr + 2))) << 8; in PACKET_peek_net_4()
226 *data |= *(pkt->curr + 3); in PACKET_peek_net_4()
236 uint64_t *data) in PACKET_peek_net_8() argument
241 *data = ((uint64_t)(*pkt->curr)) << 56; in PACKET_peek_net_8()
242 *data |= ((uint64_t)(*(pkt->curr + 1))) << 48; in PACKET_peek_net_8()
243 *data |= ((uint64_t)(*(pkt->curr + 2))) << 40; in PACKET_peek_net_8()
244 *data |= ((uint64_t)(*(pkt->curr + 3))) << 32; in PACKET_peek_net_8()
245 *data |= ((uint64_t)(*(pkt->curr + 4))) << 24; in PACKET_peek_net_8()
246 *data |= ((uint64_t)(*(pkt->curr + 5))) << 16; in PACKET_peek_net_8()
247 *data |= ((uint64_t)(*(pkt->curr + 6))) << 8; in PACKET_peek_net_8()
248 *data |= *(pkt->curr + 7); in PACKET_peek_net_8()
255 __owur static ossl_inline int PACKET_get_net_4(PACKET *pkt, unsigned long *data) in PACKET_get_net_4() argument
257 if (!PACKET_peek_net_4(pkt, data)) in PACKET_get_net_4()
266 __owur static ossl_inline int PACKET_get_net_4_len(PACKET *pkt, size_t *data) in PACKET_get_net_4_len() argument
272 *data = (size_t)i; in PACKET_get_net_4_len()
278 __owur static ossl_inline int PACKET_get_net_8(PACKET *pkt, uint64_t *data) in PACKET_get_net_8() argument
280 if (!PACKET_peek_net_8(pkt, data)) in PACKET_get_net_8()
290 unsigned int *data) in PACKET_peek_1() argument
295 *data = *pkt->curr; in PACKET_peek_1()
301 __owur static ossl_inline int PACKET_get_1(PACKET *pkt, unsigned int *data) in PACKET_get_1() argument
303 if (!PACKET_peek_1(pkt, data)) in PACKET_get_1()
312 __owur static ossl_inline int PACKET_get_1_len(PACKET *pkt, size_t *data) in PACKET_get_1_len() argument
318 *data = (size_t)i; in PACKET_get_1_len()
328 unsigned long *data) in PACKET_peek_4() argument
333 *data = *pkt->curr; in PACKET_peek_4()
334 *data |= ((unsigned long)(*(pkt->curr + 1))) << 8; in PACKET_peek_4()
335 *data |= ((unsigned long)(*(pkt->curr + 2))) << 16; in PACKET_peek_4()
336 *data |= ((unsigned long)(*(pkt->curr + 3))) << 24; in PACKET_peek_4()
346 __owur static ossl_inline int PACKET_get_4(PACKET *pkt, unsigned long *data) in PACKET_get_4() argument
348 if (!PACKET_peek_4(pkt, data)) in PACKET_get_4()
363 const unsigned char **data, in PACKET_peek_bytes() argument
369 *data = pkt->curr; in PACKET_peek_bytes()
381 const unsigned char **data, in PACKET_get_bytes() argument
384 if (!PACKET_peek_bytes(pkt, data, len)) in PACKET_get_bytes()
394 unsigned char *data, in PACKET_peek_copy_bytes() argument
400 memcpy(data, pkt->curr, len); in PACKET_peek_copy_bytes()
410 unsigned char *data, size_t len) in PACKET_copy_bytes() argument
412 if (!PACKET_peek_copy_bytes(pkt, data, len)) in PACKET_copy_bytes()
450 unsigned char **data, size_t *len) in PACKET_memdup() argument
454 OPENSSL_free(*data); in PACKET_memdup()
455 *data = NULL; in PACKET_memdup()
463 *data = OPENSSL_memdup(pkt->curr, length); in PACKET_memdup()
464 if (*data == NULL) in PACKET_memdup()
481 __owur static ossl_inline int PACKET_strndup(const PACKET *pkt, char **data) in PACKET_strndup() argument
483 OPENSSL_free(*data); in PACKET_strndup()
486 *data = OPENSSL_strndup((const char *)pkt->curr, PACKET_remaining(pkt)); in PACKET_strndup()
487 return (*data != NULL); in PACKET_strndup()
518 const unsigned char *data; in PACKET_get_length_prefixed_1() local
521 !PACKET_get_bytes(&tmp, &data, (size_t)length)) { in PACKET_get_length_prefixed_1()
526 subpkt->curr = data; in PACKET_get_length_prefixed_1()
540 const unsigned char *data; in PACKET_as_length_prefixed_1() local
543 !PACKET_get_bytes(&tmp, &data, (size_t)length) || in PACKET_as_length_prefixed_1()
549 subpkt->curr = data; in PACKET_as_length_prefixed_1()
566 const unsigned char *data; in PACKET_get_length_prefixed_2() local
570 !PACKET_get_bytes(&tmp, &data, (size_t)length)) { in PACKET_get_length_prefixed_2()
575 subpkt->curr = data; in PACKET_get_length_prefixed_2()
589 const unsigned char *data; in PACKET_as_length_prefixed_2() local
593 !PACKET_get_bytes(&tmp, &data, (size_t)length) || in PACKET_as_length_prefixed_2()
599 subpkt->curr = data; in PACKET_as_length_prefixed_2()
616 const unsigned char *data; in PACKET_get_length_prefixed_3() local
619 !PACKET_get_bytes(&tmp, &data, (size_t)length)) { in PACKET_get_length_prefixed_3()
624 subpkt->curr = data; in PACKET_get_length_prefixed_3()