ARMmbed / mbed-os

Arm Mbed OS is a platform operating system designed for the internet of things
https://mbed.com
Other
4.67k stars 2.98k forks source link

Mbed Client LITE does not compile with Mbed OS 5.13.0-RC2 #10788

Closed teetak01 closed 5 years ago

teetak01 commented 5 years ago

Description

Mbed Client Lite example (mbed-client-lite-example-restricted) does not compile with Mbed OS 5.13.0-RC2.

This seems to be related to the TLS flagging:

Compile [ 93.7%]: ssl_tls.c
[Error] ssl_tls.c@865,14: 'mbedtls_ssl_transform {aka struct mbedtls_ssl_transform}' has 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 struct mbedtls_ssl_transform}' has no member named 'encrypt_then_mac'
     transform->encrypt_then_mac = session->encrypt_then_mac;

As a workaround it is possible to add this to application TLS-configuration file:

undef MBEDTLS_SSL_ENCRYPT_THEN_MAC

Can be reproduced with the (limited access) mbed-client-lite-example-restricted application.

Issue request type

[ ] Question
[ ] Enhancement
[X] Bug
teetak01 commented 5 years ago

@Patater @JanneKiiskila

ciarmcom commented 5 years ago

Internal Jira reference: https://jira.arm.com/browse/MBOCUSTRIA-1270