mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Adapt programs / test suites to _init() and _free()
This commit is contained in:
parent
c7ea99af4f
commit
8cfd9d8c59
9 changed files with 113 additions and 2 deletions
|
|
@ -84,6 +84,8 @@ int main( int argc, char *argv[] )
|
|||
memset( &rsa, 0, sizeof( rsa ) );
|
||||
memset( &dhm, 0, sizeof( dhm ) );
|
||||
|
||||
aes_init( &aes );
|
||||
|
||||
/*
|
||||
* 1. Setup the RNG
|
||||
*/
|
||||
|
|
@ -279,6 +281,7 @@ exit:
|
|||
if( server_fd != -1 )
|
||||
net_close( server_fd );
|
||||
|
||||
aes_free( &aes );
|
||||
rsa_free( &rsa );
|
||||
dhm_free( &dhm );
|
||||
entropy_free( &entropy );
|
||||
|
|
|
|||
|
|
@ -84,6 +84,7 @@ int main( int argc, char *argv[] )
|
|||
|
||||
memset( &rsa, 0, sizeof( rsa ) );
|
||||
memset( &dhm, 0, sizeof( dhm ) );
|
||||
aes_init( &aes );
|
||||
|
||||
/*
|
||||
* 1. Setup the RNG
|
||||
|
|
@ -280,6 +281,7 @@ exit:
|
|||
if( client_fd != -1 )
|
||||
net_close( client_fd );
|
||||
|
||||
aes_free( &aes );
|
||||
rsa_free( &rsa );
|
||||
dhm_free( &dhm );
|
||||
entropy_free( &entropy );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue