From: Todd C. Miller Date: Thu, 12 Jan 2012 18:10:41 +0000 (-0500) Subject: Older Netscape LDAP SDKs don't prototype ldapssl_set_strength() X-Git-Tag: SUDO_1_7_9~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=737486b93d524fc75d90cab9a3d1300e855a87b0;p=sudo Older Netscape LDAP SDKs don't prototype ldapssl_set_strength() --HG-- branch : 1.7 --- diff --git a/ldap.c b/ldap.c index 47aa9f981..ffd82be27 100644 --- a/ldap.c +++ b/ldap.c @@ -80,6 +80,11 @@ #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