mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-01 20:54:23 +01:00
- Ability to define openssl at top
- Also add SHA256 ciphersuites in non-tls 1.2 modes
This commit is contained in:
parent
5f70b25c9b
commit
0c93d126bc
@ -3,6 +3,7 @@ killall -q openssl ssl_server
|
|||||||
MODES="ssl3 tls1 tls1_1 tls1_2"
|
MODES="ssl3 tls1 tls1_1 tls1_2"
|
||||||
#VERIFY="YES"
|
#VERIFY="YES"
|
||||||
VERIFY=""
|
VERIFY=""
|
||||||
|
OPENSSL=openssl
|
||||||
|
|
||||||
if [ "X$VERIFY" = "XYES" ];
|
if [ "X$VERIFY" = "XYES" ];
|
||||||
then
|
then
|
||||||
@ -53,18 +54,14 @@ O_CIPHERS=" \
|
|||||||
EDH-RSA-DES-CBC-SHA \
|
EDH-RSA-DES-CBC-SHA \
|
||||||
"
|
"
|
||||||
|
|
||||||
if [ "$MODE" = "tls1_2" ];
|
# Also add SHA256 ciphersuites
|
||||||
then
|
#
|
||||||
P_CIPHERS="$P_CIPHERS \
|
P_CIPHERS="$P_CIPHERS \
|
||||||
SSL-RSA-NULL-SHA256 \
|
SSL-RSA-NULL-SHA256 \
|
||||||
SSL-RSA-AES-128-SHA256 \
|
SSL-RSA-AES-128-SHA256 \
|
||||||
SSL-EDH-RSA-AES-128-SHA256 \
|
SSL-EDH-RSA-AES-128-SHA256 \
|
||||||
SSL-RSA-AES-256-SHA256 \
|
SSL-RSA-AES-256-SHA256 \
|
||||||
SSL-EDH-RSA-AES-256-SHA256 \
|
SSL-EDH-RSA-AES-256-SHA256 \
|
||||||
SSL-RSA-AES-128-GCM-SHA256 \
|
|
||||||
SSL-EDH-RSA-AES-128-GCM-SHA256 \
|
|
||||||
SSL-RSA-AES-256-GCM-SHA384 \
|
|
||||||
SSL-EDH-RSA-AES-256-GCM-SHA384 \
|
|
||||||
"
|
"
|
||||||
|
|
||||||
O_CIPHERS="$O_CIPHERS \
|
O_CIPHERS="$O_CIPHERS \
|
||||||
@ -73,6 +70,18 @@ then
|
|||||||
DHE-RSA-AES128-SHA256 \
|
DHE-RSA-AES128-SHA256 \
|
||||||
AES256-SHA256 \
|
AES256-SHA256 \
|
||||||
DHE-RSA-AES256-SHA256 \
|
DHE-RSA-AES256-SHA256 \
|
||||||
|
"
|
||||||
|
|
||||||
|
if [ "$MODE" = "tls1_2" ];
|
||||||
|
then
|
||||||
|
P_CIPHERS="$P_CIPHERS \
|
||||||
|
SSL-RSA-AES-128-GCM-SHA256 \
|
||||||
|
SSL-EDH-RSA-AES-128-GCM-SHA256 \
|
||||||
|
SSL-RSA-AES-256-GCM-SHA384 \
|
||||||
|
SSL-EDH-RSA-AES-256-GCM-SHA384 \
|
||||||
|
"
|
||||||
|
|
||||||
|
O_CIPHERS="$O_CIPHERS \
|
||||||
AES128-GCM-SHA256 \
|
AES128-GCM-SHA256 \
|
||||||
DHE-RSA-AES128-GCM-SHA256 \
|
DHE-RSA-AES128-GCM-SHA256 \
|
||||||
AES256-GCM-SHA384 \
|
AES256-GCM-SHA384 \
|
||||||
@ -80,7 +89,7 @@ then
|
|||||||
"
|
"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
openssl s_server -cert data_files/server2.crt -key data_files/server2.key -www -quiet -cipher NULL,ALL $O_SERVER_ARGS -$MODE &
|
$OPENSSL s_server -cert data_files/server2.crt -key data_files/server2.key -www -quiet -cipher NULL,ALL $O_SERVER_ARGS -$MODE &
|
||||||
PROCESS_ID=$!
|
PROCESS_ID=$!
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
@ -110,7 +119,7 @@ sleep 1
|
|||||||
|
|
||||||
for i in $O_CIPHERS;
|
for i in $O_CIPHERS;
|
||||||
do
|
do
|
||||||
RESULT="$( ( echo -e 'GET HTTP/1.0'; echo; sleep 1 ) | openssl s_client -$MODE -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 - "
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user