Lines Matching refs:clienthello

1380     CLIENTHELLO_MSG *clienthello = NULL;  in tls_process_client_hello()  local
1399 clienthello = OPENSSL_zalloc(sizeof(*clienthello)); in tls_process_client_hello()
1400 if (clienthello == NULL) { in tls_process_client_hello()
1408 clienthello->isv2 = RECORD_LAYER_is_sslv2_record(&s->rlayer); in tls_process_client_hello()
1411 if (clienthello->isv2) { in tls_process_client_hello()
1447 if (!PACKET_get_net_2(pkt, &clienthello->legacy_version)) { in tls_process_client_hello()
1453 if (clienthello->isv2) { in tls_process_client_hello()
1474 if (!PACKET_get_sub_packet(pkt, &clienthello->ciphersuites, in tls_process_client_hello()
1476 || !PACKET_copy_bytes(pkt, clienthello->session_id, session_id_len) in tls_process_client_hello()
1483 clienthello->session_id_len = session_id_len; in tls_process_client_hello()
1492 memset(clienthello->random, 0, SSL3_RANDOM_SIZE); in tls_process_client_hello()
1494 clienthello->random + SSL3_RANDOM_SIZE - in tls_process_client_hello()
1502 PACKET_null_init(&clienthello->extensions); in tls_process_client_hello()
1505 if (!PACKET_copy_bytes(pkt, clienthello->random, SSL3_RANDOM_SIZE) in tls_process_client_hello()
1507 || !PACKET_copy_all(&session_id, clienthello->session_id, in tls_process_client_hello()
1509 &clienthello->session_id_len)) { in tls_process_client_hello()
1519 if (!PACKET_copy_all(&cookie, clienthello->dtls_cookie, in tls_process_client_hello()
1521 &clienthello->dtls_cookie_len)) { in tls_process_client_hello()
1531 if (clienthello->dtls_cookie_len == 0) { in tls_process_client_hello()
1532 OPENSSL_free(clienthello); in tls_process_client_hello()
1538 if (!PACKET_get_length_prefixed_2(pkt, &clienthello->ciphersuites)) { in tls_process_client_hello()
1550 PACKET_null_init(&clienthello->extensions); in tls_process_client_hello()
1552 if (!PACKET_get_length_prefixed_2(pkt, &clienthello->extensions) in tls_process_client_hello()
1560 if (!PACKET_copy_all(&compression, clienthello->compressions, in tls_process_client_hello()
1562 &clienthello->compressions_len)) { in tls_process_client_hello()
1568 extensions = clienthello->extensions; in tls_process_client_hello()
1570 &clienthello->pre_proc_exts, in tls_process_client_hello()
1571 &clienthello->pre_proc_exts_len, 1)) { in tls_process_client_hello()
1575 s->clienthello = clienthello; in tls_process_client_hello()
1580 if (clienthello != NULL) in tls_process_client_hello()
1581 OPENSSL_free(clienthello->pre_proc_exts); in tls_process_client_hello()
1582 OPENSSL_free(clienthello); in tls_process_client_hello()
1600 CLIENTHELLO_MSG *clienthello = s->clienthello; in tls_early_post_process_client_hello() local
1621 memcpy(s->s3.client_random, clienthello->random, SSL3_RANDOM_SIZE); in tls_early_post_process_client_hello()
1625 if (clienthello->isv2) { in tls_early_post_process_client_hello()
1626 if (clienthello->legacy_version == SSL2_VERSION in tls_early_post_process_client_hello()
1627 || (clienthello->legacy_version & 0xff00) in tls_early_post_process_client_hello()
1637 s->client_version = clienthello->legacy_version; in tls_early_post_process_client_hello()
1644 protverr = ssl_choose_server_version(s, clienthello, &dgrd); in tls_early_post_process_client_hello()
1646 DTLS_VERSION_LT((int)clienthello->legacy_version, s->version)) { in tls_early_post_process_client_hello()
1655 s->version = s->client_version = clienthello->legacy_version; in tls_early_post_process_client_hello()
1671 if (s->ctx->app_verify_cookie_cb(s, clienthello->dtls_cookie, in tls_early_post_process_client_hello()
1672 clienthello->dtls_cookie_len) == 0) { in tls_early_post_process_client_hello()
1679 } else if (s->d1->cookie_len != clienthello->dtls_cookie_len in tls_early_post_process_client_hello()
1680 || memcmp(clienthello->dtls_cookie, s->d1->cookie, in tls_early_post_process_client_hello()
1688 protverr = ssl_choose_server_version(s, clienthello, &dgrd); in tls_early_post_process_client_hello()
1699 if (!ssl_cache_cipherlist(s, &clienthello->ciphersuites, in tls_early_post_process_client_hello()
1700 clienthello->isv2) || in tls_early_post_process_client_hello()
1701 !bytes_to_cipher_list(s, &clienthello->ciphersuites, &ciphers, &scsvs, in tls_early_post_process_client_hello()
1702 clienthello->isv2, 1)) { in tls_early_post_process_client_hello()
1761 clienthello->pre_proc_exts, NULL, 0)) { in tls_early_post_process_client_hello()
1782 if (clienthello->isv2 || in tls_early_post_process_client_hello()
1790 i = ssl_get_prev_session(s, clienthello); in tls_early_post_process_client_hello()
1807 memcpy(s->tmp_session_id, s->clienthello->session_id, in tls_early_post_process_client_hello()
1808 s->clienthello->session_id_len); in tls_early_post_process_client_hello()
1809 s->tmp_session_id_len = s->clienthello->session_id_len; in tls_early_post_process_client_hello()
1847 for (loop = 0; loop < clienthello->compressions_len; loop++) { in tls_early_post_process_client_hello()
1848 if (clienthello->compressions[loop] == 0) in tls_early_post_process_client_hello()
1852 if (loop >= clienthello->compressions_len) { in tls_early_post_process_client_hello()
1859 ssl_check_for_safari(s, clienthello); in tls_early_post_process_client_hello()
1863 clienthello->pre_proc_exts, NULL, 0, 1)) { in tls_early_post_process_client_hello()
1937 if (clienthello->compressions_len != 1) { in tls_early_post_process_client_hello()
1969 for (k = 0; k < clienthello->compressions_len; k++) { in tls_early_post_process_client_hello()
1970 if (clienthello->compressions[k] == comp_id) in tls_early_post_process_client_hello()
1973 if (k >= clienthello->compressions_len) { in tls_early_post_process_client_hello()
1989 for (o = 0; o < clienthello->compressions_len; o++) { in tls_early_post_process_client_hello()
1990 if (v == clienthello->compressions[o]) { in tls_early_post_process_client_hello()
2042 OPENSSL_free(clienthello->pre_proc_exts); in tls_early_post_process_client_hello()
2043 OPENSSL_free(s->clienthello); in tls_early_post_process_client_hello()
2044 s->clienthello = NULL; in tls_early_post_process_client_hello()
2049 OPENSSL_free(clienthello->pre_proc_exts); in tls_early_post_process_client_hello()
2050 OPENSSL_free(s->clienthello); in tls_early_post_process_client_hello()
2051 s->clienthello = NULL; in tls_early_post_process_client_hello()