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
1719 memcpy(s->s3.client_random, clienthello->random, SSL3_RANDOM_SIZE); in tls_early_post_process_client_hello()
1723 if (clienthello->isv2) { in tls_early_post_process_client_hello()
1724 if (clienthello->legacy_version == SSL2_VERSION in tls_early_post_process_client_hello()
1725 || (clienthello->legacy_version & 0xff00) in tls_early_post_process_client_hello()
1735 s->client_version = clienthello->legacy_version; in tls_early_post_process_client_hello()
1739 protverr = ssl_choose_server_version(s, clienthello, &dgrd); in tls_early_post_process_client_hello()
1744 s->version = s->client_version = clienthello->legacy_version; in tls_early_post_process_client_hello()
1761 if (sctx->app_verify_cookie_cb(ussl, clienthello->dtls_cookie, in tls_early_post_process_client_hello()
1762 clienthello->dtls_cookie_len) == 0) { in tls_early_post_process_client_hello()
1769 } else if (s->d1->cookie_len != clienthello->dtls_cookie_len in tls_early_post_process_client_hello()
1770 || memcmp(clienthello->dtls_cookie, s->d1->cookie, in tls_early_post_process_client_hello()
1781 if (!ssl_cache_cipherlist(s, &clienthello->ciphersuites, in tls_early_post_process_client_hello()
1782 clienthello->isv2) || in tls_early_post_process_client_hello()
1783 !ossl_bytes_to_cipher_list(s, &clienthello->ciphersuites, &ciphers, in tls_early_post_process_client_hello()
1784 &scsvs, clienthello->isv2, 1)) { in tls_early_post_process_client_hello()
1843 clienthello->pre_proc_exts, NULL, 0)) { in tls_early_post_process_client_hello()
1864 if (clienthello->isv2 || in tls_early_post_process_client_hello()
1872 i = ssl_get_prev_session(s, clienthello); in tls_early_post_process_client_hello()
1889 memcpy(s->tmp_session_id, s->clienthello->session_id, in tls_early_post_process_client_hello()
1890 s->clienthello->session_id_len); in tls_early_post_process_client_hello()
1891 s->tmp_session_id_len = s->clienthello->session_id_len; in tls_early_post_process_client_hello()
1930 if (clienthello->compressions_len == 0) { in tls_early_post_process_client_hello()
1935 if (memchr(clienthello->compressions, 0, in tls_early_post_process_client_hello()
1936 clienthello->compressions_len) == NULL) { in tls_early_post_process_client_hello()
1943 ssl_check_for_safari(s, clienthello); in tls_early_post_process_client_hello()
1947 clienthello->pre_proc_exts, NULL, 0, 1)) { in tls_early_post_process_client_hello()
2026 if (clienthello->compressions_len != 1) { in tls_early_post_process_client_hello()
2058 for (k = 0; k < clienthello->compressions_len; k++) { in tls_early_post_process_client_hello()
2059 if (clienthello->compressions[k] == comp_id) in tls_early_post_process_client_hello()
2062 if (k >= clienthello->compressions_len) { in tls_early_post_process_client_hello()
2078 for (o = 0; o < clienthello->compressions_len; o++) { in tls_early_post_process_client_hello()
2079 if (v == clienthello->compressions[o]) { in tls_early_post_process_client_hello()
2127 OPENSSL_free(clienthello->pre_proc_exts); in tls_early_post_process_client_hello()
2128 OPENSSL_free(s->clienthello); in tls_early_post_process_client_hello()
2129 s->clienthello = NULL; in tls_early_post_process_client_hello()
2134 OPENSSL_free(clienthello->pre_proc_exts); in tls_early_post_process_client_hello()
2135 OPENSSL_free(s->clienthello); in tls_early_post_process_client_hello()
2136 s->clienthello = NULL; in tls_early_post_process_client_hello()