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