Commit 24cbf4a0 authored by Sebastien Decugis's avatar Sebastien Decugis
Browse files

Remove the warning on gnutls_transport_set_lowat

parent d681d745
......@@ -142,9 +142,10 @@ int diameap_tls_init_session(struct tls_config * tls_conf,
gnutls_transport_set_pull_function(data->session, diameap_tls_receive);
gnutls_transport_set_push_function(data->session, diameap_tls_send);
gnutls_transport_set_ptr(data->session, (gnutls_transport_ptr) data);
#ifndef GNUTLS_VERSION_300
/* starting version 2.12, this call is not needed */
gnutls_transport_set_lowat(data->session, 0);
#endif /* GNUTLS_VERSION_300 */
return ret;
}
......
......@@ -224,7 +224,10 @@ static void set_sess_transport(gnutls_session_t session, struct sctps_ctx *ctx)
GNUTLS_TRACE( gnutls_transport_set_ptr( session, (gnutls_transport_ptr_t) ctx ) );
/* Reset the low water value, since we don't use sockets */
#ifndef GNUTLS_VERSION_300
/* starting version 2.12, this call is not needed */
GNUTLS_TRACE( gnutls_transport_set_lowat( session, 0 ) );
#endif /* GNUTLS_VERSION_300 */
/* Set the push and pull callbacks */
GNUTLS_TRACE( gnutls_transport_set_pull_function(session, sctps_pull) );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment