Skip to content

Commit 2d814cc

Browse files
committed
Fix build of v3.6 with unset MBEDTLS_DHM_C but MBEDTLS_USE_PSA_CRYPTO set (fixes Mbed-TLS#9188)
Avoid compiler warning about size comparison (like in commit 7910cdd): Clang builds fail, warning about comparing uint8_t to a size that may be >255. Signed-off-by: Michael Schuster <[email protected]>
1 parent 830d704 commit 2d814cc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Bugfix
2+
* Fix Clang compilation error when MBEDTLS_USE_PSA_CRYPTO is enabled
3+
but MBEDTLS_DHM_C is disabled. Reported by Michael Schuster in #9188.

library/ssl_tls12_server.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3921,7 +3921,7 @@ static int ssl_parse_client_key_exchange(mbedtls_ssl_context *ssl)
39213921
#if defined(MBEDTLS_USE_PSA_CRYPTO)
39223922
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
39233923
psa_status_t destruction_status = PSA_ERROR_CORRUPTION_DETECTED;
3924-
uint8_t ecpoint_len;
3924+
size_t ecpoint_len;
39253925

39263926
mbedtls_ssl_handshake_params *handshake = ssl->handshake;
39273927

0 commit comments

Comments
 (0)