Home
last modified time | relevance | path

Searched refs:client_hello (Results 1 – 14 of 14) sorted by relevance

/external/boringssl/src/ssl/
Dhandshake_server.cc176 const SSL_CLIENT_HELLO *client_hello, uint16_t id) { in ssl_client_cipher_list_contains_cipher() argument
178 CBS_init(&cipher_suites, client_hello->cipher_suites, in ssl_client_cipher_list_contains_cipher()
179 client_hello->cipher_suites_len); in ssl_client_cipher_list_contains_cipher()
196 const SSL_CLIENT_HELLO *client_hello) { in negotiate_version() argument
200 if (ssl_client_hello_get_extension(client_hello, &supported_versions, in negotiate_version()
225 if (client_hello->version <= DTLS1_2_VERSION) { in negotiate_version()
227 } else if (client_hello->version <= DTLS1_VERSION) { in negotiate_version()
233 if (client_hello->version >= TLS1_2_VERSION) { in negotiate_version()
235 } else if (client_hello->version >= TLS1_1_VERSION) { in negotiate_version()
237 } else if (client_hello->version >= TLS1_VERSION) { in negotiate_version()
[all …]
Dtls13_server.cc57 SSL_CLIENT_HELLO *client_hello) { in resolve_ecdhe_secret() argument
63 if (!ssl_client_hello_get_extension(client_hello, &key_share, in resolve_ecdhe_secret()
132 const SSL *ssl, const SSL_CLIENT_HELLO *client_hello, uint16_t group_id) { in choose_tls13_cipher() argument
133 if (client_hello->cipher_suites_len % 2 != 0) { in choose_tls13_cipher()
138 CBS_init(&cipher_suites, client_hello->cipher_suites, in choose_tls13_cipher()
139 client_hello->cipher_suites_len); in choose_tls13_cipher()
260 SSL_CLIENT_HELLO client_hello; in do_select_parameters() local
261 if (!ssl_client_hello_init(ssl, &client_hello, msg)) { in do_select_parameters()
267 OPENSSL_memcpy(hs->session_id, client_hello.session_id, in do_select_parameters()
268 client_hello.session_id_len); in do_select_parameters()
[all …]
Dt1_lib.cc206 out->client_hello = CBS_data(&msg.body); in ssl_client_hello_init()
209 CBS client_hello, random, session_id; in ssl_client_hello_init() local
210 CBS_init(&client_hello, out->client_hello, out->client_hello_len); in ssl_client_hello_init()
211 if (!CBS_get_u16(&client_hello, &out->version) || in ssl_client_hello_init()
212 !CBS_get_bytes(&client_hello, &random, SSL3_RANDOM_SIZE) || in ssl_client_hello_init()
213 !CBS_get_u8_length_prefixed(&client_hello, &session_id) || in ssl_client_hello_init()
226 if (!CBS_get_u8_length_prefixed(&client_hello, &cookie) || in ssl_client_hello_init()
233 if (!CBS_get_u16_length_prefixed(&client_hello, &cipher_suites) || in ssl_client_hello_init()
235 !CBS_get_u8_length_prefixed(&client_hello, &compression_methods) || in ssl_client_hello_init()
247 if (CBS_len(&client_hello) == 0) { in ssl_client_hello_init()
[all …]
Ds3_both.cc418 ScopedCBB client_hello; in read_v2_client_hello() local
425 !CBB_init_fixed(client_hello.get(), (uint8_t *)ssl->s3->hs_buf->data, in read_v2_client_hello()
427 !CBB_add_u8(client_hello.get(), SSL3_MT_CLIENT_HELLO) || in read_v2_client_hello()
428 !CBB_add_u24_length_prefixed(client_hello.get(), &hello_body) || in read_v2_client_hello()
459 !CBB_finish(client_hello.get(), NULL, &ssl->s3->hs_buf->length)) { in read_v2_client_hello()
Dssl_session.cc714 const SSL_CLIENT_HELLO *client_hello) { in ssl_get_prev_session() argument
724 ssl_client_hello_get_extension(client_hello, &ticket, in ssl_get_prev_session()
728 MakeConstSpan(client_hello->session_id, in ssl_get_prev_session()
729 client_hello->session_id_len))) { in ssl_get_prev_session()
744 MakeConstSpan(client_hello->session_id, client_hello->session_id_len)); in ssl_get_prev_session()
Dssl_test.cc1052 const uint8_t *client_hello; in GetClientHello() local
1054 if (!BIO_mem_contents(bio.get(), &client_hello, &client_hello_len)) { in GetClientHello()
1057 *out = std::vector<uint8_t>(client_hello, client_hello + client_hello_len); in GetClientHello()
1081 std::vector<uint8_t> client_hello; in GetClientHelloLen() local
1082 if (!GetClientHello(ssl.get(), &client_hello) || in GetClientHelloLen()
1083 client_hello.size() <= SSL3_RT_HEADER_LENGTH) { in GetClientHelloLen()
1087 return client_hello.size() - SSL3_RT_HEADER_LENGTH; in GetClientHelloLen()
2037 std::vector<uint8_t> client_hello; in TEST() local
2038 ASSERT_TRUE(GetClientHello(ssl.get(), &client_hello)); in TEST()
2044 ASSERT_GE(client_hello.size(), kRandomOffset + SSL3_RANDOM_SIZE); in TEST()
[all …]
Dinternal.h1764 const SSL_CLIENT_HELLO *client_hello);
1804 bool ssl_client_hello_get_extension(const SSL_CLIENT_HELLO *client_hello,
1808 const SSL_CLIENT_HELLO *client_hello, uint16_t id);
2650 const SSL_CLIENT_HELLO *client_hello);
2795 const SSL_CLIENT_HELLO *client_hello);
/external/scapy/scapy/layers/tls/
Dautomaton_cli.py63 client_hello=None, version=None, argument
91 self.client_hello = client_hello
171 self.add_msg(self.client_hello or TLSClientHello())
529 p = self.client_hello or SSLv2ClientHello(challenge=randstring(16))
820 if self.client_hello:
821 p = self.client_hello
/external/scapy/test/tls/
Dexample_client.py29 t = TLSClientAutomaton(client_hello=ch,
Dtravis_test_client.py32 t = TLSClientAutomaton(client_hello=ch, data=[send_data, b"stop_server", b"quit"], debug=1)
/external/boringssl/src/ssl/test/
Dtest_config.cc1098 const SSL_CLIENT_HELLO *client_hello) { in SelectCertificateCallback() argument
1099 const TestConfig *config = GetTestConfig(client_hello->ssl); in SelectCertificateCallback()
1100 GetTestState(client_hello->ssl)->early_callback_called = true; in SelectCertificateCallback()
1109 client_hello, TLSEXT_TYPE_server_name, &extension_data, in SelectCertificateCallback()
1140 GetTestState(client_hello->ssl)->early_callback_ready; in SelectCertificateCallback()
1145 if (!InstallCertificate(client_hello->ssl)) { in SelectCertificateCallback()
1350 static int DDoSCallback(const SSL_CLIENT_HELLO *client_hello) { in DDoSCallback() argument
1351 const TestConfig *config = GetTestConfig(client_hello->ssl); in DDoSCallback()
/external/boringssl/src/include/openssl/
Dssl.h3600 const uint8_t *client_hello; member
3635 const SSL_CLIENT_HELLO *client_hello, uint16_t extension_type,
/external/scapy/test/
Dsslv2.uts256 ch_pkt.msgtype = 'client_hello'
Dtls.uts1030 ch.msgtype = 'client_hello'