Lines Matching refs:clienthello

1476     CLIENTHELLO_MSG *clienthello = NULL;  in tls_process_client_hello()  local
1495 clienthello = OPENSSL_zalloc(sizeof(*clienthello)); in tls_process_client_hello()
1496 if (clienthello == NULL) { in tls_process_client_hello()
1504 clienthello->isv2 = RECORD_LAYER_is_sslv2_record(&s->rlayer); in tls_process_client_hello()
1507 if (clienthello->isv2) { in tls_process_client_hello()
1543 if (!PACKET_get_net_2(pkt, &clienthello->legacy_version)) { in tls_process_client_hello()
1549 if (clienthello->isv2) { in tls_process_client_hello()
1570 if (!PACKET_get_sub_packet(pkt, &clienthello->ciphersuites, in tls_process_client_hello()
1572 || !PACKET_copy_bytes(pkt, clienthello->session_id, session_id_len) in tls_process_client_hello()
1579 clienthello->session_id_len = session_id_len; in tls_process_client_hello()
1588 memset(clienthello->random, 0, SSL3_RANDOM_SIZE); in tls_process_client_hello()
1590 clienthello->random + SSL3_RANDOM_SIZE - in tls_process_client_hello()
1598 PACKET_null_init(&clienthello->extensions); in tls_process_client_hello()
1601 if (!PACKET_copy_bytes(pkt, clienthello->random, SSL3_RANDOM_SIZE) in tls_process_client_hello()
1603 || !PACKET_copy_all(&session_id, clienthello->session_id, in tls_process_client_hello()
1605 &clienthello->session_id_len)) { in tls_process_client_hello()
1615 if (!PACKET_copy_all(&cookie, clienthello->dtls_cookie, in tls_process_client_hello()
1617 &clienthello->dtls_cookie_len)) { in tls_process_client_hello()
1627 if (clienthello->dtls_cookie_len == 0) { in tls_process_client_hello()
1628 OPENSSL_free(clienthello); in tls_process_client_hello()
1634 if (!PACKET_get_length_prefixed_2(pkt, &clienthello->ciphersuites)) { in tls_process_client_hello()
1646 PACKET_null_init(&clienthello->extensions); in tls_process_client_hello()
1648 if (!PACKET_get_length_prefixed_2(pkt, &clienthello->extensions) in tls_process_client_hello()
1656 if (!PACKET_copy_all(&compression, clienthello->compressions, in tls_process_client_hello()
1658 &clienthello->compressions_len)) { in tls_process_client_hello()
1664 extensions = clienthello->extensions; in tls_process_client_hello()
1666 &clienthello->pre_proc_exts, in tls_process_client_hello()
1667 &clienthello->pre_proc_exts_len, 1)) { in tls_process_client_hello()
1671 s->clienthello = clienthello; in tls_process_client_hello()
1676 if (clienthello != NULL) in tls_process_client_hello()
1677 OPENSSL_free(clienthello->pre_proc_exts); in tls_process_client_hello()
1678 OPENSSL_free(clienthello); in tls_process_client_hello()
1695 CLIENTHELLO_MSG *clienthello = s->clienthello; in tls_early_post_process_client_hello() local
1718 memcpy(s->s3.client_random, clienthello->random, SSL3_RANDOM_SIZE); in tls_early_post_process_client_hello()
1722 if (clienthello->isv2) { in tls_early_post_process_client_hello()
1723 if (clienthello->legacy_version == SSL2_VERSION in tls_early_post_process_client_hello()
1724 || (clienthello->legacy_version & 0xff00) in tls_early_post_process_client_hello()
1734 s->client_version = clienthello->legacy_version; in tls_early_post_process_client_hello()
1738 protverr = ssl_choose_server_version(s, clienthello, &dgrd); in tls_early_post_process_client_hello()
1743 s->version = s->client_version = clienthello->legacy_version; in tls_early_post_process_client_hello()
1760 if (sctx->app_verify_cookie_cb(ssl, clienthello->dtls_cookie, in tls_early_post_process_client_hello()
1761 clienthello->dtls_cookie_len) == 0) { in tls_early_post_process_client_hello()
1768 } else if (s->d1->cookie_len != clienthello->dtls_cookie_len in tls_early_post_process_client_hello()
1769 || memcmp(clienthello->dtls_cookie, s->d1->cookie, in tls_early_post_process_client_hello()
1780 if (!ssl_cache_cipherlist(s, &clienthello->ciphersuites, in tls_early_post_process_client_hello()
1781 clienthello->isv2) || in tls_early_post_process_client_hello()
1782 !ossl_bytes_to_cipher_list(s, &clienthello->ciphersuites, &ciphers, in tls_early_post_process_client_hello()
1783 &scsvs, clienthello->isv2, 1)) { in tls_early_post_process_client_hello()
1842 clienthello->pre_proc_exts, NULL, 0)) { in tls_early_post_process_client_hello()
1863 if (clienthello->isv2 || in tls_early_post_process_client_hello()
1871 i = ssl_get_prev_session(s, clienthello); in tls_early_post_process_client_hello()
1888 memcpy(s->tmp_session_id, s->clienthello->session_id, in tls_early_post_process_client_hello()
1889 s->clienthello->session_id_len); in tls_early_post_process_client_hello()
1890 s->tmp_session_id_len = s->clienthello->session_id_len; in tls_early_post_process_client_hello()
1929 if (clienthello->compressions_len == 0) { in tls_early_post_process_client_hello()
1934 if (memchr(clienthello->compressions, 0, in tls_early_post_process_client_hello()
1935 clienthello->compressions_len) == NULL) { in tls_early_post_process_client_hello()
1942 ssl_check_for_safari(s, clienthello); in tls_early_post_process_client_hello()
1946 clienthello->pre_proc_exts, NULL, 0, 1)) { in tls_early_post_process_client_hello()
2025 if (clienthello->compressions_len != 1) { in tls_early_post_process_client_hello()
2057 for (k = 0; k < clienthello->compressions_len; k++) { in tls_early_post_process_client_hello()
2058 if (clienthello->compressions[k] == comp_id) in tls_early_post_process_client_hello()
2061 if (k >= clienthello->compressions_len) { in tls_early_post_process_client_hello()
2077 for (o = 0; o < clienthello->compressions_len; o++) { in tls_early_post_process_client_hello()
2078 if (v == clienthello->compressions[o]) { in tls_early_post_process_client_hello()
2126 OPENSSL_free(clienthello->pre_proc_exts); in tls_early_post_process_client_hello()
2127 OPENSSL_free(s->clienthello); in tls_early_post_process_client_hello()
2128 s->clienthello = NULL; in tls_early_post_process_client_hello()
2133 OPENSSL_free(clienthello->pre_proc_exts); in tls_early_post_process_client_hello()
2134 OPENSSL_free(s->clienthello); in tls_early_post_process_client_hello()
2135 s->clienthello = NULL; in tls_early_post_process_client_hello()