xref: /illumos-gate/usr/src/cmd/krb5/kadmin/server/misc.h (revision 533affcbc7fc4d0c8132976ea454aaa715fe2307)
1 /*
2  * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
3  */
4 
5 #ifndef _MISC_H
6 #define	_MISC_H
7 
8 
9 #ifdef	__cplusplus
10 extern "C" {
11 #endif
12 
13 /*
14  * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
15  *
16  *	Openvision retains the copyright to derivative works of
17  *	this source code.  Do *NOT* create a derivative of this
18  *	source code before consulting with your legal department.
19  *	Do *NOT* integrate *ANY* of this source code into another
20  *	product before consulting with your legal department.
21  *
22  *	For further information, read the top-level Openvision
23  *	copyright which is contained in the top-level MIT Kerberos
24  *	copyright.
25  *
26  * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
27  *
28  */
29 
30 
31 /*
32  * Copyright 1994 OpenVision Technologies, Inc., All Rights Reserved
33  *
34  */
35 
36 kadm5_ret_t
37 chpass_principal_wrapper_3(void *server_handle,
38 			   krb5_principal principal,
39 			   krb5_boolean keepold,
40 			   int n_ks_tuple,
41 			   krb5_key_salt_tuple *ks_tuple,
42 			   char *password);
43 
44 kadm5_ret_t
45 randkey_principal_wrapper_3(void *server_handle,
46 			    krb5_principal principal,
47 			    krb5_boolean keepold,
48 			    int n_ks_tuple,
49 			    krb5_key_salt_tuple *ks_tuple,
50 			    krb5_keyblock **keys, int *n_keys);
51 
52 kadm5_ret_t
53 schpw_util_wrapper(void *server_handle, krb5_principal princ,
54 		   char *new_pw, char **ret_pw,
55 		   char *msg_ret, unsigned int msg_len);
56 
57 kadm5_ret_t kadm5_get_principal_v1(void *server_handle,
58 				   krb5_principal principal,
59 				   kadm5_principal_ent_t_v1 *ent);
60 
61 kadm5_ret_t kadm5_get_policy_v1(void *server_handle, kadm5_policy_t name,
62 				kadm5_policy_ent_t *ent);
63 
64 
65 krb5_error_code process_chpw_request(krb5_context context,
66 				     void *server_handle,
67 				     char *realm, int s,
68 				     krb5_keytab keytab,
69 				     struct sockaddr_in *sockin,
70 				     krb5_data *req, krb5_data *rep);
71 
72 #ifdef SVC_GETARGS
73 void  kadm_1(struct svc_req *, SVCXPRT *);
74 #endif
75 
76 void trunc_name(size_t *len, char **dots);
77 
78 #ifdef	__cplusplus
79 }
80 #endif
81 
82 #endif	/* !_MISC_H */
83 
84