Rebase and replace session_negotiate
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
diff --git a/library/ssl_client.c b/library/ssl_client.c
index 10566de..9e4f021 100644
--- a/library/ssl_client.c
+++ b/library/ssl_client.c
@@ -878,11 +878,11 @@
ssl->handshake->resume )
{
int hostname_mismatch = ssl->hostname != NULL ||
- ssl->session_negotiate->hostname != NULL;
- if( ssl->hostname != NULL && ssl->session_negotiate->hostname != NULL )
+ session_negotiate->hostname != NULL;
+ if( ssl->hostname != NULL && session_negotiate->hostname != NULL )
{
hostname_mismatch = strcmp(
- ssl->hostname, ssl->session_negotiate->hostname ) != 0;
+ ssl->hostname, session_negotiate->hostname ) != 0;
}
if( hostname_mismatch )
@@ -895,7 +895,7 @@
}
else
{
- return mbedtls_ssl_session_set_hostname( ssl->session_negotiate,
+ return mbedtls_ssl_session_set_hostname( session_negotiate,
ssl->hostname );
}
#endif /* MBEDTLS_SSL_PROTO_TLS1_3 &&