[Commits] [SCM] claws branch, master, updated. 3.14.0-30-gd6d4958
ticho at claws-mail.org
ticho at claws-mail.org
Thu Aug 25 10:47:26 CEST 2016
The branch, master has been updated
via d6d495869a719e44a11785e38b8deed8ad09ab96 (commit)
from 6298f434d40a5becd305eb3dba447b4888ef8327 (commit)
Summary of changes:
src/common/ssl.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit d6d495869a719e44a11785e38b8deed8ad09ab96
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Thu Aug 25 10:46:34 2016 +0200
Always set GnuTLS priority string.
Closes bug #3680.
diff --git a/src/common/ssl.c b/src/common/ssl.c
index 5c2149f..3c85a1d 100644
--- a/src/common/ssl.c
+++ b/src/common/ssl.c
@@ -57,6 +57,12 @@ typedef struct _thread_data {
} thread_data;
#endif
+#if GNUTLS_VERSION_NUMBER < 0x030400
+#define DEFAULT_GNUTLS_PRIORITY "NORMAL:-VERS-SSL3.0"
+#else
+#define DEFAULT_GNUTLS_PRIORITY "NORMAL"
+#endif
+
#if GNUTLS_VERSION_NUMBER <= 0x020c00
static int gnutls_client_cert_cb(gnutls_session_t session,
const gnutls_datum_t *req_ca_rdn, int nreqs,
@@ -330,11 +336,10 @@ gboolean ssl_init_socket(SockInfo *sockinfo)
debug_print("Setting GnuTLS priority to %s, status = %d\n",
sockinfo->gnutls_priority, r);
}
-#if GNUTLS_VERSION_NUMBER < 0x030400
else {
- gnutls_priority_set_direct(session, "NORMAL:-VERS-SSL3.0", NULL);
+ gnutls_priority_set_direct(session, DEFAULT_GNUTLS_PRIORITY, NULL);
}
-#endif
+
gnutls_record_disable_padding(session);
gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE, xcred);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list