Not being able to compile apr-util was starting to get annoying :)
--
Colm MacC�rthaigh Public Key: [EMAIL PROTECTED]
Index: ldap/apr_ldap_option.c
===================================================================
--- ldap/apr_ldap_option.c (revision 125750)
+++ ldap/apr_ldap_option.c (working copy)
@@ -242,8 +242,7 @@
/* Microsoft SDK */
#if APR_HAS_MICROSOFT_LDAPSDK
if (tls == APR_LDAP_NONE) {
- mode = 0;
- result->rc = ldap_set_option(ldap, LDAP_OPT_SSL, &mode);
+ result->rc = ldap_set_option(ldap, LDAP_OPT_SSL, LDAP_OPT_OFF);
if (result->rc != LDAP_SUCCESS) {
result->reason = "LDAP: an attempt to set LDAP_OPT_SSL off "
"failed.";
@@ -251,8 +250,7 @@
}
}
else if (tls == APR_LDAP_SSL) {
- mode = 1;
- result->rc = ldap_set_option(ldap, LDAP_OPT_SSL, &mode);
+ result->rc = ldap_set_option(ldap, LDAP_OPT_SSL, LDAP_OPT_ON);
if (result->rc != LDAP_SUCCESS) {
result->reason = "LDAP: an attempt to set LDAP_OPT_SSL on "
"failed.";
@@ -514,7 +512,7 @@
/* Microsoft SDK use the registry certificate store - error out
* here with a message explaining this. */
result->reason = "LDAP: CA certificates cannot be set using this method, "
- "as they are stored in the registry instead."
+ "as they are stored in the registry instead.";
result->rc = -1;
#endif