summaryrefslogtreecommitdiff
path: root/include/apr_ldap.h.in
diff options
context:
space:
mode:
authorminfrin <minfrin@13f79535-47bb-0310-9956-ffa450edef68>2004-08-03 19:31:45 +0000
committerminfrin <minfrin@13f79535-47bb-0310-9956-ffa450edef68>2004-08-03 19:31:45 +0000
commitb9f309c4b008654ffccde32cb862689ae88ef2c3 (patch)
tree86843a6b054b8bc4242d2638dada07d9221408e9 /include/apr_ldap.h.in
parentfdbe830d1da17f727d8af0d8856f457ed3d76ee4 (diff)
downloadlibapr-util-b9f309c4b008654ffccde32cb862689ae88ef2c3.tar.gz
Remove support for LDAP v2.0 SDK toolkits. This will be added
back properly later assuming there is demand for it. In the mean time, please use an LDAP v3.0 SDK toolkit. This has the side effect of removing the macro fooness in apr_ldap. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@59108 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_ldap.h.in')
-rw-r--r--include/apr_ldap.h.in26
1 files changed, 8 insertions, 18 deletions
diff --git a/include/apr_ldap.h.in b/include/apr_ldap.h.in
index bf1ab2b6..ac92dd0f 100644
--- a/include/apr_ldap.h.in
+++ b/include/apr_ldap.h.in
@@ -118,27 +118,17 @@
@ldap_h@
#endif
-/* LDAPv2 SDKs don't use const parameters in their prototypes.
- * LDAPv3 SDKs do use const. When compiling with LDAPv2 SDKs, const_cast
- * casts away the constness, but won't under LDAPv3
- */
-#if LDAP_VERSION_MAX <= 2
-#define const_cast(x) ((char *)(x))
-#else
-#define const_cast(x) (x)
-#endif
-
#include "apr_ldap_url.h"
#include "apr_ldap_init.h"
-/* Define some errors that are mysteriously gone from OpenLDAP 2.x */
-#ifndef LDAP_URL_ERR_NOTLDAP
-#define LDAP_URL_ERR_NOTLDAP LDAP_URL_ERR_BADSCHEME
-#endif
-
-#ifndef LDAP_URL_ERR_NODN
-#define LDAP_URL_ERR_NODN LDAP_URL_ERR_BADURL
-#endif
+/* Note: Macros defining const casting has been removed in APR v1.0,
+ * pending real support for LDAP v2.0 toolkits.
+ *
+ * In the mean time, please use an LDAP v3.0 toolkit.
+ */
+#if LDAP_VERSION_MAX <= 2
+#error Support for LDAP v2.0 toolkits has been removed from apr-util. Please use an LDAP v3.0 toolkit.
+#endif
/**
* This structure allows the C LDAP API error codes to be returned