xref: /onnv-gate/usr/src/cmd/krb5/kadmin/server/misc.h (revision 0:68f95e015346)
1*0Sstevel@tonic-gate /*
2*0Sstevel@tonic-gate  * Copyright (c) 1997-2000 by Sun Microsystems, Inc.
3*0Sstevel@tonic-gate  * All rights reserved.
4*0Sstevel@tonic-gate  */
5*0Sstevel@tonic-gate 
6*0Sstevel@tonic-gate #ifndef _MISC_H
7*0Sstevel@tonic-gate #define	_MISC_H
8*0Sstevel@tonic-gate 
9*0Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
10*0Sstevel@tonic-gate 
11*0Sstevel@tonic-gate #ifdef	__cplusplus
12*0Sstevel@tonic-gate extern "C" {
13*0Sstevel@tonic-gate #endif
14*0Sstevel@tonic-gate 
15*0Sstevel@tonic-gate /*
16*0Sstevel@tonic-gate  * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
17*0Sstevel@tonic-gate  *
18*0Sstevel@tonic-gate  *	Openvision retains the copyright to derivative works of
19*0Sstevel@tonic-gate  *	this source code.  Do *NOT* create a derivative of this
20*0Sstevel@tonic-gate  *	source code before consulting with your legal department.
21*0Sstevel@tonic-gate  *	Do *NOT* integrate *ANY* of this source code into another
22*0Sstevel@tonic-gate  *	product before consulting with your legal department.
23*0Sstevel@tonic-gate  *
24*0Sstevel@tonic-gate  *	For further information, read the top-level Openvision
25*0Sstevel@tonic-gate  *	copyright which is contained in the top-level MIT Kerberos
26*0Sstevel@tonic-gate  *	copyright.
27*0Sstevel@tonic-gate  *
28*0Sstevel@tonic-gate  * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
29*0Sstevel@tonic-gate  *
30*0Sstevel@tonic-gate  */
31*0Sstevel@tonic-gate 
32*0Sstevel@tonic-gate 
33*0Sstevel@tonic-gate /*
34*0Sstevel@tonic-gate  * Copyright 1994 OpenVision Technologies, Inc., All Rights Reserved
35*0Sstevel@tonic-gate  *
36*0Sstevel@tonic-gate  * $Header: /afs/athena.mit.edu/astaff/project/krbdev/.cvsroot/src/kadmin/\
37*0Sstevel@tonic-gate  * server/misc.h,v 1.6 1996/07/22 20:28:56 marc Exp $
38*0Sstevel@tonic-gate  *
39*0Sstevel@tonic-gate  * $Log: misc.h,v $
40*0Sstevel@tonic-gate  * Revision 1.6  1996/07/22 20:28:56  marc
41*0Sstevel@tonic-gate  * this commit includes all the changes on the OV_9510_INTEGRATION and
42*0Sstevel@tonic-gate  * OV_MERGE branches.  This includes, but is not limited to, the new openvision
43*0Sstevel@tonic-gate  * admin system, and major changes to gssapi to add functionality, and bring
44*0Sstevel@tonic-gate  * the implementation in line with rfc1964.  before committing, the
45*0Sstevel@tonic-gate  * code was built and tested for netbsd and solaris.
46*0Sstevel@tonic-gate  *
47*0Sstevel@tonic-gate  * Revision 1.5.4.1  1996/07/18 03:03:40  marc
48*0Sstevel@tonic-gate  * merged in changes from OV_9510_BP to OV_9510_FINAL1
49*0Sstevel@tonic-gate  *
50*0Sstevel@tonic-gate  * Revision 1.5.2.1  1996/06/20  21:57:20  marc
51*0Sstevel@tonic-gate  * File added to the repository on a branch
52*0Sstevel@tonic-gate  *
53*0Sstevel@tonic-gate  * Revision 1.5  1996/05/30  21:13:24  bjaspan
54*0Sstevel@tonic-gate  * kadm5_get_principal_v1 takes a kadm5_principal_ent_t_v1
55*0Sstevel@tonic-gate  * add kadm5_get_policy_v1
56*0Sstevel@tonic-gate  *
57*0Sstevel@tonic-gate  * Revision 1.4  1996/05/20 21:39:05  bjaspan
58*0Sstevel@tonic-gate  * rename to kadm5
59*0Sstevel@tonic-gate  * add kadm5_get_principal_v1
60*0Sstevel@tonic-gate  *
61*0Sstevel@tonic-gate  * Revision 1.3  1994/09/13 18:24:41  jik
62*0Sstevel@tonic-gate  * Back out randkey changes.
63*0Sstevel@tonic-gate  *
64*0Sstevel@tonic-gate  * Revision 1.2  1994/09/12  20:26:12  jik
65*0Sstevel@tonic-gate  * randkey_principal_wrapper now takes a new_kvno option.
66*0Sstevel@tonic-gate  *
67*0Sstevel@tonic-gate  * Revision 1.1  1994/08/11  17:00:44  jik
68*0Sstevel@tonic-gate  * Initial revision
69*0Sstevel@tonic-gate  *
70*0Sstevel@tonic-gate  */
71*0Sstevel@tonic-gate 
72*0Sstevel@tonic-gate kadm5_ret_t
73*0Sstevel@tonic-gate chpass_principal_wrapper(void *server_handle,
74*0Sstevel@tonic-gate     krb5_principal principal,
75*0Sstevel@tonic-gate     char *password);
76*0Sstevel@tonic-gate 
77*0Sstevel@tonic-gate kadm5_ret_t
78*0Sstevel@tonic-gate randkey_principal_wrapper(void *server_handle,
79*0Sstevel@tonic-gate     krb5_principal principal,
80*0Sstevel@tonic-gate     krb5_keyblock ** key,
81*0Sstevel@tonic-gate     int *n_keys);
82*0Sstevel@tonic-gate 
83*0Sstevel@tonic-gate kadm5_ret_t
84*0Sstevel@tonic-gate kadm5_get_principal_v1(void *server_handle,
85*0Sstevel@tonic-gate     krb5_principal principal,
86*0Sstevel@tonic-gate     kadm5_principal_ent_t_v1 * ent);
87*0Sstevel@tonic-gate 
88*0Sstevel@tonic-gate kadm5_ret_t
89*0Sstevel@tonic-gate kadm5_get_policy_v1(void *server_handle, kadm5_policy_t name,
90*0Sstevel@tonic-gate     kadm5_policy_ent_t * ent);
91*0Sstevel@tonic-gate 
92*0Sstevel@tonic-gate /* BSM */
93*0Sstevel@tonic-gate extern void audit_kadmind_auth(SVCXPRT *, in_port_t, char *, char *,
94*0Sstevel@tonic-gate 			    char *, int);
95*0Sstevel@tonic-gate extern void audit_kadmind_unauth(SVCXPRT *, in_port_t, char *, char *, char *);
96*0Sstevel@tonic-gate 
97*0Sstevel@tonic-gate #ifdef	__cplusplus
98*0Sstevel@tonic-gate }
99*0Sstevel@tonic-gate #endif
100*0Sstevel@tonic-gate 
101*0Sstevel@tonic-gate #endif	/* !_MISC_H */
102