1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Merge pull request #4629 from TRodziewicz/rename_functions_whose_deprecated_variants_have_been_removd

Rename the _ret() functions
This commit is contained in:
Gilles Peskine
2021-06-15 20:32:07 +02:00
committed by GitHub
40 changed files with 408 additions and 286 deletions

View File

@@ -166,9 +166,9 @@ int main( int argc, char *argv[] )
mbedtls_printf( " . Computing message hash..." );
fflush( stdout );
if( ( ret = mbedtls_sha256_ret( message, sizeof( message ), hash, 0 ) ) != 0 )
if( ( ret = mbedtls_sha256( message, sizeof( message ), hash, 0 ) ) != 0 )
{
mbedtls_printf( " failed\n ! mbedtls_sha256_ret returned %d\n", ret );
mbedtls_printf( " failed\n ! mbedtls_sha256 returned %d\n", ret );
goto exit;
}