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

Adapted programs / test suites to _init() and _free()

This commit is contained in:
Paul Bakker
2014-06-26 12:25:06 +02:00
parent 5b4af39a36
commit 14e8be4d33
3 changed files with 29 additions and 1 deletions

View File

@@ -94,6 +94,7 @@ int main( int argc, char *argv[] )
#endif
aes_init( &aes_ctx );
sha256_init( &sha_ctx );
/*
* Parse the command-line arguments.
@@ -429,7 +430,7 @@ exit:
memset( digest, 0, sizeof( digest ) );
aes_free( &aes_ctx );
memset( &sha_ctx, 0, sizeof( sha256_context ) );
sha256_free( &sha_ctx );
return( ret );
}