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:
Assar Westerlund
2000-03-23 22:57:56 +00:00
parent 592be2a027
commit e30b1fc5d9

View File

@@ -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).
* All rights reserved.
*
@@ -35,6 +35,10 @@
RCSID("$Id$");
/*
* change the password of `princ' to `password'
*/
kadm5_ret_t
kadm5_s_chpass_principal(void *server_handle,
krb5_principal princ,
@@ -74,6 +78,10 @@ out:
return _kadm5_error_code(ret);
}
/*
* change keys for `princ' to `keys'
*/
kadm5_ret_t
kadm5_s_chpass_principal_with_key(void *server_handle,
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);
if(ret == HDB_ERR_NOENTRY)
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)
goto out2;
ret = _kadm5_set_modifier(context, &ent);