"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/tests/test07-nomatch-abort.sh" between
hitch-1.7.0.tar.gz and hitch-1.7.2.tar.gz

About: Hitch is a libev-based high performance SSL/TLS proxy that terminates TLS/SSL connections and forwards the unencrypted traffic to some backend.

test07-nomatch-abort.sh  (hitch-1.7.0):test07-nomatch-abort.sh  (hitch-1.7.2)
skipping to change at line 42 skipping to change at line 42
if openssl s_client -help 2>&1 | grep -q -e -noservername; if openssl s_client -help 2>&1 | grep -q -e -noservername;
then then
NOSNI="-noservername" NOSNI="-noservername"
else else
NOSNI="" NOSNI=""
fi fi
# No SNI - should not be affected. # No SNI - should not be affected.
s_client -connect localhost:$LISTENPORT $NOSNI >no-sni.dump s_client -connect localhost:$LISTENPORT $NOSNI >no-sni.dump
subj_name_eq "default.example.com" no-sni.dump subject_field_eq CN "default.example.com" no-sni.dump
# SNI request w/ valid servername # SNI request w/ valid servername
s_client -servername site1.example.com \ s_client -servername site1.example.com \
-connect localhost:$LISTENPORT >valid-sni.dump -connect localhost:$LISTENPORT >valid-sni.dump
subj_name_eq "site1.example.com" valid-sni.dump subject_field_eq CN "site1.example.com" valid-sni.dump
# SNI w/ unknown servername # SNI w/ unknown servername
! s_client -servername invalid.example.com \ ! s_client -servername invalid.example.com \
-connect localhost:$LISTENPORT >unknown-sni.dump -connect localhost:$LISTENPORT >unknown-sni.dump
run_cmd grep 'unrecognized name' unknown-sni.dump run_cmd grep 'unrecognized name' unknown-sni.dump
# SNI request w/ valid servername # SNI request w/ valid servername
s_client -servername site1.example.com \ s_client -servername site1.example.com \
-connect localhost:$PORT2 >valid-sni-2.dump -connect localhost:$PORT2 >valid-sni-2.dump
subj_name_eq "site3.example.com" valid-sni-2.dump subject_field_eq CN "site3.example.com" valid-sni-2.dump
# SNI w/ unknown servername # SNI w/ unknown servername
s_client -servername invalid.example.com \ s_client -servername invalid.example.com \
-connect localhost:$PORT2 >unknown-sni-2.dump -connect localhost:$PORT2 >unknown-sni-2.dump
subj_name_eq "site3.example.com" unknown-sni-2.dump subject_field_eq CN "site3.example.com" unknown-sni-2.dump
# Ancient curl versions may not support --resolve # Ancient curl versions may not support --resolve
# This would skip this test, keep it last # This would skip this test, keep it last
curl_hitch \ curl_hitch \
--resolve site1.example.com:$LISTENPORT:127.0.0.1 \ --resolve site1.example.com:$LISTENPORT:127.0.0.1 \
-- https://site1.example.com:$LISTENPORT/ -- https://site1.example.com:$LISTENPORT/
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)