Constify password
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16044 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -508,7 +508,7 @@ ad_get_cred(kadm5_ad_context *context, const char *password)
|
|||||||
static kadm5_ret_t
|
static kadm5_ret_t
|
||||||
kadm5_ad_chpass_principal(void *server_handle,
|
kadm5_ad_chpass_principal(void *server_handle,
|
||||||
krb5_principal principal,
|
krb5_principal principal,
|
||||||
char *password)
|
const char *password)
|
||||||
{
|
{
|
||||||
kadm5_ad_context *context = server_handle;
|
kadm5_ad_context *context = server_handle;
|
||||||
krb5_data result_code_string, result_string;
|
krb5_data result_code_string, result_string;
|
||||||
@@ -562,7 +562,7 @@ static kadm5_ret_t
|
|||||||
kadm5_ad_create_principal(void *server_handle,
|
kadm5_ad_create_principal(void *server_handle,
|
||||||
kadm5_principal_ent_t entry,
|
kadm5_principal_ent_t entry,
|
||||||
u_int32_t mask,
|
u_int32_t mask,
|
||||||
char *password)
|
const char *password)
|
||||||
{
|
{
|
||||||
kadm5_ad_context *context = server_handle;
|
kadm5_ad_context *context = server_handle;
|
||||||
|
|
||||||
|
@@ -38,7 +38,7 @@ RCSID("$Id$");
|
|||||||
kadm5_ret_t
|
kadm5_ret_t
|
||||||
kadm5_c_chpass_principal(void *server_handle,
|
kadm5_c_chpass_principal(void *server_handle,
|
||||||
krb5_principal princ,
|
krb5_principal princ,
|
||||||
char *password)
|
const char *password)
|
||||||
{
|
{
|
||||||
kadm5_client_context *context = server_handle;
|
kadm5_client_context *context = server_handle;
|
||||||
kadm5_ret_t ret;
|
kadm5_ret_t ret;
|
||||||
|
@@ -38,7 +38,7 @@ RCSID("$Id$");
|
|||||||
static kadm5_ret_t
|
static kadm5_ret_t
|
||||||
change(void *server_handle,
|
change(void *server_handle,
|
||||||
krb5_principal princ,
|
krb5_principal princ,
|
||||||
char *password,
|
const char *password,
|
||||||
int cond)
|
int cond)
|
||||||
{
|
{
|
||||||
kadm5_server_context *context = server_handle;
|
kadm5_server_context *context = server_handle;
|
||||||
|
@@ -40,7 +40,7 @@ RCSID("$Id$");
|
|||||||
kadm5_ret_t
|
kadm5_ret_t
|
||||||
kadm5_chpass_principal(void *server_handle,
|
kadm5_chpass_principal(void *server_handle,
|
||||||
krb5_principal princ,
|
krb5_principal princ,
|
||||||
char *password)
|
const char *password)
|
||||||
{
|
{
|
||||||
return __CALL(chpass_principal, (server_handle, princ, password));
|
return __CALL(chpass_principal, (server_handle, princ, password));
|
||||||
}
|
}
|
||||||
@@ -59,7 +59,7 @@ kadm5_ret_t
|
|||||||
kadm5_create_principal(void *server_handle,
|
kadm5_create_principal(void *server_handle,
|
||||||
kadm5_principal_ent_t princ,
|
kadm5_principal_ent_t princ,
|
||||||
u_int32_t mask,
|
u_int32_t mask,
|
||||||
char *password)
|
const char *password)
|
||||||
{
|
{
|
||||||
return __CALL(create_principal, (server_handle, princ, mask, password));
|
return __CALL(create_principal, (server_handle, princ, mask, password));
|
||||||
}
|
}
|
||||||
|
@@ -37,9 +37,9 @@
|
|||||||
#define __kadm5_privatex_h__
|
#define __kadm5_privatex_h__
|
||||||
|
|
||||||
struct kadm_func {
|
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,
|
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 (*delete_principal) (void*, krb5_principal);
|
||||||
kadm5_ret_t (*destroy) (void*);
|
kadm5_ret_t (*destroy) (void*);
|
||||||
kadm5_ret_t (*flush) (void*);
|
kadm5_ret_t (*flush) (void*);
|
||||||
|
Reference in New Issue
Block a user