openbsd-ports/databases/ruby-ldap/patches/patch-ldap_c
pea 9dd317bc78 Fix after OpenLDAP upgrade
spotted by landry@
patches from jasper@
2011-01-07 10:32:43 +00:00

15 lines
507 B
Plaintext

$OpenBSD: patch-ldap_c,v 1.1 2011/01/07 10:32:43 pea Exp $
--- ldap.c.orig Mon Nov 8 16:34:48 2010
+++ ldap.c Mon Nov 8 16:35:55 2010
@@ -420,8 +420,8 @@ Init_ldap ()
#ifdef LDAP_OPT_X_TLS
rb_ldap_define_opt (LDAP_OPT_X_TLS);
#endif
-#ifdef LDAP_OPT_X_TLS_PROTOCOL
- rb_ldap_define_opt (LDAP_OPT_X_TLS_PROTOCOL);
+#ifdef LDAP_OPT_X_TLS_PROTOCOL_MIX
+ rb_ldap_define_opt (LDAP_OPT_X_TLS_PROTOCOL_MIN);
#endif
#ifdef LDAP_OPT_X_TLS_CIPHER_SUITE
rb_ldap_define_opt (LDAP_OPT_X_TLS_CIPHER_SUITE);