diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-03-15 00:01:03 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-03-15 00:01:03 +0100 |
commit | 987076c0b8fce9444168850ff8cc90b36263a6f9 (patch) | |
tree | 57a1703ee7be2e5ff97c0575505b87c9e4ec8b20 /tests | |
parent | 897cbce62c0263a498088ac3e465aa5f05f8719c (diff) | |
download | gnutls-987076c0b8fce9444168850ff8cc90b36263a6f9.tar.gz |
localhost -> 127.0.0.1 to work in places where localhost does not resolve.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/safe-renegotiation/testsrn | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/safe-renegotiation/testsrn b/tests/safe-renegotiation/testsrn index 56e106388b..1ffd64a0c7 100755 --- a/tests/safe-renegotiation/testsrn +++ b/tests/safe-renegotiation/testsrn @@ -39,19 +39,19 @@ pid=$! # give the server a chance to initialize sleep 2 -$CLI -p $PORT localhost --rehandshake --priority NONE:+AES-128-CBC:+MD5:+SHA1:+VERS-SSL3.0:+ANON-DH:+COMP-NULL </dev/null >/dev/null 2>&1 || \ +$CLI -p $PORT 127.0.0.1 --rehandshake --priority NONE:+AES-128-CBC:+MD5:+SHA1:+VERS-SSL3.0:+ANON-DH:+COMP-NULL </dev/null >/dev/null 2>&1 || \ fail "0. Renegotiation should have succeeded!" -$CLI -p $PORT localhost --rehandshake --priority NORMAL:+ANON-DH </dev/null >/dev/null 2>&1 || \ +$CLI -p $PORT 127.0.0.1 --rehandshake --priority NORMAL:+ANON-DH </dev/null >/dev/null 2>&1 || \ fail "1. Safe rehandshake should have succeeded!" -$CLI -p $PORT localhost --rehandshake --priority NORMAL:+ANON-DH:%UNSAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 || \ +$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 localhost --priority NORMAL:+ANON-DH:%DISABLE_SAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 || \ +$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 localhost --rehandshake --priority NORMAL:+ANON-DH:%DISABLE_SAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 && \ +$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!" @@ -64,16 +64,16 @@ pid=$! # give the server a chance to initialize sleep 2 -$CLI -p $PORT localhost --rehandshake --priority NORMAL:+ANON-DH </dev/null >/dev/null 2>&1 || \ +$CLI -p $PORT 127.0.0.1 --rehandshake --priority NORMAL:+ANON-DH </dev/null >/dev/null 2>&1 || \ fail "5. Safe rehandshake should have succeeded!" -$CLI -p $PORT localhost --rehandshake --priority NORMAL:+ANON-DH:%UNSAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 || \ +$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 localhost --priority NORMAL:+ANON-DH:%DISABLE_SAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 && \ +$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 localhost --rehandshake --priority NORMAL:+ANON-DH:%DISABLE_SAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 && \ +$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 @@ -85,16 +85,16 @@ pid=$! # give the server a chance to initialize sleep 2 -$CLI -p $PORT localhost --priority NORMAL:+ANON-DH </dev/null >/dev/null 2>&1 && \ +$CLI -p $PORT 127.0.0.1 --priority NORMAL:+ANON-DH </dev/null >/dev/null 2>&1 && \ fail "9. Initial connection should have failed!" -$CLI -p $PORT localhost --priority NORMAL:+ANON-DH:%UNSAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 || \ +$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 localhost --priority NORMAL:+ANON-DH:%DISABLE_SAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 || \ +$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 localhost --rehandshake --priority NORMAL:+ANON-DH:%DISABLE_SAFE_RENEGOTIATION </dev/null >/dev/null 2>&1 || \ +$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 |