thirdparty: improve -cstrict -cc clang-18 -prod compatibility for programs that do import net.mbedtls

This commit is contained in:
Delyan Angelov 2025-02-10 21:18:36 +02:00
parent e129ec5b7a
commit dacc738c96
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
4 changed files with 18 additions and 15 deletions

View file

@ -576,6 +576,7 @@ int mbedtls_pk_sign_restartable( mbedtls_pk_context *ctx,
if( ( md_alg != MBEDTLS_MD_NONE || hash_len != 0 ) && hash == NULL )
return MBEDTLS_ERR_PK_BAD_INPUT_DATA;
if( ctx == NULL ) return MBEDTLS_ERR_PK_BAD_INPUT_DATA;
if( ctx->pk_info == NULL || pk_hashlen_helper( md_alg, &hash_len ) != 0 )
return( MBEDTLS_ERR_PK_BAD_INPUT_DATA );