xref: /titanic_52/usr/src/cmd/krb5/kadmin/server/misc.h (revision 67e3a03ed4a2813074d36330f062ed6e593a4937)
1 /*
2  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 #ifndef _MISC_H
7 #define	_MISC_H
8 
9 #pragma ident	"%Z%%M%	%I%	%E% SMI"
10 
11 #ifdef	__cplusplus
12 extern "C" {
13 #endif
14 
15 /*
16  * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
17  *
18  *	Openvision retains the copyright to derivative works of
19  *	this source code.  Do *NOT* create a derivative of this
20  *	source code before consulting with your legal department.
21  *	Do *NOT* integrate *ANY* of this source code into another
22  *	product before consulting with your legal department.
23  *
24  *	For further information, read the top-level Openvision
25  *	copyright which is contained in the top-level MIT Kerberos
26  *	copyright.
27  *
28  * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
29  *
30  */
31 
32 
33 /*
34  * Copyright 1994 OpenVision Technologies, Inc., All Rights Reserved
35  *
36  */
37 
38 kadm5_ret_t
39 chpass_principal_wrapper_3(void *server_handle,
40 			   krb5_principal principal,
41 			   krb5_boolean keepold,
42 			   int n_ks_tuple,
43 			   krb5_key_salt_tuple *ks_tuple,
44 			   char *password);
45 
46 kadm5_ret_t
47 randkey_principal_wrapper_3(void *server_handle,
48 			    krb5_principal principal,
49 			    krb5_boolean keepold,
50 			    int n_ks_tuple,
51 			    krb5_key_salt_tuple *ks_tuple,
52 			    krb5_keyblock **keys, int *n_keys);
53 
54 kadm5_ret_t
55 chpass_util_wrapper(void *server_handle, krb5_principal princ,
56 		    char *new_pw, char **ret_pw,
57 		    char *msg_ret, unsigned int msg_len);
58 
59 kadm5_ret_t check_min_life(void *server_handle, krb5_principal principal);
60 
61 kadm5_ret_t kadm5_get_principal_v1(void *server_handle,
62 				   krb5_principal principal,
63 				   kadm5_principal_ent_t_v1 *ent);
64 
65 kadm5_ret_t kadm5_get_policy_v1(void *server_handle, kadm5_policy_t name,
66 				kadm5_policy_ent_t *ent);
67 
68 #ifdef SVC_GETARGS
69 void  kadm_1(struct svc_req *, SVCXPRT *);
70 #endif
71 
72 #ifdef	__cplusplus
73 }
74 #endif
75 
76 #endif	/* !_MISC_H */
77 
78