diff options
Diffstat (limited to 'source4/lib/tls/tls.c')
-rw-r--r-- | source4/lib/tls/tls.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/tls/tls.c b/source4/lib/tls/tls.c index 00c2d13478..3a49e2f2e8 100644 --- a/source4/lib/tls/tls.c +++ b/source4/lib/tls/tls.c @@ -505,7 +505,9 @@ struct socket_context *tls_init_server(struct tls_params *params, gnutls_transport_set_ptr(tls->session, (gnutls_transport_ptr)tls); gnutls_transport_set_pull_function(tls->session, (gnutls_pull_func)tls_pull); gnutls_transport_set_push_function(tls->session, (gnutls_push_func)tls_push); +#if GNUTLS_VERSION_MAJOR < 3 gnutls_transport_set_lowat(tls->session, 0); +#endif tls->plain_chars = plain_chars; if (plain_chars) { @@ -574,7 +576,9 @@ struct socket_context *tls_init_client(struct socket_context *socket_ctx, gnutls_transport_set_ptr(tls->session, (gnutls_transport_ptr)tls); gnutls_transport_set_pull_function(tls->session, (gnutls_pull_func)tls_pull); gnutls_transport_set_push_function(tls->session, (gnutls_push_func)tls_push); +#if GNUTLS_VERSION_MAJOR < 3 gnutls_transport_set_lowat(tls->session, 0); +#endif tls->tls_detect = false; tls->output_pending = false; |