From 3b16742ebae81011ab6314a95d267b117c27b784 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 19 May 1999 01:53:09 +0000 Subject: [PATCH] Add LDAP_CONST to kerberos bind routines --- libraries/libldap/kbind.c | 16 ++++++++++------ libraries/libldap/ldap-int.h | 7 +++++-- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/libraries/libldap/kbind.c b/libraries/libldap/kbind.c index 9a0f4a1e00..68f8db3ee3 100644 --- a/libraries/libldap/kbind.c +++ b/libraries/libldap/kbind.c @@ -35,7 +35,7 @@ * ldap_kerberos_bind1( ld, "cn=manager, o=university of michigan, c=us" ) */ int -ldap_kerberos_bind1( LDAP *ld, char *dn ) +ldap_kerberos_bind1( LDAP *ld, LDAP_CONST char *dn ) { BerElement *ber; char *cred; @@ -110,7 +110,7 @@ ldap_kerberos_bind1( LDAP *ld, char *dn ) } int -ldap_kerberos_bind1_s( LDAP *ld, char *dn ) +ldap_kerberos_bind1_s( LDAP *ld, LDAP_CONST char *dn ) { int msgid; LDAPMessage *res; @@ -141,7 +141,7 @@ ldap_kerberos_bind1_s( LDAP *ld, char *dn ) * ldap_kerberos_bind2( ld, "cn=manager, o=university of michigan, c=us" ) */ int -ldap_kerberos_bind2( LDAP *ld, char *dn ) +ldap_kerberos_bind2( LDAP *ld, LDAP_CONST char *dn ) { BerElement *ber; char *cred; @@ -198,7 +198,7 @@ ldap_kerberos_bind2( LDAP *ld, char *dn ) /* synchronous bind to DSA using kerberos */ int -ldap_kerberos_bind2_s( LDAP *ld, char *dn ) +ldap_kerberos_bind2_s( LDAP *ld, LDAP_CONST char *dn ) { int msgid; LDAPMessage *res; @@ -220,7 +220,7 @@ ldap_kerberos_bind2_s( LDAP *ld, char *dn ) /* synchronous bind to ldap and DSA using kerberos */ int -ldap_kerberos_bind_s( LDAP *ld, char *dn ) +ldap_kerberos_bind_s( LDAP *ld, LDAP_CONST char *dn ) { int err; @@ -241,7 +241,11 @@ ldap_kerberos_bind_s( LDAP *ld, char *dn ) */ char * -ldap_get_kerberosv4_credentials( LDAP *ld, char *who, char *service, int *len ) +ldap_get_kerberosv4_credentials( + LDAP *ld, + LDAP_CONST char *who, + LDAP_CONST char *service, + int *len ) { KTEXT_ST ktxt; int err; diff --git a/libraries/libldap/ldap-int.h b/libraries/libldap/ldap-int.h index bef3ba50f1..816f150cf5 100644 --- a/libraries/libldap/ldap-int.h +++ b/libraries/libldap/ldap-int.h @@ -296,8 +296,11 @@ void free_strarray LDAP_P(( char **sap )); /* * in kerberos.c */ -char *ldap_get_kerberosv4_credentials LDAP_P(( LDAP *ld, char *who, char *service, - int *len )); +char *ldap_get_kerberosv4_credentials LDAP_P(( + LDAP *ld, + LDAP_CONST char *who, + LDAP_CONST char *service, + int *len )); #endif /* HAVE_KERBEROS */ -- 2.39.5