1*7c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
2*7c478bd9Sstevel@tonic-gate 
3*7c478bd9Sstevel@tonic-gate /*
4*7c478bd9Sstevel@tonic-gate  * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
5*7c478bd9Sstevel@tonic-gate  *
6*7c478bd9Sstevel@tonic-gate  *	Openvision retains the copyright to derivative works of
7*7c478bd9Sstevel@tonic-gate  *	this source code.  Do *NOT* create a derivative of this
8*7c478bd9Sstevel@tonic-gate  *	source code before consulting with your legal department.
9*7c478bd9Sstevel@tonic-gate  *	Do *NOT* integrate *ANY* of this source code into another
10*7c478bd9Sstevel@tonic-gate  *	product before consulting with your legal department.
11*7c478bd9Sstevel@tonic-gate  *
12*7c478bd9Sstevel@tonic-gate  *	For further information, read the top-level Openvision
13*7c478bd9Sstevel@tonic-gate  *	copyright which is contained in the top-level MIT Kerberos
14*7c478bd9Sstevel@tonic-gate  *	copyright.
15*7c478bd9Sstevel@tonic-gate  *
16*7c478bd9Sstevel@tonic-gate  * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
17*7c478bd9Sstevel@tonic-gate  *
18*7c478bd9Sstevel@tonic-gate  */
19*7c478bd9Sstevel@tonic-gate 
20*7c478bd9Sstevel@tonic-gate 
21*7c478bd9Sstevel@tonic-gate /*
22*7c478bd9Sstevel@tonic-gate  * kadmin/ktutil/ktutil.h
23*7c478bd9Sstevel@tonic-gate  *
24*7c478bd9Sstevel@tonic-gate  * Copyright 1995 by the Massachusetts Institute of Technology.
25*7c478bd9Sstevel@tonic-gate  * All Rights Reserved.
26*7c478bd9Sstevel@tonic-gate  *
27*7c478bd9Sstevel@tonic-gate  * Export of this software from the United States of America may
28*7c478bd9Sstevel@tonic-gate  *   require a specific license from the United States Government.
29*7c478bd9Sstevel@tonic-gate  *   It is the responsibility of any person or organization contemplating
30*7c478bd9Sstevel@tonic-gate  *   export to obtain such a license before exporting.
31*7c478bd9Sstevel@tonic-gate  *
32*7c478bd9Sstevel@tonic-gate  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
33*7c478bd9Sstevel@tonic-gate  * distribute this software and its documentation for any purpose and
34*7c478bd9Sstevel@tonic-gate  * without fee is hereby granted, provided that the above copyright
35*7c478bd9Sstevel@tonic-gate  * notice appear in all copies and that both that copyright notice and
36*7c478bd9Sstevel@tonic-gate  * this permission notice appear in supporting documentation, and that
37*7c478bd9Sstevel@tonic-gate  * the name of M.I.T. not be used in advertising or publicity pertaining
38*7c478bd9Sstevel@tonic-gate  * to distribution of the software without specific, written prior
39*7c478bd9Sstevel@tonic-gate  * permission.  Furthermore if you modify this software you must label
40*7c478bd9Sstevel@tonic-gate  * your software as modified software and not distribute it in such a
41*7c478bd9Sstevel@tonic-gate  * fashion that it might be confused with the original M.I.T. software.
42*7c478bd9Sstevel@tonic-gate  * M.I.T. makes no representations about the suitability of
43*7c478bd9Sstevel@tonic-gate  * this software for any purpose.  It is provided "as is" without express
44*7c478bd9Sstevel@tonic-gate  * or implied warranty.
45*7c478bd9Sstevel@tonic-gate  *
46*7c478bd9Sstevel@tonic-gate  */
47*7c478bd9Sstevel@tonic-gate 
48*7c478bd9Sstevel@tonic-gate typedef struct _krb5_kt_list {
49*7c478bd9Sstevel@tonic-gate 	struct _krb5_kt_list *next;
50*7c478bd9Sstevel@tonic-gate 	krb5_keytab_entry *entry;
51*7c478bd9Sstevel@tonic-gate } *krb5_kt_list;
52*7c478bd9Sstevel@tonic-gate 
53*7c478bd9Sstevel@tonic-gate krb5_error_code ktutil_free_kt_list
54*7c478bd9Sstevel@tonic-gate KRB5_PROTOTYPE((krb5_context,
55*7c478bd9Sstevel@tonic-gate 	krb5_kt_list));
56*7c478bd9Sstevel@tonic-gate 
57*7c478bd9Sstevel@tonic-gate krb5_error_code ktutil_delete
58*7c478bd9Sstevel@tonic-gate KRB5_PROTOTYPE((krb5_context,
59*7c478bd9Sstevel@tonic-gate 	krb5_kt_list *,
60*7c478bd9Sstevel@tonic-gate 	int));
61*7c478bd9Sstevel@tonic-gate 
62*7c478bd9Sstevel@tonic-gate krb5_error_code ktutil_add
63*7c478bd9Sstevel@tonic-gate 	KRB5_PROTOTYPE((krb5_context,
64*7c478bd9Sstevel@tonic-gate 			krb5_kt_list *,
65*7c478bd9Sstevel@tonic-gate 			char *,
66*7c478bd9Sstevel@tonic-gate 			krb5_kvno,
67*7c478bd9Sstevel@tonic-gate 			char *,
68*7c478bd9Sstevel@tonic-gate 			int));
69*7c478bd9Sstevel@tonic-gate 
70*7c478bd9Sstevel@tonic-gate krb5_error_code ktutil_read_keytab
71*7c478bd9Sstevel@tonic-gate KRB5_PROTOTYPE((krb5_context,
72*7c478bd9Sstevel@tonic-gate 	char *,
73*7c478bd9Sstevel@tonic-gate 	krb5_kt_list *));
74*7c478bd9Sstevel@tonic-gate 
75*7c478bd9Sstevel@tonic-gate krb5_error_code ktutil_write_keytab
76*7c478bd9Sstevel@tonic-gate KRB5_PROTOTYPE((krb5_context,
77*7c478bd9Sstevel@tonic-gate 	krb5_kt_list,
78*7c478bd9Sstevel@tonic-gate 	char *));
79*7c478bd9Sstevel@tonic-gate 
80*7c478bd9Sstevel@tonic-gate #ifdef KRB5_KRB4_COMPAT
81*7c478bd9Sstevel@tonic-gate krb5_error_code ktutil_read_srvtab
82*7c478bd9Sstevel@tonic-gate KRB5_PROTOTYPE((krb5_context,
83*7c478bd9Sstevel@tonic-gate 	char *,
84*7c478bd9Sstevel@tonic-gate 	krb5_kt_list *));
85*7c478bd9Sstevel@tonic-gate krb5_error_code ktutil_write_srvtab
86*7c478bd9Sstevel@tonic-gate KRB5_PROTOTYPE((krb5_context,
87*7c478bd9Sstevel@tonic-gate 	krb5_kt_list,
88*7c478bd9Sstevel@tonic-gate 	char *));
89*7c478bd9Sstevel@tonic-gate 
90*7c478bd9Sstevel@tonic-gate #endif
91