Imported <ldap.h> in <ldap_pvt.h> so ldap_pvt_sasl_bind() has necessary

types. Changed const sasl_callback_t * to LDAP_CONST sasl_callback_t *.
This commit is contained in:
Luke Howard 2000-01-05 12:56:17 +00:00
parent b5e2ad7435
commit 5a0bbd7eed
2 changed files with 3 additions and 2 deletions

View file

@ -109,11 +109,12 @@ LIBLDAP_F (int) ldap_pvt_unhex( int c );
/* sasl.c */
#include <sasl.h>
#include <ldap.h>
LIBLDAP_F (int) ldap_pvt_sasl_init LDAP_P(( void )); /* clientside init */
LIBLDAP_F (int) ldap_pvt_sasl_install LDAP_P(( Sockbuf *, void * ));
LIBLDAP_F (int) ldap_pvt_sasl_err2ldap LDAP_P(( int ));
LIBLDAP_F (int) ldap_pvt_sasl_bind LDAP_P(( LDAP *, LDAP_CONST char *, LDAP_CONST char *, const sasl_callback_t *, LDAPControl **, LDAPControl ** ));
LIBLDAP_F (int) ldap_pvt_sasl_bind LDAP_P(( LDAP *, LDAP_CONST char *, LDAP_CONST char *, LDAP_CONST sasl_callback_t *, LDAPControl **, LDAPControl ** ));
#endif /* HAVE_CYRUS_SASL */
/* search.c */

View file

@ -608,7 +608,7 @@ ldap_pvt_sasl_bind(
LDAP *ld,
LDAP_CONST char *dn,
LDAP_CONST char *mechanism,
const sasl_callback_t *callbacks,
LDAP_CONST sasl_callback_t *callbacks,
LDAPControl **sctrls,
LDAPControl **cctrls )
{