diff options
Diffstat (limited to 'net/net6/files/patch-src-encrypt.cpp')
-rw-r--r-- | net/net6/files/patch-src-encrypt.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/net6/files/patch-src-encrypt.cpp b/net/net6/files/patch-src-encrypt.cpp new file mode 100644 index 000000000000..8576190a1249 --- /dev/null +++ b/net/net6/files/patch-src-encrypt.cpp @@ -0,0 +1,14 @@ +--- src/encrypt.cpp.orig 2011-09-28 11:15:10 UTC ++++ src/encrypt.cpp +@@ -175,10 +175,7 @@ net6::tcp_encrypted_socket_base:: + gnutls_session_t sess): + tcp_client_socket(cobj), session(sess), state(DEFAULT) + { +- const int kx_prio[] = { GNUTLS_KX_ANON_DH, 0 }; +- +- gnutls_set_default_priority(session); +- gnutls_kx_set_priority(session, kx_prio); ++ gnutls_priority_set_direct(session, "NORMAL:-KX-ALL:+ANON-DH", NULL); + + gnutls_transport_set_ptr( + session, |