Ticket #7742: patch.txt

File patch.txt, 789 bytes (added by janus, 11 years ago)

Patch to fix the issue. The SECURE256 ciphersuites requested by filezilla do not have common ciphersuites with the common servers (SECURE256 got more strict in gnutls3).

Line 
1diff --git a/src/engine/tlssocket.cpp b/src/engine/tlssocket.cpp
2index e9a5105..7ddb1ae 100644
3--- a/src/engine/tlssocket.cpp
4+++ b/src/engine/tlssocket.cpp
5@@ -97,7 +97,7 @@ bool CTlsSocket::Init()
6 return false;
7 }
8
9- res = gnutls_priority_set_direct(m_session, "SECURE256:+CTYPE-X509:-CTYPE-OPENPGP", 0);
10+ res = gnutls_priority_set_direct(m_session, "NORMAL:+CTYPE-X509:-CTYPE-OPENPGP", 0);
11 if (res)
12 {
13 LogError(res);
14@@ -113,7 +113,9 @@ bool CTlsSocket::Init()
15 gnutls_transport_set_push_function(m_session, PushFunction);
16 gnutls_transport_set_pull_function(m_session, PullFunction);
17 gnutls_transport_set_ptr(m_session, (gnutls_transport_ptr_t)this);
18+#if GNUTLS_VERSION_MAJOR < 3
19 gnutls_transport_set_lowat(m_session, 0);
20+#endif
21
22 m_shutdown_requested = false;
23