From: Nikos Mavrogiannopoulos Date: Fri, 22 Jan 2010 21:27:35 +0000 (+0100) Subject: Added tests for new behaviour of client. X-Git-Tag: gnutls_2_9_10~149 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ced4c4d68cf335cf859040940a79569ba71cef1;p=thirdparty%2Fgnutls.git Added tests for new behaviour of client. --- diff --git a/tests/safe-renegotiation/testsrn b/tests/safe-renegotiation/testsrn index a926245c4c..5e1b67540d 100755 --- a/tests/safe-renegotiation/testsrn +++ b/tests/safe-renegotiation/testsrn @@ -58,11 +58,11 @@ $SERV -p $PORT --echo --priority NORMAL:+ANON-DH:%DISABLE_SAFE_RENEGOTIATION --d # give the server a chance to initialize sleep 2 -$CLI -p $PORT localhost --rehandshake --priority NORMAL:+ANON-DH /dev/null 2>&1 && \ - fail "9. Safe rehandshake should have failed!" +$CLI -p $PORT localhost --priority NORMAL:+ANON-DH /dev/null 2>&1 && \ + fail "9. Initial connection should have failed!" -$CLI -p $PORT localhost --rehandshake --priority NORMAL:+ANON-DH:%UNSAFE_RENEGOTIATION /dev/null 2>&1 || \ - fail "10. Unsafe rehandshake should have succeeded!" +$CLI -p $PORT localhost --priority NORMAL:+ANON-DH:%UNSAFE_RENEGOTIATION /dev/null 2>&1 || \ + fail "10. Unsafe connection should have succeeded!" $CLI -p $PORT localhost --priority NORMAL:+ANON-DH:%DISABLE_SAFE_RENEGOTIATION /dev/null 2>&1 || \ fail "11. Unsafe negotiation should have succeeded!"