xref: /titanic_41/usr/src/cmd/krb5/kadmin/server/misc.h (revision fd9cb95cbb2f626355a60efb9d02c5f0a33c10e6)
1 /*
2  * Copyright (c) 1997-2000 by Sun Microsystems, Inc.
3  * All rights reserved.
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  * $Header: /afs/athena.mit.edu/astaff/project/krbdev/.cvsroot/src/kadmin/\
37  * server/misc.h,v 1.6 1996/07/22 20:28:56 marc Exp $
38  *
39  * $Log: misc.h,v $
40  * Revision 1.6  1996/07/22 20:28:56  marc
41  * this commit includes all the changes on the OV_9510_INTEGRATION and
42  * OV_MERGE branches.  This includes, but is not limited to, the new openvision
43  * admin system, and major changes to gssapi to add functionality, and bring
44  * the implementation in line with rfc1964.  before committing, the
45  * code was built and tested for netbsd and solaris.
46  *
47  * Revision 1.5.4.1  1996/07/18 03:03:40  marc
48  * merged in changes from OV_9510_BP to OV_9510_FINAL1
49  *
50  * Revision 1.5.2.1  1996/06/20  21:57:20  marc
51  * File added to the repository on a branch
52  *
53  * Revision 1.5  1996/05/30  21:13:24  bjaspan
54  * kadm5_get_principal_v1 takes a kadm5_principal_ent_t_v1
55  * add kadm5_get_policy_v1
56  *
57  * Revision 1.4  1996/05/20 21:39:05  bjaspan
58  * rename to kadm5
59  * add kadm5_get_principal_v1
60  *
61  * Revision 1.3  1994/09/13 18:24:41  jik
62  * Back out randkey changes.
63  *
64  * Revision 1.2  1994/09/12  20:26:12  jik
65  * randkey_principal_wrapper now takes a new_kvno option.
66  *
67  * Revision 1.1  1994/08/11  17:00:44  jik
68  * Initial revision
69  *
70  */
71 
72 kadm5_ret_t
73 chpass_principal_wrapper(void *server_handle,
74     krb5_principal principal,
75     char *password);
76 
77 kadm5_ret_t
78 randkey_principal_wrapper(void *server_handle,
79     krb5_principal principal,
80     krb5_keyblock ** key,
81     int *n_keys);
82 
83 kadm5_ret_t
84 kadm5_get_principal_v1(void *server_handle,
85     krb5_principal principal,
86     kadm5_principal_ent_t_v1 * ent);
87 
88 kadm5_ret_t
89 kadm5_get_policy_v1(void *server_handle, kadm5_policy_t name,
90     kadm5_policy_ent_t * ent);
91 
92 /* BSM */
93 extern void audit_kadmind_auth(SVCXPRT *, in_port_t, char *, char *,
94 			    char *, int);
95 extern void audit_kadmind_unauth(SVCXPRT *, in_port_t, char *, char *, char *);
96 
97 #ifdef	__cplusplus
98 }
99 #endif
100 
101 #endif	/* !_MISC_H */
102