mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
Replace __attribute__((nonstring)) with macro MBEDTLS_ATTRIBUTE_UNTERMINATED_STRING
This macro applies __attribute__((nonstring)) when using a compiler that supports it Signed-off-by: Felix Conway <felix.conway@arm.com>
This commit is contained in:
committed by
Ari Weiler-Ofek
parent
79b513894a
commit
5b84ae14e9
@@ -81,7 +81,7 @@ struct mbedtls_ssl_tls13_labels_struct const mbedtls_ssl_tls13_labels =
|
||||
*/
|
||||
|
||||
/* We need to tell the compiler that we meant to leave out the null character. */
|
||||
static const char tls13_label_prefix[6] __attribute__ ((nonstring)) = "tls13 ";
|
||||
static const char tls13_label_prefix[6] MBEDTLS_ATTRIBUTE_UNTERMINATED_STRING = "tls13 ";
|
||||
|
||||
#define SSL_TLS1_3_KEY_SCHEDULE_HKDF_LABEL_LEN(label_len, context_len) \
|
||||
(2 /* expansion length */ \
|
||||
|
Reference in New Issue
Block a user