mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-30 23:00:59 +00:00
- Allow to test for multiple modes
This commit is contained in:
parent
e93dfa72a5
commit
398cb514e2
|
@ -1,6 +1,14 @@
|
||||||
killall -q openssl ssl_server
|
killall -q openssl ssl_server
|
||||||
|
|
||||||
openssl s_server -cert data_files/server2.crt -key data_files/server2.key -www -quiet -cipher NULL,ALL &
|
#MODES="ssl2 ssl3 tls1 tls1_1 tls1_2"
|
||||||
|
MODES=tls1_2
|
||||||
|
|
||||||
|
for MODE in $MODES;
|
||||||
|
do
|
||||||
|
echo "Running for $MODE"
|
||||||
|
echo "-----------"
|
||||||
|
|
||||||
|
openssl s_server -cert data_files/server2.crt -key data_files/server2.key -www -quiet -cipher NULL,ALL -$MODE &
|
||||||
PROCESS_ID=$!
|
PROCESS_ID=$!
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
@ -70,7 +78,7 @@ CIPHERS=" \
|
||||||
# Not supported by OpenSSL: NULL-SHA256
|
# Not supported by OpenSSL: NULL-SHA256
|
||||||
for i in $CIPHERS;
|
for i in $CIPHERS;
|
||||||
do
|
do
|
||||||
RESULT="$( ( echo -e 'GET HTTP/1.0'; echo; sleep 1 ) | openssl s_client -cipher $i 2>&1)"
|
RESULT="$( ( echo -e 'GET HTTP/1.0'; echo; sleep 1 ) | openssl s_client -$MODE -cipher $i 2>&1)"
|
||||||
EXIT=$?
|
EXIT=$?
|
||||||
echo -n "PolarSSL Server - OpenSSL Client - $i : $EXIT - "
|
echo -n "PolarSSL Server - OpenSSL Client - $i : $EXIT - "
|
||||||
|
|
||||||
|
@ -134,3 +142,5 @@ do
|
||||||
done
|
done
|
||||||
kill $PROCESS_ID
|
kill $PROCESS_ID
|
||||||
|
|
||||||
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue