1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 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 /* 28 * 29 * Prototypes for kadmin functions called from SS library. 30 */ 31 32 #ifndef __KADMIN_H__ 33 #define __KADMIN_H__ 34 35 /* It would be nice if ss produced a header file we could reference */ 36 extern void kadmin_startup(int argc, char *argv[], char **request_out, 37 char ***args_out); 38 extern int quit (void); 39 extern void kadmin_lock(int argc, char *argv[]); 40 extern void kadmin_unlock(int argc, char *argv[]); 41 extern void kadmin_delprinc(int argc, char *argv[]); 42 extern void kadmin_renameprinc(int argc, char *argv[]); 43 extern void kadmin_cpw(int argc, char *argv[]); 44 extern void kadmin_addprinc(int argc, char *argv[]); 45 extern void kadmin_modprinc(int argc, char *argv[]); 46 extern void kadmin_getprinc(int argc, char *argv[]); 47 extern void kadmin_getprincs(int argc, char *argv[]); 48 extern void kadmin_addpol(int argc, char *argv[]); 49 extern void kadmin_modpol(int argc, char *argv[]); 50 extern void kadmin_delpol(int argc, char *argv[]); 51 extern void kadmin_getpol(int argc, char *argv[]); 52 extern void kadmin_getpols(int argc, char *argv[]); 53 extern void kadmin_getprivs(int argc, char *argv[]); 54 extern void kadmin_keytab_add(int argc, char *argv[]); 55 extern void kadmin_keytab_remove(int argc, char *argv[]); 56 extern void kadmin_purgekeys(int argc, char *argv[]); 57 extern void kadmin_getstrings(int argc, char *argv[]); 58 extern void kadmin_setstring(int argc, char *argv[]); 59 extern void kadmin_delstring(int argc, char *argv[]); 60 61 #include <kdb.h> 62 63 krb5_error_code 64 randkey_princ(void *lhandle, krb5_principal princ, krb5_boolean keepold, 65 int n_ks, krb5_key_salt_tuple *ks, krb5_keyblock **key, 66 int *n_keys); 67 68 #include "autoconf.h" 69 70 #ifdef TIME_WITH_SYS_TIME 71 #include <sys/time.h> 72 #include <time.h> 73 #else 74 #ifdef HAVE_SYS_TIME_H 75 #include <sys/time.h> 76 #else 77 #include <time.h> 78 #endif 79 #endif 80 81 extern time_t get_date_rel(char *, time_t); 82 83 /* Yucky global variables */ 84 extern krb5_context context; 85 extern char *whoami; 86 extern void *handle; 87 88 #endif /* __KADMIN_H__ */ 89