summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2010-06-07 14:41:42 +0200
committerSimon Josefsson <simon@josefsson.org>2010-06-07 14:41:42 +0200
commit36693266659a6d3e16f01e2763c922d95298e033 (patch)
treea717d6cce77a7780e495fe3193984f21e77b5eeb
parent783bfc6415ca0a0ac185260539cb290b8d7b4048 (diff)
downloadgnutls-36693266659a6d3e16f01e2763c922d95298e033.tar.gz
Also check initial state.
-rw-r--r--tests/safe-renegotiation/srn1.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/safe-renegotiation/srn1.c b/tests/safe-renegotiation/srn1.c
index b1e943af4f..ec70dc5d42 100644
--- a/tests/safe-renegotiation/srn1.c
+++ b/tests/safe-renegotiation/srn1.c
@@ -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;