]> granicus.if.org Git - sudo/commitdiff
include <mps/ldap_ssl.h> in ldap.c if available
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 17 Jan 2008 20:44:28 +0000 (20:44 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 17 Jan 2008 20:44:28 +0000 (20:44 +0000)
config.h.in
configure
configure.in
ldap.c

index f4ab5df502c3d1fc03557e3b3b197af4b762471e..d9a0e81e914f9a377ab2b6197def09b949fbd938 100644 (file)
 /* Define to 1 if you have the `mkstemp' function. */
 #undef HAVE_MKSTEMP
 
+/* Define to 1 if you have the <mps/ldap_ssl.h> header file. */
+#undef HAVE_MPS_LDAP_SSL_H
+
 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
 #undef HAVE_NDIR_H
 
index c56e0bdef23c37c03193903a310f417430ee0d37..21f7b16a455ad9a4f05e7b416330fb8fb17e8dad 100755 (executable)
--- a/configure
+++ b/configure
@@ -22146,7 +22146,8 @@ fi
 done
 
 
-for ac_header in sasl/sasl.h
+
+for ac_header in sasl/sasl.h mps/ldap_ssl.h
 do
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
index 60349e805c0f3cdd8762caa7f3d8ccb1b458bd08..d3641d0ced5e1b5ac824f85e42d3f1fddb26cc0f 100644 (file)
@@ -2313,7 +2313,7 @@ if test ${with_ldap-'no'} != "no"; then
     AC_DEFINE(HAVE_LBER_H)])
 
     AC_CHECK_FUNCS(ldap_initialize ldap_start_tls_s ldap_sasl_interactive_bind_s ldapssl_init ldapssl_set_strength ldap_search_ext_s ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s)
-    AC_CHECK_HEADERS([sasl/sasl.h])
+    AC_CHECK_HEADERS([sasl/sasl.h] [mps/ldap_ssl.h])
 
     AC_CHECK_LIB(gssapi, gss_krb5_ccache_name,
        AC_DEFINE(HAVE_GSS_KRB5_CCACHE_NAME)
diff --git a/ldap.c b/ldap.c
index bb9ce296a6812db73eb5ddc2df33267aebfc66f9..bea40aa681be135a9c521ad4f4f8494511797d80 100644 (file)
--- a/ldap.c
+++ b/ldap.c
@@ -54,6 +54,9 @@
 # include <lber.h>
 #endif
 #include <ldap.h>
+#ifdef HAVE_MPS_LDAP_SSL_H
+# include <mps/ldap_ssl.h>
+#endif
 #ifdef HAVE_LDAP_SASL_INTERACTIVE_BIND_S
 # ifdef HAVE_SASL_SASL_H
 #  include <sasl/sasl.h>