From: Lucas De Marchi Date: Fri, 1 Jul 2011 23:50:53 +0000 (-0300) Subject: gweb: Remove call to deprecated GnuTLS function X-Git-Tag: 2.0_alpha~1354 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2383e638e96608671abbc51b94a9a32cf87e1a1e;p=framework%2Fconnectivity%2Fconnman.git gweb: Remove call to deprecated GnuTLS function If we use gnutls 2.12.0 or later it's necessary to call gnutls_transport_set_lowat() to disable the lowat functionality. Since this function is deprecated in new versions of gnutls, call it only if using an older version. --- diff --git a/gweb/giognutls.c b/gweb/giognutls.c index 6856a2a..887109a 100644 --- a/gweb/giognutls.c +++ b/gweb/giognutls.c @@ -444,7 +444,9 @@ GIOChannel *g_io_channel_gnutls_new(int fd) g_io_gnutls_push_func); gnutls_transport_set_pull_function(gnutls_channel->session, g_io_gnutls_pull_func); +#if GNUTLS_VERSION_NUMBER < 0x020c00 gnutls_transport_set_lowat(gnutls_channel->session, 0); +#endif gnutls_priority_set_direct(gnutls_channel->session, "NORMAL:!VERS-TLS1.1:!VERS-TLS1.0", NULL);