Home
last modified time | relevance | path

Searched refs:PACKET_remaining (Results 1 – 20 of 20) sorted by relevance

/third_party/openssl/test/
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(&pkt))) in test_PACKET_copy_bytes()
[all …]
Dservername_test.c62 while (PACKET_remaining(&pkt2)) { in get_sni_from_client_hello()
68 || !TEST_uint_ne(PACKET_remaining(&pkt4), 0) in get_sni_from_client_hello()
72 || !TEST_uint_le(PACKET_remaining(&pkt5), TLSEXT_MAXLEN_host_name) in get_sni_from_client_hello()
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()
Dclienthellotest.c195 msglen = PACKET_remaining(&pkt); in test_client_hello()
213 while (PACKET_remaining(&pkt2)) { in test_client_hello()
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()
Dbad_dtls_test.c160 if (PACKET_remaining(&pkt2)) { in validate_client_hello()
179 if (PACKET_remaining(&pkt)) in validate_client_hello()
Dsslapitest.c4875 while (PACKET_remaining(&pkt2)) { in get_MFL_from_client_hello()
4881 if (!TEST_uint_ne(PACKET_remaining(&pkt3), 0) in get_MFL_from_client_hello()
/third_party/openssl/ssl/
Dpacket_local.h38 static ossl_inline size_t PACKET_remaining(const PACKET *pkt) in PACKET_remaining() function
96 if (PACKET_remaining(pkt) != num) in PACKET_equal()
109 if (PACKET_remaining(pkt) < len) in PACKET_peek_sub_packet()
138 if (PACKET_remaining(pkt) < 2) in PACKET_peek_net_2()
178 if (PACKET_remaining(pkt) < 3) in PACKET_peek_net_3()
219 if (PACKET_remaining(pkt) < 4) in PACKET_peek_net_4()
258 if (!PACKET_remaining(pkt)) in PACKET_peek_1()
296 if (PACKET_remaining(pkt) < 4) in PACKET_peek_4()
332 if (PACKET_remaining(pkt) < len) in PACKET_peek_bytes()
363 if (PACKET_remaining(pkt) < len) in PACKET_peek_copy_bytes()
[all …]
Dd1_lib.c576 reclen = PACKET_remaining(&msgpkt); in DTLSv1_listen()
598 || PACKET_remaining(&msgpkt) != 0) { in DTLSv1_listen()
661 if (PACKET_remaining(&cookiepkt) == 0) { in DTLSv1_listen()
673 (unsigned int)PACKET_remaining(&cookiepkt)) == 0) { in DTLSv1_listen()
Dssl_rsa.c698 if (PACKET_remaining(&pkt) == 0) in serverinfo_find_extension()
708 *extension_length = PACKET_remaining(&data);; in serverinfo_find_extension()
797 while (PACKET_remaining(&pkt)) { in serverinfo_process_buffer()
Dssl_lib.c5155 return PACKET_remaining(&s->clienthello->ciphersuites); in SSL_client_hello_get0_ciphers()
5220 *outlen = PACKET_remaining(&r->data); in SSL_client_hello_get0_ext()
5349 if (PACKET_remaining(cipher_suites) == 0) { in ssl_cache_cipherlist()
5355 if (PACKET_remaining(cipher_suites) % n != 0) { in ssl_cache_cipherlist()
5366 size_t numciphers = PACKET_remaining(cipher_suites) / n; in ssl_cache_cipherlist()
5386 PACKET_remaining(&sslv2ciphers) > 0; in ssl_cache_cipherlist()
5438 if (PACKET_remaining(cipher_suites) == 0) { in bytes_to_cipher_list()
5447 if (PACKET_remaining(cipher_suites) % n != 0) { in bytes_to_cipher_list()
5491 if (PACKET_remaining(cipher_suites) > 0) { in bytes_to_cipher_list()
Dt1_lib.c1327 size = PACKET_remaining(&ticketext->data); in tls_get_ticket_from_client()
1803 size = PACKET_remaining(pkt); in tls1_save_u16()
/third_party/openssl/ssl/statem/
Dextensions_srvr.c105 || PACKET_remaining(&sni) == 0) { in tls_parse_ctos_server_name()
135 if (PACKET_remaining(&hostname) > TLSEXT_MAXLEN_host_name) { in tls_parse_ctos_server_name()
185 if (PACKET_remaining(pkt) != 1 || !PACKET_get_1(pkt, &value)) { in tls_parse_ctos_maxfragmentlen()
254 || PACKET_remaining(&ec_point_format_list) == 0) { in tls_parse_ctos_ec_pt_formats()
279 PACKET_remaining(pkt), in tls_parse_ctos_session_ticket()
295 || PACKET_remaining(&supported_sig_algs) == 0) { in tls_parse_ctos_sig_algs_cert()
316 || PACKET_remaining(&supported_sig_algs) == 0) { in tls_parse_ctos_sig_algs()
370 if (PACKET_remaining(&responder_id_list) > 0) { in tls_parse_ctos_status_request()
381 while (PACKET_remaining(&responder_id_list) > 0) { in tls_parse_ctos_status_request()
387 || PACKET_remaining(&responder_id) == 0) { in tls_parse_ctos_status_request()
[all …]
Dstatem_clnt.c1308 cookie_len = PACKET_remaining(&cookiepkt); in dtls_process_hello_verify()
1423 && PACKET_remaining(pkt) >= SSL3_RANDOM_SIZE in tls_process_server_hello()
1446 session_id_len = PACKET_remaining(&session_id); in tls_process_server_hello()
1467 if (PACKET_remaining(pkt) == 0 && !hrr) { in tls_process_server_hello()
1470 || PACKET_remaining(pkt) != 0) { in tls_process_server_hello()
1837 || PACKET_remaining(pkt) != cert_list_len in tls_process_server_certificate()
1838 || PACKET_remaining(pkt) == 0) { in tls_process_server_certificate()
1843 for (chainidx = 0; PACKET_remaining(pkt); chainidx++) { in tls_process_server_certificate()
1881 PACKET_remaining(pkt) == 0)) { in tls_process_server_certificate()
2007 if (PACKET_remaining(&psk_identity_hint) > PSK_MAX_IDENTITY_LEN) { in tls_process_ske_psk_preamble()
[all …]
Dextensions_clnt.c1248 if (PACKET_remaining(pkt) != ilen) { in tls_parse_stoc_renegotiate()
1287 if (PACKET_remaining(pkt) != 1 || !PACKET_get_1(pkt, &value)) { in tls_parse_stoc_maxfragmentlen()
1332 if (PACKET_remaining(pkt) > 0) { in tls_parse_stoc_server_name()
1368 ecpointformats_len = PACKET_remaining(&ecptformatlist); in tls_parse_stoc_ec_pt_formats()
1405 PACKET_remaining(pkt), in tls_parse_stoc_session_ticket()
1417 if (PACKET_remaining(pkt) > 0) { in tls_parse_stoc_session_ticket()
1447 if (!SSL_IS_TLS13(s) && PACKET_remaining(pkt) > 0) { in tls_parse_stoc_status_request()
1488 size_t size = PACKET_remaining(pkt); in tls_parse_stoc_sct()
1527 PACKET_data(pkt), PACKET_remaining(pkt), in tls_parse_stoc_sct()
1549 while (PACKET_remaining(pkt)) { in ssl_next_proto_validate()
[all …]
Dstatem_srvr.c1494 || PACKET_remaining(pkt) != 0) { in tls_process_client_hello()
1571 if (PACKET_remaining(pkt) == 0) { in tls_process_client_hello()
1575 || PACKET_remaining(pkt) != 0) { in tls_process_client_hello()
2941 if (PACKET_remaining(&psk_identity) > PSK_MAX_IDENTITY_LEN) { in tls_process_cke_psk_preamble()
3021 || PACKET_remaining(pkt) != 0) { in tls_process_cke_rsa()
3067 decrypt_len = (int)RSA_private_decrypt((int)PACKET_remaining(&enc_premaster), in tls_process_cke_rsa()
3179 if (!PACKET_get_net_2(pkt, &i) || PACKET_remaining(pkt) != i) { in tls_process_cke_dhe()
3191 if (PACKET_remaining(pkt) == 0L) { in tls_process_cke_dhe()
3244 if (PACKET_remaining(pkt) == 0L) { in tls_process_cke_ecdhe()
3260 || PACKET_remaining(pkt) != 0) { in tls_process_cke_ecdhe()
[all …]
Dstatem_lib.c420 && ((PACKET_remaining(pkt) == 64 in tls_process_cert_verify()
423 || (PACKET_remaining(pkt) == 128 in tls_process_cert_verify()
425 len = PACKET_remaining(pkt); in tls_process_cert_verify()
435 if (((int)len > j) || ((int)PACKET_remaining(pkt) > j) in tls_process_cert_verify()
436 || (PACKET_remaining(pkt) == 0)) { in tls_process_cert_verify()
638 || PACKET_remaining(pkt) != 0) { in tls_process_key_update()
704 remain = PACKET_remaining(pkt); in tls_process_change_cipher_spec()
803 if (md_len != PACKET_remaining(pkt)) { in tls_process_finished()
1833 if (PACKET_remaining(&versionslist) != 0) { in ssl_choose_server_version()
2273 while (PACKET_remaining(&cadns)) { in parse_ca_names()
Dextensions.c585 while (PACKET_remaining(&extensions) > 0) { in tls_collect_extensions()
605 && PACKET_remaining(&extensions) != 0)) { in tls_collect_extensions()
650 PACKET_remaining(&thisex->data), in tls_collect_extensions()
730 PACKET_remaining(&currext->data), in tls_parse_extension()
1269 if (PACKET_remaining(pkt) != 0) { in tls_parse_certificate_authorities()
1600 hdatalen -= PACKET_remaining(&hashprefix); in tls_psk_do_binder()
/third_party/openssl/ssl/record/
Drec_layer_d1.c559 || PACKET_remaining(&alert) != 0) { in dtls1_read_bytes()
Drec_layer_s3.c1495 || PACKET_remaining(&alert) != 0) { in ssl3_read_bytes()