mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-24 05:00:45 -04:00
Add fixed compatibility test for TLS 1.3 Exporter
When testing TLS 1.3, use O_NEXT_CLI. Signed-off-by: Max Fillinger <maximilian.fillinger@foxcrypto.com>
This commit is contained in:
parent
7b97712164
commit
4e21703bcf
@ -1978,14 +1978,14 @@ run_test_export_keying_material_openssl_compat() {
|
|||||||
unset EXPORTED_KEY2
|
unset EXPORTED_KEY2
|
||||||
TLS_VERSION="$1"
|
TLS_VERSION="$1"
|
||||||
|
|
||||||
case TLS_VERSION in
|
case $TLS_VERSION in
|
||||||
tls12) TLS_VERSION_PRINT="TLS 1.2";;
|
tls12) TLS_VERSION_PRINT="TLS 1.2"; OPENSSL_CLIENT="$O_CLI";;
|
||||||
tls13) TLS_VERSION_PRINT="TLS 1.3";;
|
tls13) TLS_VERSION_PRINT="TLS 1.3"; OPENSSL_CLIENT="$O_NEXT_CLI";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
run_test "$TLS_VERSION_PRINT: Export keying material (OpenSSL compatibility)" \
|
run_test "$TLS_VERSION_PRINT: Export keying material (OpenSSL compatibility)" \
|
||||||
"$P_SRV debug_level=4 force_version=$TLS_VERSION exp_label=test-label" \
|
"$P_SRV debug_level=4 force_version=$TLS_VERSION exp_label=test-label" \
|
||||||
"$O_CLI -keymatexport test-label" \
|
"$OPENSSL_CLIENT -keymatexport test-label" \
|
||||||
0 \
|
0 \
|
||||||
-s "Exporting key of length 20 with label \".*\": 0x" \
|
-s "Exporting key of length 20 with label \".*\": 0x" \
|
||||||
-c "Keying material exporter:" \
|
-c "Keying material exporter:" \
|
||||||
@ -3027,6 +3027,11 @@ requires_config_enabled MBEDTLS_SSL_KEYING_MATERIAL_EXPORT
|
|||||||
requires_protocol_version tls13
|
requires_protocol_version tls13
|
||||||
run_test_export_keying_material tls13
|
run_test_export_keying_material tls13
|
||||||
|
|
||||||
|
requires_config_enabled MBEDTLS_SSL_KEYING_MATERIAL_EXPORT
|
||||||
|
requires_protocol_version tls13
|
||||||
|
requires_openssl_next
|
||||||
|
run_test_export_keying_material_openssl_compat tls13
|
||||||
|
|
||||||
rm -f context_srv.txt
|
rm -f context_srv.txt
|
||||||
rm -f context_cli.txt
|
rm -f context_cli.txt
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user