summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Metzler <ametzler@bebt.de>2018-04-28 14:14:30 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2018-04-29 13:44:54 +0200
commit988884c2578eadf362edf580e3e28dca82386bff (patch)
treed38ab1bf64e6394d57a88a0777cbf5050075ead3
parentccc74af64d442ce33103622611f18d893769618b (diff)
downloadgnutls-tmp-sni-hostname.tar.gz
Add another sni related testtmp-sni-hostname
As --sni-hostname does not imply --verify-hostname a hostname mismatch still triggers an error. Signed-off-by: Andreas Metzler <ametzler@bebt.de>
-rwxr-xr-xtests/sni-hostname.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/sni-hostname.sh b/tests/sni-hostname.sh
index 59c11c269d..afc2a0099b 100755
--- a/tests/sni-hostname.sh
+++ b/tests/sni-hostname.sh
@@ -71,6 +71,9 @@ ${VALGRIND} "${CLI}" -p "${PORT}" 127.0.0.1 ${OPTS} --priority "NORMAL" --x509ca
${VALGRIND} "${CLI}" -p "${PORT}" 127.0.0.1 ${NOOPTS} --priority "NORMAL" --x509cafile ${CA1} </dev/null >/dev/null && \
fail ${PID} "4. handshake should have failed!"
+${VALGRIND} "${CLI}" -p "${PORT}" 127.0.0.1 --sni-hostname example.com --priority "NORMAL" --x509cafile ${CA1} </dev/null >/dev/null && \
+ fail ${PID} "5. handshake should have failed!"
+
kill ${PID}
wait