- Allow to test for multiple modes
This commit is contained in:
parent
e93dfa72a5
commit
398cb514e2
@ -1,6 +1,14 @@
|
||||
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=$!
|
||||
|
||||
sleep 1
|
||||
@ -70,7 +78,7 @@ CIPHERS=" \
|
||||
# Not supported by OpenSSL: NULL-SHA256
|
||||
for i in $CIPHERS;
|
||||
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=$?
|
||||
echo -n "PolarSSL Server - OpenSSL Client - $i : $EXIT - "
|
||||
|
||||
@ -134,3 +142,5 @@ do
|
||||
done
|
||||
kill $PROCESS_ID
|
||||
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user