Restructure ssl_handshake_init() and small fixes

This commit is contained in:
Paul Bakker 2014-06-26 13:37:14 +02:00
parent a317a98221
commit accaffe2c3
3 changed files with 96 additions and 47 deletions

View file

@ -343,6 +343,8 @@ static int ssl_parse_ticket( ssl_context *ssl,
ssl_session_free( ssl->session_negotiate );
memcpy( ssl->session_negotiate, &session, sizeof( ssl_session ) );
/* Zeroize instead of free as we copied the content */
polarssl_zeroize( &session, sizeof( ssl_session ) );
return( 0 );