skip some extensions if ephemeral not enabled

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index 6ca63cc..69fa39b 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -7239,11 +7239,7 @@
     const uint16_t *group_list = mbedtls_ssl_get_groups( ssl );
 
     *out_len = 0;
-#if defined(MBEDTLS_SSL_PROTO_TLS1_3)
-    if( mbedtls_ssl_conf_is_tls13_only( ssl->conf )
-        && !mbedtls_ssl_conf_tls13_some_ephemeral_enabled( ssl ) )
-        return( 0 );
-#endif /* MBEDTLS_SSL_PROTO_TLS1_3 */
+
     MBEDTLS_SSL_DEBUG_MSG( 3, ( "client hello, adding supported_groups extension" ) );
 
     /* Check if we have space for header and length fields: