xref: /illumos-gate/usr/src/lib/krb5/kadm5/clnt/clnt_chpass_util.c (revision 8361acf58a302751348aac091ab09484f3ecfb8c)
1 /*
2  * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
3  *
4  *	Openvision retains the copyright to derivative works of
5  *	this source code.  Do *NOT* create a derivative of this
6  *	source code before consulting with your legal department.
7  *	Do *NOT* integrate *ANY* of this source code into another
8  *	product before consulting with your legal department.
9  *
10  *	For further information, read the top-level Openvision
11  *	copyright which is contained in the top-level MIT Kerberos
12  *	copyright.
13  *
14  * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
15  *
16  */
17 
18 
19 #include <kadm5/admin.h>
20 #include "client_internal.h"
21 
22 kadm5_ret_t kadm5_chpass_principal_util(void *server_handle,
23 					krb5_principal princ,
24 					char *new_pw,
25 					char **ret_pw,
26 					char *msg_ret,
27 					unsigned int msg_len)
28 {
29   kadm5_server_handle_t handle = server_handle;
30 
31   CHECK_HANDLE(server_handle);
32   return _kadm5_chpass_principal_util(handle, handle->lhandle, princ,
33 				      new_pw, ret_pw, msg_ret, msg_len);
34 }
35