]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Also test gnutls_safe_renegotiation_status API.
authorSimon Josefsson <simon@josefsson.org>
Mon, 3 May 2010 13:38:46 +0000 (15:38 +0200)
committerSimon Josefsson <simon@josefsson.org>
Mon, 3 May 2010 13:38:46 +0000 (15:38 +0200)
tests/safe-renegotiation/srn1.c

index 013ae9b26621b48126e047d70601dd37b622efd6..7e660b9ca198f9c8afd684f2df8d3ad4664e4ac5 100644 (file)
@@ -197,6 +197,14 @@ main (int argc, char *argv[])
   gnutls_transport_set_push_function (client, client_push);
   gnutls_transport_set_pull_function (client, client_pull);
 
+  /* Check that initially no session use the extension. */
+  if (gnutls_safe_renegotiation_status (server)
+      || gnutls_safe_renegotiation_status (client))
+    {
+      puts ("Client or server using extension before handshake?");
+      abort ();
+    }
+
   do
     {
       static int max_iter = 0;