Skip to content

Commit

Permalink
Extend mbedtls_ssl_get_version() to "TLSv1.3"
Browse files Browse the repository at this point in the history
  • Loading branch information
gstrauss committed Dec 20, 2021
1 parent bff88ab commit e0fb849
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/ssl_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -4375,6 +4375,8 @@ const char *mbedtls_ssl_get_version( const mbedtls_ssl_context *ssl )
{
case MBEDTLS_SSL_MINOR_VERSION_3:
return( "DTLSv1.2" );
case MBEDTLS_SSL_MINOR_VERSION_4:
return( "DTLSv1.3" );

default:
return( "unknown (DTLS)" );
Expand All @@ -4386,6 +4388,8 @@ const char *mbedtls_ssl_get_version( const mbedtls_ssl_context *ssl )
{
case MBEDTLS_SSL_MINOR_VERSION_3:
return( "TLSv1.2" );
case MBEDTLS_SSL_MINOR_VERSION_4:
return( "TLSv1.3" );

default:
return( "unknown" );
Expand Down

0 comments on commit e0fb849

Please sign in to comment.