Change restart context type.

No need to have both x509 and ecdsa, as the former contains the later.
diff --git a/library/ssl_cli.c b/library/ssl_cli.c
index db57713..7ffeb5b 100644
--- a/library/ssl_cli.c
+++ b/library/ssl_cli.c
@@ -2615,7 +2615,7 @@
 
 #if defined(MBEDTLS_SSL__ECP_RESTARTABLE)
         if( ssl->handshake->ecrs_enabled )
-            rs_ctx = &ssl->handshake->ecrs_ctx;
+            rs_ctx = &ssl->handshake->ecrs_ctx.ecdsa;
 #endif
 
         if( ( ret = mbedtls_pk_verify_restartable(
@@ -3290,7 +3290,7 @@
 
 #if defined(MBEDTLS_SSL__ECP_RESTARTABLE)
     if( ssl->handshake->ecrs_enabled )
-        rs_ctx = &ssl->handshake->ecrs_ctx;
+        rs_ctx = &ssl->handshake->ecrs_ctx.ecdsa;
 #endif
 
     if( ( ret = mbedtls_pk_sign_restartable( mbedtls_ssl_own_key( ssl ),
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index 90331ef..221071b 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -5473,7 +5473,7 @@
 #endif
 
 #if defined(MBEDTLS_SSL__ECP_RESTARTABLE)
-    mbedtls_ecdsa_restart_init( &handshake->ecrs_ctx );
+    mbedtls_x509_crt_restart_init( &handshake->ecrs_ctx );
 #endif
 
 #if defined(MBEDTLS_SSL_SERVER_NAME_INDICATION)
@@ -7309,7 +7309,7 @@
 #endif /* MBEDTLS_X509_CRT_PARSE_C && MBEDTLS_SSL_SERVER_NAME_INDICATION */
 
 #if defined(MBEDTLS_SSL__ECP_RESTARTABLE)
-    mbedtls_ecdsa_restart_free( &handshake->ecrs_ctx );
+    mbedtls_x509_crt_restart_free( &handshake->ecrs_ctx );
 #endif
 
 #if defined(MBEDTLS_SSL_PROTO_DTLS)