xref: /illumos-gate/usr/src/cmd/krb5/kadmin/cli/kadmin.h (revision 2a8bcb4efb45d99ac41c94a75c396b362c414f7f)
1 /*
2  * kadmin/cli/kadmin.h
3  *
4  * Copyright 2001 by the Massachusetts Institute of Technology.
5  * All Rights Reserved.
6  *
7  * Export of this software from the United States of America may
8  *   require a specific license from the United States Government.
9  *   It is the responsibility of any person or organization contemplating
10  *   export to obtain such a license before exporting.
11  *
12  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
13  * distribute this software and its documentation for any purpose and
14  * without fee is hereby granted, provided that the above copyright
15  * notice appear in all copies and that both that copyright notice and
16  * this permission notice appear in supporting documentation, and that
17  * the name of M.I.T. not be used in advertising or publicity pertaining
18  * to distribution of the software without specific, written prior
19  * permission.  Furthermore if you modify this software you must label
20  * your software as modified software and not distribute it in such a
21  * fashion that it might be confused with the original M.I.T. software.
22  * M.I.T. makes no representations about the suitability of
23  * this software for any purpose.  It is provided "as is" without express
24  * or implied warranty.
25  *
26  *
27  * Prototypes for kadmin functions called from SS library.
28  */
29 
30 #ifndef __KADMIN_H__
31 #define __KADMIN_H__
32 
33 /* It would be nice if ss produced a header file we could reference */
34 extern char *kadmin_startup(int argc, char *argv[]);
35 extern int quit (void);
36 extern void kadmin_lock(int argc, char *argv[]);
37 extern void kadmin_unlock(int argc, char *argv[]);
38 extern void kadmin_delprinc(int argc, char *argv[]);
39 extern void kadmin_cpw(int argc, char *argv[]);
40 extern void kadmin_addprinc(int argc, char *argv[]);
41 extern void kadmin_modprinc(int argc, char *argv[]);
42 extern void kadmin_getprinc(int argc, char *argv[]);
43 extern void kadmin_getprincs(int argc, char *argv[]);
44 extern void kadmin_addpol(int argc, char *argv[]);
45 extern void kadmin_modpol(int argc, char *argv[]);
46 extern void kadmin_delpol(int argc, char *argv[]);
47 extern void kadmin_getpol(int argc, char *argv[]);
48 extern void kadmin_getpols(int argc, char *argv[]);
49 extern void kadmin_getprivs(int argc, char *argv[]);
50 extern void kadmin_keytab_add(int argc, char *argv[]);
51 extern void kadmin_keytab_remove(int argc, char *argv[]);
52 
53 #ifdef TIME_WITH_SYS_TIME
54 #include <sys/time.h>
55 #include <time.h>
56 #else
57 #ifdef HAVE_SYS_TIME_H
58 #include <sys/time.h>
59 #else
60 #include <time.h>
61 #endif
62 #endif
63 
64 extern time_t get_date(char *);
65 
66 /* Yucky global variables */
67 extern krb5_context context;
68 extern char *krb5_defkeyname;
69 extern char *whoami;
70 extern void *handle;
71 
72 #endif /* __KADMIN_H__ */
73 
74