Add LDAP_CONST to kerberos bind routines

This commit is contained in:
Kurt Zeilenga 1999-05-19 01:53:09 +00:00
parent ddf8624abc
commit 3b16742eba
2 changed files with 15 additions and 8 deletions

View File

@ -35,7 +35,7 @@
* ldap_kerberos_bind1( ld, "cn=manager, o=university of michigan, c=us" ) * ldap_kerberos_bind1( ld, "cn=manager, o=university of michigan, c=us" )
*/ */
int int
ldap_kerberos_bind1( LDAP *ld, char *dn ) ldap_kerberos_bind1( LDAP *ld, LDAP_CONST char *dn )
{ {
BerElement *ber; BerElement *ber;
char *cred; char *cred;
@ -110,7 +110,7 @@ ldap_kerberos_bind1( LDAP *ld, char *dn )
} }
int int
ldap_kerberos_bind1_s( LDAP *ld, char *dn ) ldap_kerberos_bind1_s( LDAP *ld, LDAP_CONST char *dn )
{ {
int msgid; int msgid;
LDAPMessage *res; 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" ) * ldap_kerberos_bind2( ld, "cn=manager, o=university of michigan, c=us" )
*/ */
int int
ldap_kerberos_bind2( LDAP *ld, char *dn ) ldap_kerberos_bind2( LDAP *ld, LDAP_CONST char *dn )
{ {
BerElement *ber; BerElement *ber;
char *cred; char *cred;
@ -198,7 +198,7 @@ ldap_kerberos_bind2( LDAP *ld, char *dn )
/* synchronous bind to DSA using kerberos */ /* synchronous bind to DSA using kerberos */
int int
ldap_kerberos_bind2_s( LDAP *ld, char *dn ) ldap_kerberos_bind2_s( LDAP *ld, LDAP_CONST char *dn )
{ {
int msgid; int msgid;
LDAPMessage *res; LDAPMessage *res;
@ -220,7 +220,7 @@ ldap_kerberos_bind2_s( LDAP *ld, char *dn )
/* synchronous bind to ldap and DSA using kerberos */ /* synchronous bind to ldap and DSA using kerberos */
int int
ldap_kerberos_bind_s( LDAP *ld, char *dn ) ldap_kerberos_bind_s( LDAP *ld, LDAP_CONST char *dn )
{ {
int err; int err;
@ -241,7 +241,11 @@ ldap_kerberos_bind_s( LDAP *ld, char *dn )
*/ */
char * 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; KTEXT_ST ktxt;
int err; int err;

View File

@ -296,8 +296,11 @@ void free_strarray LDAP_P(( char **sap ));
/* /*
* in kerberos.c * in kerberos.c
*/ */
char *ldap_get_kerberosv4_credentials LDAP_P(( LDAP *ld, char *who, char *service, char *ldap_get_kerberosv4_credentials LDAP_P((
int *len )); LDAP *ld,
LDAP_CONST char *who,
LDAP_CONST char *service,
int *len ));
#endif /* HAVE_KERBEROS */ #endif /* HAVE_KERBEROS */