]> granicus.if.org Git - sudo/commitdiff
Older Netscape LDAP SDKs don't prototype ldapssl_set_strength()
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 12 Jan 2012 18:10:41 +0000 (13:10 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 12 Jan 2012 18:10:41 +0000 (13:10 -0500)
--HG--
branch : 1.7

ldap.c

diff --git a/ldap.c b/ldap.c
index 47aa9f981f00665e12e0b3034ca3e2510ae403e1..ffd82be27a89b0ffaee771a8633351c9b0ca28f2 100644 (file)
--- a/ldap.c
+++ b/ldap.c
 #include "parse.h"
 #include "lbuf.h"
 
+/* Older Netscape LDAP SDKs don't prototype ldapssl_set_strength() */
+#if defined(HAVE_LDAPSSL_SET_STRENGTH) && !defined(HAVE_LDAP_SSL_H) && !defined(HAVE_MPS_LDAP_SSL_H)
+extern int ldapssl_set_strength(LDAP *ldap, int strength);
+#endif
+
 #ifndef LDAP_OPT_SUCCESS
 # define LDAP_OPT_SUCCESS LDAP_SUCCESS
 #endif