Home
last modified time | relevance | path

Searched refs:PACKET_remaining (Results 1 - 25 of 37) sorted by relevance

12

/third_party/openssl/test/
H A Dpackettest.c22 || !TEST_size_t_eq(PACKET_remaining(&pkt), BUF_LEN) in test_PACKET_remaining()
24 || !TEST_size_t_eq(PACKET_remaining(&pkt), 1) in test_PACKET_remaining()
26 || !TEST_size_t_eq(PACKET_remaining(&pkt), 0)) in test_PACKET_remaining()
37 || !TEST_size_t_eq(PACKET_remaining(&pkt), BUF_LEN) in test_PACKET_end()
142 || !TEST_size_t_eq(PACKET_remaining(&subpkt), 0) in test_PACKET_get_sub_packet()
147 || !TEST_size_t_eq(PACKET_remaining(&subpkt), 0) in test_PACKET_get_sub_packet()
165 || !TEST_size_t_eq(PACKET_remaining(&pkt), BUF_LEN -4) in test_PACKET_get_bytes()
172 || !TEST_false(PACKET_remaining(&pkt))) in test_PACKET_get_bytes()
189 || !TEST_size_t_eq(PACKET_remaining(&pkt), BUF_LEN - 4) in test_PACKET_copy_bytes()
196 || !TEST_false(PACKET_remaining( in test_PACKET_copy_bytes()
[all...]
H A Dtls13ccstest.c107 while (PACKET_remaining(&pkt)) { in watchccs_write()
134 chsessidlen = PACKET_remaining(&sessionid); in watchccs_write()
142 if (PACKET_remaining(&sessionid) != chsessidlen in watchccs_write()
162 if (PACKET_remaining(&sessionid) != chsessidlen in watchccs_write()
H A Dservername_test.c75 while (PACKET_remaining(&pkt2)) { in get_sni_from_client_hello()
81 || !TEST_uint_ne(PACKET_remaining(&pkt4), 0) in get_sni_from_client_hello()
85 || !TEST_uint_le(PACKET_remaining(&pkt5), TLSEXT_MAXLEN_host_name) in get_sni_from_client_hello()
H A Dasynciotest.c148 while (PACKET_remaining(&pkt) > 0) { in async_write()
189 while (PACKET_remaining(&extensions)) { in async_write()
200 || PACKET_remaining(&extbody) != 0)) in async_write()
H A Dclienthellotest.c200 msglen = PACKET_remaining(&pkt); in test_client_hello()
218 while (PACKET_remaining(&pkt2)) { in test_client_hello()
/third_party/node/deps/openssl/openssl/include/internal/
H A Dpacket.h39 static ossl_inline size_t PACKET_remaining(const PACKET *pkt) in PACKET_remaining() function
97 if (PACKET_remaining(pkt) != num) in PACKET_equal()
110 if (PACKET_remaining(pkt) < len) in PACKET_peek_sub_packet()
139 if (PACKET_remaining(pkt) < 2) in PACKET_peek_net_2()
179 if (PACKET_remaining(pkt) < 3) in PACKET_peek_net_3()
220 if (PACKET_remaining(pkt) < 4) in PACKET_peek_net_4()
238 if (PACKET_remaining(pkt) < 8) in PACKET_peek_net_8()
292 if (!PACKET_remaining(pkt)) in PACKET_peek_1()
330 if (PACKET_remaining(pkt) < 4) in PACKET_peek_4()
366 if (PACKET_remaining(pk in PACKET_peek_bytes()
[all...]
/third_party/openssl/include/internal/
H A Dpacket.h39 static ossl_inline size_t PACKET_remaining(const PACKET *pkt) in PACKET_remaining() function
97 if (PACKET_remaining(pkt) != num) in PACKET_equal()
110 if (PACKET_remaining(pkt) < len) in PACKET_peek_sub_packet()
139 if (PACKET_remaining(pkt) < 2) in PACKET_peek_net_2()
179 if (PACKET_remaining(pkt) < 3) in PACKET_peek_net_3()
220 if (PACKET_remaining(pkt) < 4) in PACKET_peek_net_4()
238 if (PACKET_remaining(pkt) < 8) in PACKET_peek_net_8()
292 if (!PACKET_remaining(pkt)) in PACKET_peek_1()
330 if (PACKET_remaining(pkt) < 4) in PACKET_peek_4()
366 if (PACKET_remaining(pk in PACKET_peek_bytes()
[all...]
/third_party/node/deps/openssl/openssl/ssl/statem/
H A Dextensions_srvr.c102 || PACKET_remaining(&sni) == 0) { in tls_parse_ctos_server_name()
130 if (PACKET_remaining(&hostname) > TLSEXT_MAXLEN_host_name) { in tls_parse_ctos_server_name()
171 if (PACKET_remaining(pkt) != 1 || !PACKET_get_1(pkt, &value)) { in tls_parse_ctos_maxfragmentlen()
229 || PACKET_remaining(&ec_point_format_list) == 0) { in tls_parse_ctos_ec_pt_formats()
251 PACKET_remaining(pkt), in tls_parse_ctos_session_ticket()
268 || PACKET_remaining(&supported_sig_algs) == 0) { in tls_parse_ctos_sig_algs_cert()
287 || PACKET_remaining(&supported_sig_algs) == 0) { in tls_parse_ctos_sig_algs()
337 if (PACKET_remaining(&responder_id_list) > 0) { in tls_parse_ctos_status_request()
347 while (PACKET_remaining(&responder_id_list) > 0) { in tls_parse_ctos_status_request()
353 || PACKET_remaining( in tls_parse_ctos_status_request()
[all...]
H A Dstatem_clnt.c1297 cookie_len = PACKET_remaining(&cookiepkt); in dtls_process_hello_verify()
1406 && PACKET_remaining(pkt) >= SSL3_RANDOM_SIZE in tls_process_server_hello()
1430 session_id_len = PACKET_remaining(&session_id); in tls_process_server_hello()
1448 if (PACKET_remaining(pkt) == 0 && !hrr) { in tls_process_server_hello()
1451 || PACKET_remaining(pkt) != 0) { in tls_process_server_hello()
1797 || PACKET_remaining(pkt) != cert_list_len in tls_process_server_certificate()
1798 || PACKET_remaining(pkt) == 0) { in tls_process_server_certificate()
1802 for (chainidx = 0; PACKET_remaining(pkt); chainidx++) { in tls_process_server_certificate()
1840 PACKET_remaining(pkt) == 0)) { in tls_process_server_certificate()
1967 if (PACKET_remaining( in tls_process_ske_psk_preamble()
[all...]
H A Dextensions_clnt.c1267 if (PACKET_remaining(pkt) != ilen) { in tls_parse_stoc_renegotiate()
1302 if (PACKET_remaining(pkt) != 1 || !PACKET_get_1(pkt, &value)) { in tls_parse_stoc_maxfragmentlen()
1343 if (PACKET_remaining(pkt) > 0) { in tls_parse_stoc_server_name()
1374 ecpointformats_len = PACKET_remaining(&ecptformatlist); in tls_parse_stoc_ec_pt_formats()
1407 PACKET_remaining(pkt), in tls_parse_stoc_session_ticket()
1417 if (PACKET_remaining(pkt) > 0) { in tls_parse_stoc_session_ticket()
1444 if (!SSL_IS_TLS13(s) && PACKET_remaining(pkt) > 0) { in tls_parse_stoc_status_request()
1483 size_t size = PACKET_remaining(pkt); in tls_parse_stoc_sct()
1519 PACKET_data(pkt), PACKET_remaining(pkt), in tls_parse_stoc_sct()
1541 while (PACKET_remaining(pk in ssl_next_proto_validate()
[all...]
H A Dstatem_srvr.c1490 || PACKET_remaining(pkt) != 0) { in tls_process_client_hello()
1560 if (PACKET_remaining(pkt) == 0) { in tls_process_client_hello()
1564 || PACKET_remaining(pkt) != 0) { in tls_process_client_hello()
2830 if (PACKET_remaining(&psk_identity) > PSK_MAX_IDENTITY_LEN) { in tls_process_cke_psk_preamble()
2899 || PACKET_remaining(pkt) != 0) { in tls_process_cke_rsa()
2946 PACKET_remaining(&enc_premaster)) <= 0) { in tls_process_cke_rsa()
2983 if (!PACKET_get_net_2(pkt, &i) || PACKET_remaining(pkt) != i) { in tls_process_cke_dhe()
2993 if (PACKET_remaining(pkt) == 0L) { in tls_process_cke_dhe()
3032 if (PACKET_remaining(pkt) == 0L) { in tls_process_cke_ecdhe()
3047 || PACKET_remaining(pk in tls_process_cke_ecdhe()
[all...]
H A Dextensions.c616 while (PACKET_remaining(&extensions) > 0) { in tls_collect_extensions()
635 && PACKET_remaining(&extensions) != 0)) { in tls_collect_extensions()
679 PACKET_remaining(&thisex->data), in tls_collect_extensions()
759 PACKET_remaining(&currext->data), in tls_parse_extension()
1292 if (PACKET_remaining(pkt) != 0) { in tls_parse_certificate_authorities()
1616 hdatalen -= PACKET_remaining(&hashprefix); in tls_psk_do_binder()
H A Dstatem_lib.c487 && ((PACKET_remaining(pkt) == 64 in tls_process_cert_verify()
490 || (PACKET_remaining(pkt) == 128 in tls_process_cert_verify()
492 len = PACKET_remaining(pkt); in tls_process_cert_verify()
702 || PACKET_remaining(pkt) != 0) { in tls_process_key_update()
766 remain = PACKET_remaining(pkt); in tls_process_change_cipher_spec()
857 if (md_len != PACKET_remaining(pkt)) { in tls_process_finished()
1868 if (PACKET_remaining(&versionslist) != 0) { in ssl_choose_server_version()
2295 while (PACKET_remaining(&cadns)) { in parse_ca_names()
/third_party/openssl/ssl/statem/
H A Dextensions_srvr.c102 || PACKET_remaining(&sni) == 0) { in tls_parse_ctos_server_name()
130 if (PACKET_remaining(&hostname) > TLSEXT_MAXLEN_host_name) { in tls_parse_ctos_server_name()
171 if (PACKET_remaining(pkt) != 1 || !PACKET_get_1(pkt, &value)) { in tls_parse_ctos_maxfragmentlen()
229 || PACKET_remaining(&ec_point_format_list) == 0) { in tls_parse_ctos_ec_pt_formats()
251 PACKET_remaining(pkt), in tls_parse_ctos_session_ticket()
268 || PACKET_remaining(&supported_sig_algs) == 0) { in tls_parse_ctos_sig_algs_cert()
287 || PACKET_remaining(&supported_sig_algs) == 0) { in tls_parse_ctos_sig_algs()
337 if (PACKET_remaining(&responder_id_list) > 0) { in tls_parse_ctos_status_request()
347 while (PACKET_remaining(&responder_id_list) > 0) { in tls_parse_ctos_status_request()
353 || PACKET_remaining( in tls_parse_ctos_status_request()
[all...]
H A Dstatem_clnt.c1289 cookie_len = PACKET_remaining(&cookiepkt); in dtls_process_hello_verify()
1398 && PACKET_remaining(pkt) >= SSL3_RANDOM_SIZE in tls_process_server_hello()
1422 session_id_len = PACKET_remaining(&session_id); in tls_process_server_hello()
1440 if (PACKET_remaining(pkt) == 0 && !hrr) { in tls_process_server_hello()
1443 || PACKET_remaining(pkt) != 0) { in tls_process_server_hello()
1789 || PACKET_remaining(pkt) != cert_list_len in tls_process_server_certificate()
1790 || PACKET_remaining(pkt) == 0) { in tls_process_server_certificate()
1794 for (chainidx = 0; PACKET_remaining(pkt); chainidx++) { in tls_process_server_certificate()
1832 PACKET_remaining(pkt) == 0)) { in tls_process_server_certificate()
1959 if (PACKET_remaining( in tls_process_ske_psk_preamble()
[all...]
H A Dextensions_clnt.c1227 if (PACKET_remaining(pkt) != ilen) { in tls_parse_stoc_renegotiate()
1262 if (PACKET_remaining(pkt) != 1 || !PACKET_get_1(pkt, &value)) { in tls_parse_stoc_maxfragmentlen()
1303 if (PACKET_remaining(pkt) > 0) { in tls_parse_stoc_server_name()
1334 ecpointformats_len = PACKET_remaining(&ecptformatlist); in tls_parse_stoc_ec_pt_formats()
1367 PACKET_remaining(pkt), in tls_parse_stoc_session_ticket()
1377 if (PACKET_remaining(pkt) > 0) { in tls_parse_stoc_session_ticket()
1404 if (!SSL_IS_TLS13(s) && PACKET_remaining(pkt) > 0) { in tls_parse_stoc_status_request()
1443 size_t size = PACKET_remaining(pkt); in tls_parse_stoc_sct()
1479 PACKET_data(pkt), PACKET_remaining(pkt), in tls_parse_stoc_sct()
1501 while (PACKET_remaining(pk in ssl_next_proto_validate()
[all...]
H A Dstatem_srvr.c1479 || PACKET_remaining(pkt) != 0) { in tls_process_client_hello()
1549 if (PACKET_remaining(pkt) == 0) { in tls_process_client_hello()
1553 || PACKET_remaining(pkt) != 0) { in tls_process_client_hello()
2809 if (PACKET_remaining(&psk_identity) > PSK_MAX_IDENTITY_LEN) { in tls_process_cke_psk_preamble()
2878 || PACKET_remaining(pkt) != 0) { in tls_process_cke_rsa()
2925 PACKET_remaining(&enc_premaster)) <= 0) { in tls_process_cke_rsa()
2962 if (!PACKET_get_net_2(pkt, &i) || PACKET_remaining(pkt) != i) { in tls_process_cke_dhe()
2972 if (PACKET_remaining(pkt) == 0L) { in tls_process_cke_dhe()
3011 if (PACKET_remaining(pkt) == 0L) { in tls_process_cke_ecdhe()
3026 || PACKET_remaining(pk in tls_process_cke_ecdhe()
[all...]
H A Dextensions.c588 while (PACKET_remaining(&extensions) > 0) { in tls_collect_extensions()
607 && PACKET_remaining(&extensions) != 0)) { in tls_collect_extensions()
651 PACKET_remaining(&thisex->data), in tls_collect_extensions()
731 PACKET_remaining(&currext->data), in tls_parse_extension()
1264 if (PACKET_remaining(pkt) != 0) { in tls_parse_certificate_authorities()
1584 hdatalen -= PACKET_remaining(&hashprefix); in tls_psk_do_binder()
H A Dstatem_lib.c466 && ((PACKET_remaining(pkt) == 64 in tls_process_cert_verify()
469 || (PACKET_remaining(pkt) == 128 in tls_process_cert_verify()
471 len = PACKET_remaining(pkt); in tls_process_cert_verify()
667 || PACKET_remaining(pkt) != 0) { in tls_process_key_update()
731 remain = PACKET_remaining(pkt); in tls_process_change_cipher_spec()
822 if (md_len != PACKET_remaining(pkt)) { in tls_process_finished()
1833 if (PACKET_remaining(&versionslist) != 0) { in ssl_choose_server_version()
2260 while (PACKET_remaining(&cadns)) { in parse_ca_names()
/third_party/node/deps/openssl/openssl/crypto/
H A Dasn1_dsa.c205 if (PACKET_remaining(&tmppkt) > 0 && tmp == 0) { in ossl_decode_der_integer()
212 (int)PACKET_remaining(&contpkt), n) == NULL) in ossl_decode_der_integer()
246 || PACKET_remaining(&contpkt) != 0) in ossl_decode_der_dsa_sig()
/third_party/openssl/crypto/
H A Dasn1_dsa.c205 if (PACKET_remaining(&tmppkt) > 0 && tmp == 0) { in ossl_decode_der_integer()
212 (int)PACKET_remaining(&contpkt), n) == NULL) in ossl_decode_der_integer()
246 || PACKET_remaining(&contpkt) != 0) in ossl_decode_der_dsa_sig()
/third_party/node/deps/openssl/openssl/ssl/
H A Dd1_lib.c587 reclen = PACKET_remaining(&msgpkt); in DTLSv1_listen()
609 || PACKET_remaining(&msgpkt) != 0) { in DTLSv1_listen()
672 if (PACKET_remaining(&cookiepkt) == 0) { in DTLSv1_listen()
684 (unsigned int)PACKET_remaining(&cookiepkt)) == 0) { in DTLSv1_listen()
H A Dssl_rsa.c563 if (PACKET_remaining(&pkt) == 0) in serverinfo_find_extension()
573 *extension_length = PACKET_remaining(&data);; in serverinfo_find_extension()
662 while (PACKET_remaining(&pkt)) { in serverinfo_process_buffer()
/third_party/openssl/ssl/
H A Dd1_lib.c570 reclen = PACKET_remaining(&msgpkt); in DTLSv1_listen()
592 || PACKET_remaining(&msgpkt) != 0) { in DTLSv1_listen()
655 if (PACKET_remaining(&cookiepkt) == 0) { in DTLSv1_listen()
667 (unsigned int)PACKET_remaining(&cookiepkt)) == 0) { in DTLSv1_listen()
H A Dssl_rsa.c563 if (PACKET_remaining(&pkt) == 0) in serverinfo_find_extension()
573 *extension_length = PACKET_remaining(&data);; in serverinfo_find_extension()
662 while (PACKET_remaining(&pkt)) { in serverinfo_process_buffer()

Completed in 41 milliseconds

12