Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions platform/posix/transport/src/openssl_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,17 @@ OpensslStatus_t Openssl_Connect( NetworkContext_t * pNetworkContext,
}
}

/* Set minimum TLS version. */
if( returnStatus == OPENSSL_SUCCESS )
{
int ret = SSL_CTX_set_min_proto_version( pSslContext, TLS1_3_VERSION );
if( ret != 1 )
{
LogError( ( "Failed to set minimum TLS version to 1.3." ) );
returnStatus = OPENSSL_API_ERROR;
}
}

/* Setup credentials. */
if( returnStatus == OPENSSL_SUCCESS )
{
Expand Down
Loading