comment-ize and change calling convention for _kadm5_set_keys*
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8057 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997-1999 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1997-2000 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -35,6 +35,10 @@
|
|||||||
|
|
||||||
RCSID("$Id$");
|
RCSID("$Id$");
|
||||||
|
|
||||||
|
/*
|
||||||
|
* change the password of `princ' to `password'
|
||||||
|
*/
|
||||||
|
|
||||||
kadm5_ret_t
|
kadm5_ret_t
|
||||||
kadm5_s_chpass_principal(void *server_handle,
|
kadm5_s_chpass_principal(void *server_handle,
|
||||||
krb5_principal princ,
|
krb5_principal princ,
|
||||||
@@ -74,6 +78,10 @@ out:
|
|||||||
return _kadm5_error_code(ret);
|
return _kadm5_error_code(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* change keys for `princ' to `keys'
|
||||||
|
*/
|
||||||
|
|
||||||
kadm5_ret_t
|
kadm5_ret_t
|
||||||
kadm5_s_chpass_principal_with_key(void *server_handle,
|
kadm5_s_chpass_principal_with_key(void *server_handle,
|
||||||
krb5_principal princ,
|
krb5_principal princ,
|
||||||
@@ -90,7 +98,7 @@ kadm5_s_chpass_principal_with_key(void *server_handle,
|
|||||||
ret = context->db->fetch(context->context, context->db, 0, &ent);
|
ret = context->db->fetch(context->context, context->db, 0, &ent);
|
||||||
if(ret == HDB_ERR_NOENTRY)
|
if(ret == HDB_ERR_NOENTRY)
|
||||||
goto out;
|
goto out;
|
||||||
ret = _kadm5_set_keys2(&ent, n_key_data, key_data);
|
ret = _kadm5_set_keys2(context, &ent, n_key_data, key_data);
|
||||||
if(ret)
|
if(ret)
|
||||||
goto out2;
|
goto out2;
|
||||||
ret = _kadm5_set_modifier(context, &ent);
|
ret = _kadm5_set_modifier(context, &ent);
|
||||||
|
Reference in New Issue
Block a user