summaryrefslogtreecommitdiff
path: root/sys-auth/nss_ldap/files/nss_ldap-239-tls-security-bug.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-auth/nss_ldap/files/nss_ldap-239-tls-security-bug.patch')
-rw-r--r--sys-auth/nss_ldap/files/nss_ldap-239-tls-security-bug.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/sys-auth/nss_ldap/files/nss_ldap-239-tls-security-bug.patch b/sys-auth/nss_ldap/files/nss_ldap-239-tls-security-bug.patch
deleted file mode 100644
index 1dbd8dc889a1..000000000000
--- a/sys-auth/nss_ldap/files/nss_ldap-239-tls-security-bug.patch
+++ /dev/null
@@ -1,42 +0,0 @@
---- ldap-nss.c 2004-09-28 03:20:11.000000000 +0100
-+++ ldap-nss.c.new 2005-07-04 01:32:12.000000000 +0100
-@@ -330,6 +330,39 @@
-
- timelimit = __session.ls_config->ldc_bind_timelimit;
-
-+#ifdef HAVE_LDAP_START_TLS_S
-+ if (__session.ls_config->ldc_ssl_on == SSL_START_TLS)
-+ {
-+ int version;
-+
-+ if (ldap_get_option
-+ (__session.ls_conn, LDAP_OPT_PROTOCOL_VERSION,
-+ &version) == LDAP_OPT_SUCCESS)
-+ {
-+ if (version < LDAP_VERSION3)
-+ {
-+ version = LDAP_VERSION3;
-+ ldap_set_option (__session.ls_conn, LDAP_OPT_PROTOCOL_VERSION,
-+ &version);
-+ }
-+ }
-+
-+ debug ("==> start_tls");
-+ if (ldap_start_tls_s (__session.ls_conn, NULL, NULL) == LDAP_SUCCESS)
-+ {
-+ debug ("TLS startup succeeded");
-+ }
-+ else
-+ {
-+ debug ("TLS startup failed");
-+ do_close ();
-+ debug ("<== do_open");
-+ return NSS_UNAVAIL;
-+ }
-+ debug ("<== start_tls");
-+ }
-+#endif /* HAVE_LDAP_START_TLS_S */
-+
- return do_bind (ld, timelimit, who, cred, with_sasl);
- }
- #else