tls/m_tls_serverctx.c
/*! Session resumption is enabled by default, can be disabled with this flag */
Session resumption is enabled by default, can be disabled with this flag
Session resumption is enabled by default can be disabled with this flag
M_bool M_tls_serverctx_set_session_resumption(M_tls_serverctx_t *ctx, M_bool enable)
{
	if (ctx == NULL)
		return M_FALSE;
	M_thread_mutex_lock(ctx->lock);
	ctx->sessions_enabled = enable;
	M_tls_serverctx_set_session_support(ctx->ctx, enable);
	M_thread_mutex_unlock(ctx->lock);
	return M_TRUE;
}
M_bool M_tls_serverctx_set_session_resumption ( M_tls_serverctx_t * ctx , M_bool enable ) { if ( ctx == NULL ) return M_FALSE ; M_thread_mutex_lock ( ctx -> lock ) ; ctx -> sessions_enabled = enable ; M_tls_serverctx_set_session_support ( ctx -> ctx , enable ) ; M_thread_mutex_unlock ( ctx -> lock ) ; return M_TRUE ; }
Session resumption is enabled by default, can be disabled with this flag
Session resumption is enabled by default can be disabled with this flag