Constify password

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16044 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-09-08 11:30:53 +00:00
parent 6d0ecf1803
commit ee050659b1
5 changed files with 8 additions and 8 deletions

View File

@@ -508,7 +508,7 @@ ad_get_cred(kadm5_ad_context *context, const char *password)
static kadm5_ret_t
kadm5_ad_chpass_principal(void *server_handle,
krb5_principal principal,
char *password)
const char *password)
{
kadm5_ad_context *context = server_handle;
krb5_data result_code_string, result_string;
@@ -562,7 +562,7 @@ static kadm5_ret_t
kadm5_ad_create_principal(void *server_handle,
kadm5_principal_ent_t entry,
u_int32_t mask,
char *password)
const char *password)
{
kadm5_ad_context *context = server_handle;

View File

@@ -38,7 +38,7 @@ RCSID("$Id$");
kadm5_ret_t
kadm5_c_chpass_principal(void *server_handle,
krb5_principal princ,
char *password)
const char *password)
{
kadm5_client_context *context = server_handle;
kadm5_ret_t ret;

View File

@@ -38,7 +38,7 @@ RCSID("$Id$");
static kadm5_ret_t
change(void *server_handle,
krb5_principal princ,
char *password,
const char *password,
int cond)
{
kadm5_server_context *context = server_handle;

View File

@@ -40,7 +40,7 @@ RCSID("$Id$");
kadm5_ret_t
kadm5_chpass_principal(void *server_handle,
krb5_principal princ,
char *password)
const char *password)
{
return __CALL(chpass_principal, (server_handle, princ, password));
}
@@ -59,7 +59,7 @@ kadm5_ret_t
kadm5_create_principal(void *server_handle,
kadm5_principal_ent_t princ,
u_int32_t mask,
char *password)
const char *password)
{
return __CALL(create_principal, (server_handle, princ, mask, password));
}

View File

@@ -37,9 +37,9 @@
#define __kadm5_privatex_h__
struct kadm_func {
kadm5_ret_t (*chpass_principal) (void *, krb5_principal, char*);
kadm5_ret_t (*chpass_principal) (void *, krb5_principal, const char*);
kadm5_ret_t (*create_principal) (void*, kadm5_principal_ent_t,
u_int32_t, char*);
u_int32_t, const char*);
kadm5_ret_t (*delete_principal) (void*, krb5_principal);
kadm5_ret_t (*destroy) (void*);
kadm5_ret_t (*flush) (void*);