mirror of
https://github.com/vlang/v.git
synced 2025-09-16 07:52:32 +03:00
thirdparty: improve -cstrict -cc clang-18 -prod
compatibility for programs that do import net.mbedtls
This commit is contained in:
parent
e129ec5b7a
commit
dacc738c96
4 changed files with 18 additions and 15 deletions
1
thirdparty/mbedtls/library/pk.c
vendored
1
thirdparty/mbedtls/library/pk.c
vendored
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue