Lines Matching refs:handshake

358                                              ssl->handshake->min_tls_version,  in ssl_write_client_hello_cipher_suites()
444 mbedtls_ssl_handshake_params *handshake = ssl->handshake; in ssl_write_client_hello_body() local
456 (handshake->min_tls_version <= MBEDTLS_SSL_VERSION_TLS1_2) in ssl_write_client_hello_body()
462 (handshake->min_tls_version <= MBEDTLS_SSL_VERSION_TLS1_3) in ssl_write_client_hello_body()
486 memcpy(p, handshake->randbytes, MBEDTLS_CLIENT_HELLO_RANDOM_LEN); in ssl_write_client_hello_body()
528 if (handshake->cookie != NULL) { in ssl_write_client_hello_body()
530 handshake->cookie, in ssl_write_client_hello_body()
531 handshake->cookie_len); in ssl_write_client_hello_body()
532 cookie_len = handshake->cookie_len; in ssl_write_client_hello_body()
538 memcpy(p, handshake->cookie, cookie_len); in ssl_write_client_hello_body()
571 handshake->sent_extensions = MBEDTLS_SSL_EXT_MASK_NONE; in ssl_write_client_hello_body()
703 unsigned char *randbytes = ssl->handshake->randbytes; in ssl_generate_random()
752 if (ssl->handshake->resume != 0 && in ssl_prepare_client_hello()
762 ssl->handshake->resume = 0; in ssl_prepare_client_hello()
774 ssl->handshake->min_tls_version = ssl->tls_version; in ssl_prepare_client_hello()
778 if (ssl->handshake->resume) { in ssl_prepare_client_hello()
780 ssl->handshake->min_tls_version = ssl->tls_version; in ssl_prepare_client_hello()
782 ssl->handshake->min_tls_version = ssl->conf->min_tls_version; in ssl_prepare_client_hello()
793 (ssl->handshake->cookie == NULL)) in ssl_prepare_client_hello()
797 if (!ssl->handshake->hello_retry_request_flag) in ssl_prepare_client_hello()
822 ssl->handshake->resume == 0) { in ssl_prepare_client_hello()
887 ssl->handshake->resume) { in ssl_prepare_client_hello()
970 ret = ssl->handshake->update_checksum(ssl, buf, msg_len - binders_len); in mbedtls_ssl_write_client_hello()
980 ret = ssl->handshake->update_checksum(ssl, buf + msg_len - binders_len, in mbedtls_ssl_write_client_hello()
1000 if (ssl->handshake->min_tls_version <= MBEDTLS_SSL_VERSION_TLS1_3 && in mbedtls_ssl_write_client_hello()
1009 3, MBEDTLS_SSL_HS_CLIENT_HELLO, ssl->handshake->sent_extensions); in mbedtls_ssl_write_client_hello()