Add ssl_set_client_transport_id()
This commit is contained in:
parent
fb2d22371f
commit
43c021874d
3 changed files with 65 additions and 0 deletions
|
@ -3749,6 +3749,12 @@ int ssl_session_reset( ssl_context *ssl )
|
|||
ssl->alpn_chosen = NULL;
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_SSL_PROTO_DTLS) && defined(POLARSSL_SSL_SRV_C)
|
||||
polarssl_free( ssl->cli_id );
|
||||
ssl->cli_id = NULL;
|
||||
ssl->cli_id_len = 0;
|
||||
#endif
|
||||
|
||||
if( ( ret = ssl_handshake_init( ssl ) ) != 0 )
|
||||
return( ret );
|
||||
|
||||
|
@ -5033,6 +5039,10 @@ void ssl_free( ssl_context *ssl )
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_SSL_PROTO_DTLS) && defined(POLARSSL_SSL_SRV_C)
|
||||
polarssl_free( ssl->cli_id );
|
||||
#endif
|
||||
|
||||
SSL_DEBUG_MSG( 2, ( "<= free" ) );
|
||||
|
||||
/* Actually clear after last debug message */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue