Lines Matching refs:CBS_len
161 while (CBS_len(&extensions) > 0) { in tls1_check_duplicate_extensions()
193 assert(CBS_len(&extensions) == 0); in tls1_check_duplicate_extensions()
216 out->client_hello_len = CBS_len(&msg.body); in ssl_client_hello_init()
223 CBS_len(&session_id) > SSL_MAX_SSL_SESSION_ID_LENGTH) { in ssl_client_hello_init()
228 out->random_len = CBS_len(&random); in ssl_client_hello_init()
230 out->session_id_len = CBS_len(&session_id); in ssl_client_hello_init()
236 CBS_len(&cookie) > DTLS1_COOKIE_LENGTH) { in ssl_client_hello_init()
243 CBS_len(&cipher_suites) < 2 || (CBS_len(&cipher_suites) & 1) != 0 || in ssl_client_hello_init()
245 CBS_len(&compression_methods) < 1) { in ssl_client_hello_init()
250 out->cipher_suites_len = CBS_len(&cipher_suites); in ssl_client_hello_init()
252 out->compression_methods_len = CBS_len(&compression_methods); in ssl_client_hello_init()
256 if (CBS_len(&client_hello) == 0) { in ssl_client_hello_init()
266 CBS_len(&client_hello) != 0) { in ssl_client_hello_init()
271 out->extensions_len = CBS_len(&extensions); in ssl_client_hello_init()
280 while (CBS_len(&extensions) != 0) { in ssl_client_hello_get_extension()
570 return contents == NULL || CBS_len(contents) == 0; in ext_sni_parse_serverhello()
724 CBS_len(&ech_configs) == 0 || // in ext_ech_parse_serverhello()
725 CBS_len(contents) > 0) { in ext_ech_parse_serverhello()
729 while (CBS_len(&ech_configs) > 0) { in ext_ech_parse_serverhello()
761 if (CBS_len(contents) > 0) { in ext_ech_is_inner_parse_clienthello()
839 CBS_len(contents) != 0) { in ext_ri_parse_serverhello()
846 if (CBS_len(&renegotiated_connection) != expected_len) { in ext_ri_parse_serverhello()
897 CBS_len(contents) != 0) { in ext_ri_parse_clienthello()
904 if (CBS_len(&renegotiated_connection) != 0) { in ext_ri_parse_clienthello()
959 CBS_len(contents) != 0) { in ext_ems_parse_serverhello()
988 if (CBS_len(contents) != 0) { in ext_ems_parse_clienthello()
1063 if (CBS_len(contents) != 0) { in ext_ticket_parse_serverhello()
1118 CBS_len(contents) != 0 || in ext_sigalgs_parse_clienthello()
1162 if (CBS_len(contents) != 0 || in ext_ocsp_parse_serverhello()
1255 const size_t orig_len = CBS_len(contents); in ext_npn_parse_serverhello()
1257 while (CBS_len(contents) != 0) { in ext_npn_parse_serverhello()
1260 CBS_len(&proto) == 0) { in ext_npn_parse_serverhello()
1287 if (contents != NULL && CBS_len(contents) != 0) { in ext_npn_parse_clienthello()
1394 if (CBS_len(contents) != 0) { in ext_sct_parse_clienthello()
1480 CBS_len(contents) != 0 || in ext_alpn_parse_serverhello()
1483 CBS_len(&protocol_name) == 0 || in ext_alpn_parse_serverhello()
1484 CBS_len(&protocol_name_list) != 0) { in ext_alpn_parse_serverhello()
1516 while (CBS_len(&client_protocol_name_list) > 0) { in ssl_is_alpn_protocol_allowed()
1553 CBS_len(&contents) != 0 || in ssl_negotiate_alpn()
1554 CBS_len(&protocol_name_list) < 2) { in ssl_negotiate_alpn()
1562 while (CBS_len(&protocol_name_list_copy) > 0) { in ssl_negotiate_alpn()
1566 CBS_len(&protocol_name) == 0) { in ssl_negotiate_alpn()
1577 CBS_len(&protocol_name_list), in ssl_negotiate_alpn()
1653 if (CBS_len(contents) != 0) { in ext_channel_id_parse_serverhello()
1669 if (CBS_len(contents) != 0) { in ext_channel_id_parse_clienthello()
1745 CBS_len(&profile_ids) != 0 || in ext_srtp_parse_serverhello()
1747 CBS_len(contents) != 0) { in ext_srtp_parse_serverhello()
1752 if (CBS_len(&srtp_mki) != 0) { in ext_srtp_parse_serverhello()
1784 CBS_len(&profile_ids) < 2 || in ext_srtp_parse_clienthello()
1786 CBS_len(contents) != 0) { in ext_srtp_parse_clienthello()
1798 CBS_init(&profile_ids_tmp, CBS_data(&profile_ids), CBS_len(&profile_ids)); in ext_srtp_parse_clienthello()
1800 while (CBS_len(&profile_ids_tmp) > 0) { in ext_srtp_parse_clienthello()
1874 CBS_len(contents) != 0) { in ext_ec_point_parse_serverhello()
1882 CBS_len(&ec_point_format_list)) == NULL) { in ext_ec_point_parse_serverhello()
1981 CBS_len(contents) != 0) { in ssl_ext_pre_shared_key_parse_serverhello()
2003 if (CBS_data(contents) + CBS_len(contents) != in ssl_ext_pre_shared_key_parse_clienthello()
2016 CBS_len(&binders) == 0 || in ssl_ext_pre_shared_key_parse_clienthello()
2017 CBS_len(contents) != 0) { in ssl_ext_pre_shared_key_parse_clienthello()
2027 while (CBS_len(&identities) != 0) { in ssl_ext_pre_shared_key_parse_clienthello()
2043 while (CBS_len(&binders) != 0) { in ssl_ext_pre_shared_key_parse_clienthello()
2111 CBS_len(&ke_modes) == 0 || in ext_psk_key_exchange_modes_parse_clienthello()
2112 CBS_len(contents) != 0) { in ext_psk_key_exchange_modes_parse_clienthello()
2119 CBS_len(&ke_modes)) != NULL; in ext_psk_key_exchange_modes_parse_clienthello()
2231 if (CBS_len(contents) != 0) { in ext_early_data_parse_serverhello()
2255 if (CBS_len(contents) != 0) { in ext_early_data_parse_clienthello()
2376 CBS_len(contents) != 0) { in ssl_ext_key_share_parse_serverhello()
2415 CBS_len(contents) != 0) { in ssl_ext_key_share_parse_clienthello()
2423 while (CBS_len(&key_shares) > 0) { in ssl_ext_key_share_parse_clienthello()
2428 CBS_len(&peer_key_tmp) == 0) { in ssl_ext_key_share_parse_clienthello()
2434 if (CBS_len(&peer_key) != 0) { in ssl_ext_key_share_parse_clienthello()
2445 if (CBS_len(&peer_key) == 0) { in ssl_ext_key_share_parse_clienthello()
2590 if ((CBS_len(©) & 1) != 0) { in parse_u16_array()
2596 if (!ret.Init(CBS_len(©) / 2)) { in parse_u16_array()
2606 assert(CBS_len(©) == 0); in parse_u16_array()
2620 CBS_len(&supported_group_list) == 0 || in ext_supported_groups_parse_clienthello()
2621 CBS_len(contents) != 0 || in ext_supported_groups_parse_clienthello()
2674 CBS_len(¶ms_list) > 0 || in ext_token_binding_parse_serverhello()
2675 CBS_len(contents) > 0) { in ext_token_binding_parse_serverhello()
2733 CBS_len(¶ms) == 0 || in ext_token_binding_parse_clienthello()
2734 CBS_len(contents) > 0) { in ext_token_binding_parse_clienthello()
2984 CBS_len(&sigalg_list) == 0 || in ext_delegated_credential_parse_clienthello()
2985 CBS_len(contents) != 0 || in ext_delegated_credential_parse_clienthello()
3043 CBS_len(contents) != 0 || in cert_compression_parse_clienthello()
3044 CBS_len(&alg_ids) == 0 || in cert_compression_parse_clienthello()
3045 CBS_len(&alg_ids) % 2 == 1) { in cert_compression_parse_clienthello()
3049 const size_t num_given_alg_ids = CBS_len(&alg_ids) / 2; in cert_compression_parse_clienthello()
3058 while (CBS_len(&alg_ids) > 0) { in cert_compression_parse_clienthello()
3204 CBS_len(&alps_contents) != 0 || in ssl_negotiate_alps()
3205 CBS_len(&alps_list) == 0) { in ssl_negotiate_alps()
3210 while (CBS_len(&alps_list) > 0) { in ssl_negotiate_alps()
3214 CBS_len(&protocol_name) == 0) { in ssl_negotiate_alps()
3652 while (CBS_len(&extensions) != 0) { in ssl_scan_clienthello_tlsext()
3733 if (CBS_len(cbs) == 0 && ssl_protocol_version(ssl) < TLS1_3_VERSION) { in ssl_scan_serverhello_tlsext()
3746 while (CBS_len(&extensions) != 0) { in ssl_scan_serverhello_tlsext()
4093 return CBS_len(in_sigalgs) != 0 && in tls1_parse_peer_sigalgs()
4175 CBS_len(&channel_id) != 0 || in tls1_verify_channel_id()
4177 CBS_len(&extension) != TLSEXT_CHANNEL_ID_SIZE) { in tls1_verify_channel_id()
4366 CBS_len(©) != 0 || in ssl_is_sct_list_valid()
4367 CBS_len(&sct_list) == 0) { in ssl_is_sct_list_valid()
4371 while (CBS_len(&sct_list) > 0) { in ssl_is_sct_list_valid()
4374 CBS_len(&sct) == 0) { in ssl_is_sct_list_valid()
4396 *out_len = CBS_len(&cbs); in SSL_early_callback_ctx_extension_get()