xref: /titanic_41/usr/src/cmd/krb5/kadmin/server/misc.h (revision 36e852a172cba914383d7341c988128b2c667fbd)
1 /*
2  * Copyright 2008 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 
10 #ifdef	__cplusplus
11 extern "C" {
12 #endif
13 
14 /*
15  * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
16  *
17  *	Openvision retains the copyright to derivative works of
18  *	this source code.  Do *NOT* create a derivative of this
19  *	source code before consulting with your legal department.
20  *	Do *NOT* integrate *ANY* of this source code into another
21  *	product before consulting with your legal department.
22  *
23  *	For further information, read the top-level Openvision
24  *	copyright which is contained in the top-level MIT Kerberos
25  *	copyright.
26  *
27  * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
28  *
29  */
30 
31 
32 /*
33  * Copyright 1994 OpenVision Technologies, Inc., All Rights Reserved
34  *
35  */
36 
37 kadm5_ret_t
38 chpass_principal_wrapper_3(void *server_handle,
39 			   krb5_principal principal,
40 			   krb5_boolean keepold,
41 			   int n_ks_tuple,
42 			   krb5_key_salt_tuple *ks_tuple,
43 			   char *password);
44 
45 kadm5_ret_t
46 randkey_principal_wrapper_3(void *server_handle,
47 			    krb5_principal principal,
48 			    krb5_boolean keepold,
49 			    int n_ks_tuple,
50 			    krb5_key_salt_tuple *ks_tuple,
51 			    krb5_keyblock **keys, int *n_keys);
52 
53 kadm5_ret_t
54 schpw_util_wrapper(void *server_handle, krb5_principal princ,
55 		   char *new_pw, char **ret_pw,
56 		   char *msg_ret, unsigned int msg_len);
57 
58 kadm5_ret_t check_min_life(void *server_handle, krb5_principal principal,
59 			   char *msg_ret, unsigned int msg_len);
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 
69 krb5_error_code process_chpw_request(krb5_context context,
70 				     void *server_handle,
71 				     char *realm, int s,
72 				     krb5_keytab keytab,
73 				     struct sockaddr_in *sockin,
74 				     krb5_data *req, krb5_data *rep);
75 
76 #ifdef SVC_GETARGS
77 void  kadm_1(struct svc_req *, SVCXPRT *);
78 #endif
79 
80 void trunc_name(size_t *len, char **dots);
81 
82 #ifdef	__cplusplus
83 }
84 #endif
85 
86 #endif	/* !_MISC_H */
87 
88