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