mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 20:14:18 +01:00
Rename to mbed TLS in tests/
This commit is contained in:
parent
9169921271
commit
e4f6edcda1
@ -49,10 +49,10 @@ MODES="ssl3 tls1 tls1_1 tls1_2"
|
|||||||
VERIFIES="NO YES"
|
VERIFIES="NO YES"
|
||||||
TYPES="ECDSA RSA PSK"
|
TYPES="ECDSA RSA PSK"
|
||||||
FILTER=""
|
FILTER=""
|
||||||
EXCLUDE='NULL\|DES-CBC-' # avoid plain DES but keep 3DES-EDE-CBC (PolarSSL), DES-CBC3 (OpenSSL)
|
EXCLUDE='NULL\|DES-CBC-' # avoid plain DES but keep 3DES-EDE-CBC (mbedTLS), DES-CBC3 (OpenSSL)
|
||||||
VERBOSE=""
|
VERBOSE=""
|
||||||
MEMCHECK=0
|
MEMCHECK=0
|
||||||
PEERS="OpenSSL$PEER_GNUTLS PolarSSL"
|
PEERS="OpenSSL$PEER_GNUTLS mbedTLS"
|
||||||
|
|
||||||
print_usage() {
|
print_usage() {
|
||||||
echo "Usage: $0"
|
echo "Usage: $0"
|
||||||
@ -1029,13 +1029,13 @@ for VERIFY in $VERIFIES; do
|
|||||||
if [ "X" != "X$P_CIPHERS" ]; then
|
if [ "X" != "X$P_CIPHERS" ]; then
|
||||||
start_server "OpenSSL"
|
start_server "OpenSSL"
|
||||||
for i in $P_CIPHERS; do
|
for i in $P_CIPHERS; do
|
||||||
run_client PolarSSL $i
|
run_client mbedTLS $i
|
||||||
done
|
done
|
||||||
stop_server
|
stop_server
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "X" != "X$O_CIPHERS" ]; then
|
if [ "X" != "X$O_CIPHERS" ]; then
|
||||||
start_server "PolarSSL"
|
start_server "mbedTLS"
|
||||||
for i in $O_CIPHERS; do
|
for i in $O_CIPHERS; do
|
||||||
run_client OpenSSL $i
|
run_client OpenSSL $i
|
||||||
done
|
done
|
||||||
@ -1054,13 +1054,13 @@ for VERIFY in $VERIFIES; do
|
|||||||
if [ "X" != "X$P_CIPHERS" ]; then
|
if [ "X" != "X$P_CIPHERS" ]; then
|
||||||
start_server "GnuTLS"
|
start_server "GnuTLS"
|
||||||
for i in $P_CIPHERS; do
|
for i in $P_CIPHERS; do
|
||||||
run_client PolarSSL $i
|
run_client mbedTLS $i
|
||||||
done
|
done
|
||||||
stop_server
|
stop_server
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "X" != "X$G_CIPHERS" ]; then
|
if [ "X" != "X$G_CIPHERS" ]; then
|
||||||
start_server "PolarSSL"
|
start_server "mbedTLS"
|
||||||
for i in $G_CIPHERS; do
|
for i in $G_CIPHERS; do
|
||||||
run_client GnuTLS $i
|
run_client GnuTLS $i
|
||||||
done
|
done
|
||||||
@ -1079,9 +1079,9 @@ for VERIFY in $VERIFIES; do
|
|||||||
filter_ciphersuites
|
filter_ciphersuites
|
||||||
|
|
||||||
if [ "X" != "X$P_CIPHERS" ]; then
|
if [ "X" != "X$P_CIPHERS" ]; then
|
||||||
start_server "PolarSSL"
|
start_server "mbedTLS"
|
||||||
for i in $P_CIPHERS; do
|
for i in $P_CIPHERS; do
|
||||||
run_client PolarSSL $i
|
run_client mbedTLS $i
|
||||||
done
|
done
|
||||||
stop_server
|
stop_server
|
||||||
fi
|
fi
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
if [ -d library -a -d include -a -d tests ]; then :; else
|
if [ -d library -a -d include -a -d tests ]; then :; else
|
||||||
echo "Must be run from PolarSSL root" >&2
|
echo "Must be run from mbed TLS root" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ my %configs = (
|
|||||||
'config-mini-tls1_1.h'
|
'config-mini-tls1_1.h'
|
||||||
=> '-m tls1_1 -f \'^DES-CBC3-SHA$\|^TLS-RSA-WITH-3DES-EDE-CBC-SHA$\'',
|
=> '-m tls1_1 -f \'^DES-CBC3-SHA$\|^TLS-RSA-WITH-3DES-EDE-CBC-SHA$\'',
|
||||||
'config-suite-b.h'
|
'config-suite-b.h'
|
||||||
=> "-m tls1_2 -f 'ECDHE-ECDSA.*AES.*GCM' -p PolarSSL",
|
=> "-m tls1_2 -f 'ECDHE-ECDSA.*AES.*GCM' -p mbedTLS",
|
||||||
'config-picocoin.h'
|
'config-picocoin.h'
|
||||||
=> 0,
|
=> 0,
|
||||||
'config-ccm-psk-tls1_2.h'
|
'config-ccm-psk-tls1_2.h'
|
||||||
|
@ -20,7 +20,7 @@ void check_compiletime_version( char *version_str )
|
|||||||
snprintf (build_str, 100, "%d.%d.%d", POLARSSL_VERSION_MAJOR,
|
snprintf (build_str, 100, "%d.%d.%d", POLARSSL_VERSION_MAJOR,
|
||||||
POLARSSL_VERSION_MINOR, POLARSSL_VERSION_PATCH );
|
POLARSSL_VERSION_MINOR, POLARSSL_VERSION_PATCH );
|
||||||
|
|
||||||
snprintf( build_str_full, 100, "PolarSSL %d.%d.%d", POLARSSL_VERSION_MAJOR,
|
snprintf( build_str_full, 100, "mbed TLS %d.%d.%d", POLARSSL_VERSION_MAJOR,
|
||||||
POLARSSL_VERSION_MINOR, POLARSSL_VERSION_PATCH );
|
POLARSSL_VERSION_MINOR, POLARSSL_VERSION_PATCH );
|
||||||
|
|
||||||
build_int = POLARSSL_VERSION_MAJOR << 24 |
|
build_int = POLARSSL_VERSION_MAJOR << 24 |
|
||||||
@ -56,7 +56,7 @@ void check_runtime_version( char *version_str )
|
|||||||
(get_int >> 24) & 0xFF,
|
(get_int >> 24) & 0xFF,
|
||||||
(get_int >> 16) & 0xFF,
|
(get_int >> 16) & 0xFF,
|
||||||
(get_int >> 8) & 0xFF );
|
(get_int >> 8) & 0xFF );
|
||||||
snprintf( build_str_full, 100, "PolarSSL %s", version_str );
|
snprintf( build_str_full, 100, "mbed TLS %s", version_str );
|
||||||
|
|
||||||
TEST_ASSERT( strcmp( build_str, version_str ) == 0 );
|
TEST_ASSERT( strcmp( build_str, version_str ) == 0 );
|
||||||
TEST_ASSERT( strcmp( build_str_full, get_str_full ) == 0 );
|
TEST_ASSERT( strcmp( build_str_full, get_str_full ) == 0 );
|
||||||
|
Loading…
Reference in New Issue
Block a user