diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-07-24 22:51:03 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-07-24 22:51:03 +0200 |
commit | 14030eaee370dcc42a96e7f30b0a9f63a2530266 (patch) | |
tree | 6f797c9099ceaa6f1460345fee98f50c4e163e3f /gweb | |
parent | 155b96630ae27ae417f30a6a09491b8e2663572f (diff) | |
download | connman-14030eaee370dcc42a96e7f30b0a9f63a2530266.tar.gz connman-14030eaee370dcc42a96e7f30b0a9f63a2530266.tar.bz2 connman-14030eaee370dcc42a96e7f30b0a9f63a2530266.zip |
gweb: Fix gnutls_priority_set_direct() for various GnuTLS versions
Diffstat (limited to 'gweb')
-rw-r--r-- | gweb/giognutls.c | 8 |
1 files changed, 5 insertions, 3 deletions
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, |