mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-10 15:40:30 +00:00
Fix compilation of ssl_tls13_generic.c when memcpy() is a function-like macro
Fixes #8994 Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
parent
e146940714
commit
b32d7ae0fe
@ -0,0 +1,2 @@
|
||||
Bugfix
|
||||
* Fix compilation error when memcpy() is a function-like macros. Fixes #8994.
|
@ -193,10 +193,12 @@ static void ssl_tls13_create_verify_structure(const unsigned char *transcript_ha
|
||||
idx = 64;
|
||||
|
||||
if (from == MBEDTLS_SSL_IS_CLIENT) {
|
||||
memcpy(verify_buffer + idx, MBEDTLS_SSL_TLS1_3_LBL_WITH_LEN(client_cv));
|
||||
memcpy(verify_buffer + idx, mbedtls_ssl_tls13_labels.client_cv,
|
||||
MBEDTLS_SSL_TLS1_3_LBL_LEN(client_cv));
|
||||
idx += MBEDTLS_SSL_TLS1_3_LBL_LEN(client_cv);
|
||||
} else { /* from == MBEDTLS_SSL_IS_SERVER */
|
||||
memcpy(verify_buffer + idx, MBEDTLS_SSL_TLS1_3_LBL_WITH_LEN(server_cv));
|
||||
memcpy(verify_buffer + idx, mbedtls_ssl_tls13_labels.server_cv,
|
||||
MBEDTLS_SSL_TLS1_3_LBL_LEN(server_cv));
|
||||
idx += MBEDTLS_SSL_TLS1_3_LBL_LEN(server_cv);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user