Lines Matching refs:handshake
357 ssl->handshake->min_tls_version, in ssl_write_client_hello_cipher_suites()
443 mbedtls_ssl_handshake_params *handshake = ssl->handshake; in ssl_write_client_hello_body() local
455 (handshake->min_tls_version <= MBEDTLS_SSL_VERSION_TLS1_2) in ssl_write_client_hello_body()
461 (handshake->min_tls_version <= MBEDTLS_SSL_VERSION_TLS1_3) in ssl_write_client_hello_body()
485 memcpy(p, handshake->randbytes, MBEDTLS_CLIENT_HELLO_RANDOM_LEN); in ssl_write_client_hello_body()
527 if (handshake->cookie != NULL) { in ssl_write_client_hello_body()
529 handshake->cookie, in ssl_write_client_hello_body()
530 handshake->cookie_len); in ssl_write_client_hello_body()
531 cookie_len = handshake->cookie_len; in ssl_write_client_hello_body()
537 memcpy(p, handshake->cookie, cookie_len); in ssl_write_client_hello_body()
570 handshake->sent_extensions = MBEDTLS_SSL_EXT_MASK_NONE; in ssl_write_client_hello_body()
702 unsigned char *randbytes = ssl->handshake->randbytes; in ssl_generate_random()
751 if (ssl->handshake->resume != 0 && in ssl_prepare_client_hello()
761 ssl->handshake->resume = 0; in ssl_prepare_client_hello()
773 ssl->handshake->min_tls_version = ssl->tls_version; in ssl_prepare_client_hello()
777 if (ssl->handshake->resume) { in ssl_prepare_client_hello()
779 ssl->handshake->min_tls_version = ssl->tls_version; in ssl_prepare_client_hello()
781 ssl->handshake->min_tls_version = ssl->conf->min_tls_version; in ssl_prepare_client_hello()
792 (ssl->handshake->cookie == NULL)) in ssl_prepare_client_hello()
796 if (!ssl->handshake->hello_retry_request_flag) in ssl_prepare_client_hello()
821 ssl->handshake->resume == 0) { in ssl_prepare_client_hello()
885 ssl->handshake->resume) { in ssl_prepare_client_hello()
968 ret = ssl->handshake->update_checksum(ssl, buf, msg_len - binders_len); in mbedtls_ssl_write_client_hello()
978 ret = ssl->handshake->update_checksum(ssl, buf + msg_len - binders_len, in mbedtls_ssl_write_client_hello()
998 if (ssl->handshake->min_tls_version <= MBEDTLS_SSL_VERSION_TLS1_3 && in mbedtls_ssl_write_client_hello()
1007 3, MBEDTLS_SSL_HS_CLIENT_HELLO, ssl->handshake->sent_extensions); in mbedtls_ssl_write_client_hello()