Jaeden Amero
2de07f1dd1
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.
Add a regression test to detect when we have regressions with
configurations that do not include any MAC ciphersuites.
Fixes d56ed2491b ("Reduce size of `ssl_transform` if no MAC ciphersuite is enabled")
2019-06-05 14:09:29 +01:00
..
2019-02-15 10:13:35 -05:00
2019-01-31 08:20:20 -05:00
2019-02-13 07:34:54 -05:00
2018-08-06 11:42:56 +01:00
2019-01-31 08:20:20 -05:00
2018-06-11 14:03:22 +01:00
2019-01-31 08:20:20 -05:00
2018-06-13 12:13:58 +01:00
2018-08-06 11:42:06 +01:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-02-28 09:36:30 +00:00
2019-02-28 09:36:30 +00:00
2015-09-30 16:31:10 +02:00
2018-08-06 11:42:06 +01:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2018-05-24 13:37:31 +02:00
2019-01-31 08:20:20 -05:00
2018-05-24 13:37:31 +02:00
2019-01-31 08:20:20 -05:00
2018-11-22 14:03:39 +00:00
2018-03-27 19:25:35 -07:00
2018-03-27 19:25:35 -07:00
2018-03-27 19:25:35 -07:00
2018-11-22 14:03:39 +00:00
2018-05-24 13:37:31 +02:00
2018-11-22 14:03:39 +00:00
2018-03-27 19:25:35 -07:00
2019-04-16 16:06:34 +02:00
2018-11-22 14:03:39 +00:00
2019-01-31 08:20:20 -05:00
2019-04-02 10:02:55 -07:00
2018-03-27 19:25:35 -07:00
2019-01-31 08:20:20 -05:00
2016-10-13 13:53:13 +01:00
2018-08-06 11:42:06 +01:00
2018-08-29 23:38:57 +03:00
2019-02-01 02:53:16 -05:00
2017-09-04 14:17:10 +02:00
2018-08-06 11:42:06 +01:00
2018-08-06 11:42:06 +01:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-02-22 15:42:03 +00:00
2019-02-22 15:39:03 +00:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-02-27 14:47:10 +00:00
2019-03-27 17:01:24 +00:00
2017-07-24 15:31:30 +01:00
2018-08-15 13:55:37 +01:00
2018-08-06 11:40:57 +01:00
2018-08-06 11:40:57 +01:00
2017-07-27 21:44:33 +01:00
2018-08-06 11:40:57 +01:00
2017-07-27 21:44:33 +01:00
2018-08-06 11:40:57 +01:00
2017-07-27 21:44:33 +01:00
2018-08-06 11:40:57 +01:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2018-06-11 13:10:14 +01:00
2019-01-28 15:18:15 +02:00
2018-08-06 11:42:06 +01:00
2017-10-06 11:58:50 +01:00
2018-08-06 11:42:06 +01:00
2017-10-06 11:58:50 +01:00
2018-08-06 11:42:06 +01:00
2018-01-23 19:37:44 +00:00
2018-08-06 11:40:57 +01:00
2019-04-05 14:08:49 +01:00
2019-04-05 14:08:49 +01:00
2018-08-13 14:46:45 +03:00
2019-01-24 10:37:40 +01:00
2019-05-06 12:16:18 -04:00
2019-05-06 12:16:32 -04:00
2017-05-30 16:54:23 +01:00
2018-08-06 11:42:06 +01:00
2019-01-31 08:20:20 -05:00
2019-02-13 07:34:54 -05:00
2019-02-19 18:33:57 +01:00
2019-02-19 18:33:57 +01:00
2019-02-19 18:33:57 +01:00
2019-02-19 18:33:57 +01:00
2018-02-08 17:18:19 +08:00
2018-08-06 11:42:06 +01:00
2018-07-27 17:15:39 +01:00
2018-08-06 11:42:06 +01:00
2019-01-31 08:20:20 -05:00
2018-05-24 13:37:31 +02:00
2019-01-31 08:20:20 -05:00
2019-05-06 12:15:17 -04:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-06-03 16:07:50 +01:00
2019-06-05 14:09:29 +01:00
2019-01-29 10:19:49 +01:00
2019-02-05 09:22:20 +01:00
2019-03-19 16:12:55 +00:00
2018-08-06 11:40:57 +01:00
2019-05-22 17:36:58 +03:00
2019-05-13 19:23:07 +03:00
2019-02-28 09:38:03 +00:00
2019-02-28 09:36:30 +00:00
2018-08-06 11:42:06 +01:00