mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-04 16:09:50 +00:00
Fix test_suite_md API violation
Add a call to `mbedtls_md_starts()` in the `mbedtls_md_process()` test, as it violates the API usage. Fixes #2227. Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
parent
23ea2c6c00
commit
b6889d1d6a
|
@ -31,6 +31,7 @@ void mbedtls_md_process( )
|
|||
info = mbedtls_md_info_from_type( *md_type_ptr );
|
||||
TEST_ASSERT( info != NULL );
|
||||
TEST_ASSERT( mbedtls_md_setup( &ctx, info, 0 ) == 0 );
|
||||
TEST_ASSERT( mbedtls_md_starts( &ctx ) == 0 );
|
||||
TEST_ASSERT( mbedtls_md_process( &ctx, buf ) == 0 );
|
||||
mbedtls_md_free( &ctx );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue