summaryrefslogtreecommitdiff
path: root/tests/safe-renegotiation
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-10-16 15:49:30 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-10-16 15:52:29 +0200
commitb7e3cf472340c1abb2aaa06768517ba3e8909d1d (patch)
treed6d83c71f0568edc8b943f9570753ddb2dae9492 /tests/safe-renegotiation
parent896d2321f3196c5ab373f4be3764c4da754322f8 (diff)
downloadgnutls-b7e3cf472340c1abb2aaa06768517ba3e8909d1d.tar.gz
Added tests/suite which contains tests to be executed during
development time and will not be distributed (not included in make dist). Added "ecore" and a new mini-eagain to test EAGAIN behavior.
Diffstat (limited to 'tests/safe-renegotiation')
-rw-r--r--tests/safe-renegotiation/Makefile.am4
-rw-r--r--tests/safe-renegotiation/params.dh35
-rwxr-xr-xtests/safe-renegotiation/testsrn103
3 files changed, 1 insertions, 141 deletions
diff --git a/tests/safe-renegotiation/Makefile.am b/tests/safe-renegotiation/Makefile.am
index e175c78c37..a76e437295 100644
--- a/tests/safe-renegotiation/Makefile.am
+++ b/tests/safe-renegotiation/Makefile.am
@@ -31,7 +31,5 @@ check_PROGRAMS = $(ctests)
TESTS = $(ctests)
TESTS_ENVIRONMENT = $(VALGRIND)
-EXTRA_DIST = README params.dh
+EXTRA_DIST = README
-dist_check_SCRIPTS = testsrn
-#TESTS = testsrn
diff --git a/tests/safe-renegotiation/params.dh b/tests/safe-renegotiation/params.dh
deleted file mode 100644
index 51185ec3bf..0000000000
--- a/tests/safe-renegotiation/params.dh
+++ /dev/null
@@ -1,35 +0,0 @@
-
-Generator: 05
-
-Prime: c9:e9:2d:fc:94:15:1a:10:4f:3c:b5:16
- 7e:34:10:7d:eb:3d:d5:7d:61:ff:b0:ce
- da:7f:6e:0c:ea:db:b4:87:f6:c6:34:a8
- 3c:f8:84:52:14:59:ab:17:5c:d0:f0:86
- c4:02:93:dc:09:83:57:16:98:21:d0:42
- 8e:33:fc:48:69:e6:04:0d:4e:50:09:33
- 2e:28:60:4f:05:08:7c:ce:2f:a6:1a:4c
- 41:d1:a3:dd:f6:37:56:44:1d:b0:54:af
- f7:4a:a0:c2:19:5d:ce:62:b0:7a:1b:e1
- 5c:7f:bb:4d:7e:9e:28:48:00:a4:9a:86
- 3e:6e:6e:9c:57:41:c7:ec:bf:7f:09:fc
- da:25:c2:1e:e0:52:dc:65:8c:40:a3:6e
- bd:99:4e:0b:1a:04:e0:23:20:46:5a:d0
- 3f:b3:a4:d6:76:73:b7:cc:61:33:11:54
- a6:32:ff:94:08:d5:66:36:fd:99:69:21
- cc:28:5d:11:52:32:48:b6:a5:b5:c3:b0
- 21:3f:f9:69:25:83:b1:3d:79:a6:ed:ae
- db:95:62:fc:72:ca:ad:46:fc:b6:b1:ea
- 98:68:97:ba:f2:54:aa:86:ed:62:b1:78
- 5f:d5:19:80:ce:41:ee:98:a1:71:9f:fa
- 5b:6b:d8:5e:7e:b3:18:0a:f0:4c:96:76
- 6c:0c:b0:a3
-
-
------BEGIN DH PARAMETERS-----
-MIIBCAKCAQEAyekt/JQVGhBPPLUWfjQQfes91X1h/7DO2n9uDOrbtIf2xjSoPPiE
-UhRZqxdc0PCGxAKT3AmDVxaYIdBCjjP8SGnmBA1OUAkzLihgTwUIfM4vphpMQdGj
-3fY3VkQdsFSv90qgwhldzmKwehvhXH+7TX6eKEgApJqGPm5unFdBx+y/fwn82iXC
-HuBS3GWMQKNuvZlOCxoE4CMgRlrQP7Ok1nZzt8xhMxFUpjL/lAjVZjb9mWkhzChd
-EVIySLaltcOwIT/5aSWDsT15pu2u25Vi/HLKrUb8trHqmGiXuvJUqobtYrF4X9UZ
-gM5B7pihcZ/6W2vYXn6zGArwTJZ2bAywowIBBQ==
------END DH PARAMETERS-----
diff --git a/tests/safe-renegotiation/testsrn b/tests/safe-renegotiation/testsrn
deleted file mode 100755
index 8df797c6e6..0000000000
--- a/tests/safe-renegotiation/testsrn
+++ /dev/null
@@ -1,103 +0,0 @@
-#!/bin/sh
-
-# Copyright (C) 2010 Free Software Foundation, Inc.
-#
-# Author: Nikos Mavrogiannopoulos
-#
-# This file is part of GnuTLS.
-#
-# GnuTLS is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by the
-# Free Software Foundation; either version 3 of the License, or (at
-# your option) any later version.
-#
-# GnuTLS is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GnuTLS; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-srcdir="${srcdir:-.}"
-SERV="${SERV:-../../src/gnutls-serv$EXEEXT} -q"
-CLI="${CLI:-../../src/gnutls-cli$EXEEXT}"
-PORT="${PORT:-5558}"
-unset RETCODE
-
-fail() {
- echo "Failure: $1" >&2
- RETCODE=${RETCODE:-${2:-1}}
-}
-
-echo "Checking Safe renegotiation"
-
-$SERV -p $PORT --echo --priority NORMAL:+ANON-DH:%PARTIAL_RENEGOTIATION --dhparams $srcdir/params.dh >/dev/null 2>&1 &
-pid=$!
-
-# give the server a chance to initialize
-sleep 2
-
-$CLI -p $PORT 127.0.0.1 --rehandshake --priority NONE:+AES-128-CBC:+MD5:+SHA1:+VERS-SSL3.0:+ANON-DH:+COMP-NULL:%SAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 || \
- fail "0. Renegotiation should have succeeded!"
-
-$CLI -p $PORT 127.0.0.1 --rehandshake --priority NORMAL:+ANON-DH:%SAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 || \
- fail "1. Safe rehandshake should have succeeded!"
-
-$CLI -p $PORT 127.0.0.1 --rehandshake --priority NORMAL:+ANON-DH:%UNSAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 || \
- fail "2. Unsafe rehandshake should have succeeded!"
-
-$CLI -p $PORT 127.0.0.1 --priority NORMAL:+ANON-DH:%DISABLE_SAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 || \
- fail "3. Unsafe negotiation should have succeeded!"
-
-$CLI -p $PORT 127.0.0.1 --rehandshake --priority NORMAL:+ANON-DH:%DISABLE_SAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 && \
- fail "4. Unsafe renegotiation should have failed!"
-
-
-kill $pid
-wait
-
-$SERV -p $PORT --echo --priority NORMAL:+ANON-DH:%SAFE_RENEGOTIATION --dhparams $srcdir/params.dh >/dev/null 2>&1 &
-pid=$!
-
-# give the server a chance to initialize
-sleep 2
-
-$CLI -p $PORT 127.0.0.1 --rehandshake --priority NORMAL:+ANON-DH:%SAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 || \
- fail "5. Safe rehandshake should have succeeded!"
-
-$CLI -p $PORT 127.0.0.1 --rehandshake --priority NORMAL:+ANON-DH:%UNSAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 || \
- fail "6. Unsafe rehandshake should have succeeded!"
-
-$CLI -p $PORT 127.0.0.1 --priority NORMAL:+ANON-DH:%DISABLE_SAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 && \
- fail "7. Unsafe negotiation should have failed!"
-
-$CLI -p $PORT 127.0.0.1 --rehandshake --priority NORMAL:+ANON-DH:%DISABLE_SAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 && \
- fail "8. Unsafe renegotiation should have failed!"
-
-kill $pid
-wait
-
-$SERV -p $PORT --echo --priority NORMAL:+ANON-DH:%DISABLE_SAFE_RENEGOTIATION --dhparams $srcdir/params.dh >/dev/null 2>&1 &
-pid=$!
-
-# give the server a chance to initialize
-sleep 2
-
-$CLI -p $PORT 127.0.0.1 --priority NORMAL:+ANON-DH:%SAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 && \
- fail "9. Initial connection should have failed!"
-
-$CLI -p $PORT 127.0.0.1 --priority NORMAL:+ANON-DH:%UNSAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 || \
- fail "10. Unsafe connection should have succeeded!"
-
-$CLI -p $PORT 127.0.0.1 --priority NORMAL:+ANON-DH:%DISABLE_SAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 || \
- fail "11. Unsafe negotiation should have succeeded!"
-
-$CLI -p $PORT 127.0.0.1 --rehandshake --priority NORMAL:+ANON-DH:%DISABLE_SAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 || \
- fail "12. Unsafe renegotiation should have succeeded!"
-
-kill $pid
-wait
-
-exit ${RETCODE:-0}