mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
6bc6f3a9e0
- Rename the LIBDANE option DANE because that's the name of the protocol supported by libgnutls-dane and gnutls-cli. Also clarify the option description. - Add an IDN option. - libgnutls-openssl has been removed in 3.4. Some ports used this library in their LIB_DEPENDS but no port actually required it. - Some old API functions have been removed. Ports that used these have been updated or patched to use the new API. - Add a patch to print/cups to prevent overlinking of libgnutls.so. - Bump PORTREVISION on dependent ports. net-im/jabber: This port used the old API to give users fine grained control over which crypto algorithms were used via a configuration file. It's not immediately obvious how to port this to the new API so the port always uses the defaults now. www/hydra: Mark BROKEN. This uses more removed calls than the other ports, is said to be alpha quality and not fully functional and has been abandoned 10 years ago. PR: 207768 Exp-run by: antoine Approved by: portmgr (antoine)
27 lines
950 B
C
27 lines
950 B
C
--- crm/cib/remote.c.orig 2008-08-18 12:32:19 UTC
|
|
+++ crm/cib/remote.c
|
|
@@ -45,13 +45,6 @@ void cib_send_remote_msg(void *session,
|
|
|
|
#ifdef HAVE_GNUTLS_GNUTLS_H
|
|
# define DH_BITS 1024
|
|
-const int tls_kx_order[] = {
|
|
- GNUTLS_KX_ANON_DH,
|
|
- GNUTLS_KX_DHE_RSA,
|
|
- GNUTLS_KX_DHE_DSS,
|
|
- GNUTLS_KX_RSA,
|
|
- 0
|
|
-};
|
|
gnutls_dh_params dh_params;
|
|
gnutls_anon_server_credentials anon_cred;
|
|
char *cib_send_tls(gnutls_session *session, HA_Message *msg);
|
|
@@ -83,8 +76,7 @@ create_tls_session(int csock)
|
|
session = (gnutls_session*)gnutls_malloc(sizeof(gnutls_session));
|
|
|
|
gnutls_init(session, GNUTLS_SERVER);
|
|
- gnutls_set_default_priority(*session);
|
|
- gnutls_kx_set_priority (*session, tls_kx_order);
|
|
+ gnutls_priority_set_direct (*session, "NORMAL:-KX-ALL:+ANON-DH:+DHE-RSA:+DHE-DSS:+RSA", NULL);
|
|
gnutls_credentials_set(*session, GNUTLS_CRD_ANON, anon_cred);
|
|
gnutls_transport_set_ptr(*session,
|
|
(gnutls_transport_ptr) GINT_TO_POINTER(csock));
|