From: Marcel Holtmann Date: Sun, 24 Jul 2011 20:51:03 +0000 (+0200) Subject: gweb: Fix gnutls_priority_set_direct() for various GnuTLS versions X-Git-Tag: 0.77~91 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14030eaee370dcc42a96e7f30b0a9f63a2530266;p=platform%2Fupstream%2Fconnman.git gweb: Fix gnutls_priority_set_direct() for various GnuTLS versions --- diff --git a/gweb/giognutls.c b/gweb/giognutls.c index db061b1f..a9b734fa 100644 --- a/gweb/giognutls.c +++ b/gweb/giognutls.c @@ -446,11 +446,13 @@ GIOChannel *g_io_channel_gnutls_new(int fd) 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-TLS-ALL:+VERS-TLS1.0:+VERS-SSL3.0:%COMPAT", - NULL); + "NORMAL:%COMPAT", NULL); +#else + gnutls_priority_set_direct(gnutls_channel->session, + "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.0:+VERS-SSL3.0:%COMPAT", NULL); +#endif gnutls_certificate_allocate_credentials(&gnutls_channel->cred); gnutls_credentials_set(gnutls_channel->session,