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