Lines Matching refs:client_hello
175 const SSL_CLIENT_HELLO *client_hello, uint16_t id) { in ssl_client_cipher_list_contains_cipher() argument
177 CBS_init(&cipher_suites, client_hello->cipher_suites, in ssl_client_cipher_list_contains_cipher()
178 client_hello->cipher_suites_len); in ssl_client_cipher_list_contains_cipher()
195 const SSL_CLIENT_HELLO *client_hello) { in negotiate_version() argument
199 if (ssl_client_hello_get_extension(client_hello, &supported_versions, in negotiate_version()
224 if (client_hello->version <= DTLS1_2_VERSION) { in negotiate_version()
226 } else if (client_hello->version <= DTLS1_VERSION) { in negotiate_version()
232 if (client_hello->version >= TLS1_2_VERSION) { in negotiate_version()
234 } else if (client_hello->version >= TLS1_1_VERSION) { in negotiate_version()
236 } else if (client_hello->version >= TLS1_VERSION) { in negotiate_version()
254 if (ssl_client_cipher_list_contains_cipher(client_hello, in negotiate_version()
266 const SSL_CLIENT_HELLO *client_hello) { in ssl_parse_client_cipher_list() argument
268 CBS_init(&cipher_suites, client_hello->cipher_suites, in ssl_parse_client_cipher_list()
269 client_hello->cipher_suites_len); in ssl_parse_client_cipher_list()
329 SSL_HANDSHAKE *hs, const SSL_CLIENT_HELLO *client_hello, in choose_cipher() argument
343 ssl_parse_client_cipher_list(client_hello); in choose_cipher()
405 static bool is_probably_jdk11_with_tls13(const SSL_CLIENT_HELLO *client_hello) { in is_probably_jdk11_with_tls13() argument
412 client_hello, TLS1_CK_CHACHA20_POLY1305_SHA256 & 0xffff)) { in is_probably_jdk11_with_tls13()
444 CBS_init(&extensions, client_hello->extensions, client_hello->extensions_len); in is_probably_jdk11_with_tls13()
506 const SSL_CLIENT_HELLO *client_hello) { in extract_sni() argument
509 if (!ssl_client_hello_get_extension(client_hello, &sni, in extract_sni()
565 SSL_CLIENT_HELLO client_hello; in do_read_client_hello() local
566 if (!ssl_client_hello_init(ssl, &client_hello, msg)) { in do_read_client_hello()
585 if (!extract_sni(hs, &alert, &client_hello)) { in do_read_client_hello()
592 switch (ssl->ctx->select_certificate_cb(&client_hello)) { in do_read_client_hello()
613 is_probably_jdk11_with_tls13(&client_hello)) { in do_read_client_hello()
617 if (!negotiate_version(hs, &alert, &client_hello)) { in do_read_client_hello()
622 hs->client_version = client_hello.version; in do_read_client_hello()
623 if (client_hello.random_len != SSL3_RANDOM_SIZE) { in do_read_client_hello()
627 OPENSSL_memcpy(ssl->s3->client_random, client_hello.random, in do_read_client_hello()
628 client_hello.random_len); in do_read_client_hello()
632 if (OPENSSL_memchr(client_hello.compression_methods, 0, in do_read_client_hello()
633 client_hello.compression_methods_len) == NULL || in do_read_client_hello()
635 client_hello.compression_methods_len != 1)) { in do_read_client_hello()
642 if (!ssl_parse_clienthello_tlsext(hs, &client_hello)) { in do_read_client_hello()
706 SSL_CLIENT_HELLO client_hello; in do_select_certificate() local
707 if (!ssl_client_hello_init(ssl, &client_hello, msg)) { in do_select_certificate()
716 hs->new_cipher = choose_cipher(hs, &client_hello, prefs); in do_select_certificate()
745 SSL_CLIENT_HELLO client_hello; in do_select_parameters() local
746 if (!ssl_client_hello_init(ssl, &client_hello, msg)) { in do_select_parameters()
754 hs, &session, &tickets_supported, &renew_ticket, &client_hello); in do_select_parameters()
795 ssl->ctx->dos_protection_cb(&client_hello) == 0) { in do_select_parameters()
827 if (!ssl_negotiate_alpn(hs, &alert, &client_hello)) { in do_select_parameters()