mbedtls/tests/scripts
Jaeden Amero 2eaf2c7969 ssl: Don't access non-existent encrypt_then_mac field
When MBEDTLS_SSL_ENCRYPT_THEN_MAC is enabled, but not
MBEDTLS_SSL_SOME_MODES_USE_MAC, mbedtls_ssl_derive_keys() and
build_transforms() will attempt to use a non-existent `encrypt_then_mac`
field in the ssl_transform.

    Compile [ 93.7%]: ssl_tls.c
    [Error] ssl_tls.c@865,14: 'mbedtls_ssl_transform {aka struct mbedtls_ssl_transform}' ha
s no member named 'encrypt_then_mac'
    [ERROR] ./mbed-os/features/mbedtls/src/ssl_tls.c: In function 'mbedtls_ssl_derive_keys'
:
    ./mbed-os/features/mbedtls/src/ssl_tls.c:865:14: error: 'mbedtls_ssl_transform {aka str
uct mbedtls_ssl_transform}' has no member named 'encrypt_then_mac'
         transform->encrypt_then_mac = session->encrypt_then_mac;
                  ^~

Change mbedtls_ssl_derive_keys() and build_transforms() to only access
`encrypt_then_mac` if `encrypt_then_mac` is actually present. Fix any
unused variable warnings along the way, by additionally wrapping
function parameters with MBEDTLS_SSL_SOME_MODES_USE_MAC.

Add a regression test to detect when we have regressions with
configurations that do not include any MAC ciphersuites.

Fixes 92231325a7 ("Reduce size of `ssl_transform` if no MAC ciphersuite is enabled")
2019-06-05 14:22:11 +01:00
..
all.sh ssl: Don't access non-existent encrypt_then_mac field 2019-06-05 14:22:11 +01:00
basic-build-test.sh Adjust DES exclude lists in test scripts 2019-03-01 10:30:11 +01:00
check-doxy-blocks.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
check-files.py Merge remote-tracking branch 'origin/pr/566' into baremetal 2019-05-09 16:59:02 +01:00
check-generated-files.sh Add gen_query_config.pl to check-gen-files and bump_version 2019-02-07 10:32:31 +00:00
check-names.sh Merge branch 'mbedtls-2.16' into baremetal 2019-06-04 09:39:51 +02:00
check-python-files.sh Fix pylint errors going uncaught 2019-02-25 21:42:32 +01:00
curves.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
depends-hashes.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
depends-pkalgs.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
doxygen.sh Add scripts/apidoc_full.sh 2016-01-12 14:48:03 +00:00
gen_ctr_drbg.pl Merge remote-tracking branch 'public/pr/1533' into development 2018-06-27 10:50:58 +01:00
gen_gcm_decrypt.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
gen_gcm_encrypt.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
gen_pkcs1_v21_sign_verify.pl Merge remote-tracking branch 'public/pr/1533' into development 2018-06-27 10:50:58 +01:00
generate_test_code.py Silence pylint 2019-02-25 21:42:32 +01:00
generate-afl-tests.sh Added script to split the test case data files 2016-03-09 19:32:09 +00:00
key-exchanges.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
list-enum-consts.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
list-identifiers.sh Document the scripts behaviour further 2019-04-18 13:18:22 +01:00
list-macros.sh
list-symbols.sh test: Always use make clean by itself 2019-05-31 17:49:25 +01:00
mbedtls_test.py Silence pylint 2019-02-25 21:42:32 +01:00
recursion.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
run-test-suites.pl Add a facility to skip running some test suites 2018-12-14 18:29:28 +01:00
tcp_client.pl Fix FALLBACK_SCSV parsing 2017-05-16 17:53:03 +02:00
test_generate_test_code.py Silence pylint 2019-02-25 21:42:32 +01:00
test_zeroize.gdb Gdb script: improve portability of ASLR disabling disabling 2019-01-09 22:36:31 +01:00
test-ref-configs.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
travis-log-failure.sh Fixes Travis post-mortem script dump following review 2016-04-10 15:11:27 +01:00
whitelist Add whitelist for uECC files for check-names.sh 2019-04-26 16:22:10 +03:00