ssl: call signature verification twice for non-restartable operations

Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
diff --git a/library/ssl_cli.c b/library/ssl_cli.c
index e2c24e2..86063eb 100644
--- a/library/ssl_cli.c
+++ b/library/ssl_cli.c
@@ -3100,6 +3100,11 @@
         {
             mbedtls_platform_random_delay();
 
+            if( rs_ctx == NULL )
+            {
+                ret = mbedtls_pk_verify_restartable( peer_pk,
+                        md_alg, hash, hashlen, p, sig_len, rs_ctx );
+            }
             if( ret == 0 )
             {
 #if !defined(MBEDTLS_SSL_KEEP_PEER_CERTIFICATE)