summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2010-05-03 15:38:46 +0200
committerSimon Josefsson <simon@josefsson.org>2010-05-03 15:38:46 +0200
commit15090a5f52a5f5ccbbb23ea2ddc18ff829a25a32 (patch)
treeb7d9a87a8baa35c0ac996cb18a87955c5fa895e4 /tests
parent22553a5d48bcf01b396f6b6ce63f728f5059e9a8 (diff)
downloadgnutls-15090a5f52a5f5ccbbb23ea2ddc18ff829a25a32.tar.gz
Also test gnutls_safe_renegotiation_status API.
Diffstat (limited to 'tests')
-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 013ae9b266..7e660b9ca1 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;