Path: blob/main/crypto/krb5/src/kadmin/cli/kadmin.h
34923 views
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */1/* kadmin/cli/kadmin.h */2/*3* Copyright 2001 by the Massachusetts Institute of Technology.4* All Rights Reserved.5*6* Export of this software from the United States of America may7* require a specific license from the United States Government.8* It is the responsibility of any person or organization contemplating9* export to obtain such a license before exporting.10*11* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and12* distribute this software and its documentation for any purpose and13* without fee is hereby granted, provided that the above copyright14* notice appear in all copies and that both that copyright notice and15* this permission notice appear in supporting documentation, and that16* the name of M.I.T. not be used in advertising or publicity pertaining17* to distribution of the software without specific, written prior18* permission. Furthermore if you modify this software you must label19* your software as modified software and not distribute it in such a20* fashion that it might be confused with the original M.I.T. software.21* M.I.T. makes no representations about the suitability of22* this software for any purpose. It is provided "as is" without express23* or implied warranty.24*/2526/*27*28* Prototypes for kadmin functions called from SS library.29*/3031#ifndef __KADMIN_H__32#define __KADMIN_H__3334/* It would be nice if ss produced a header file we could reference */35extern void kadmin_startup(int argc, char *argv[], char **request_out,36char ***args_out);37extern int quit (void);38extern void kadmin_lock(int argc, char *argv[], int sci_idx, void *info_ptr);39extern void kadmin_unlock(int argc, char *argv[], int sci_idx, void *info_ptr);40extern void kadmin_delprinc(int argc, char *argv[], int sci_idx,41void *info_ptr);42extern void kadmin_renameprinc(int argc, char *argv[], int sci_idx,43void *info_ptr);44extern void kadmin_addalias(int argc, char *argv[], int sci_idx,45void *info_ptr);46extern void kadmin_cpw(int argc, char *argv[], int sci_idx, void *info_ptr);47extern void kadmin_addprinc(int argc, char *argv[], int sci_idx,48void *info_ptr);49extern void kadmin_modprinc(int argc, char *argv[], int sci_idx,50void *info_ptr);51extern void kadmin_getprinc(int argc, char *argv[], int sci_idx,52void *info_ptr);53extern void kadmin_getprincs(int argc, char *argv[], int sci_idx,54void *info_ptr);55extern void kadmin_addpol(int argc, char *argv[], int sci_idx, void *info_ptr);56extern void kadmin_modpol(int argc, char *argv[], int sci_idx, void *info_ptr);57extern void kadmin_delpol(int argc, char *argv[], int sci_idx, void *info_ptr);58extern void kadmin_getpol(int argc, char *argv[], int sci_idx, void *info_ptr);59extern void kadmin_getpols(int argc, char *argv[], int sci_idx,60void *info_ptr);61extern void kadmin_getprivs(int argc, char *argv[], int sci_idx,62void *info_ptr);63extern void kadmin_keytab_add(int argc, char *argv[], int sci_idx,64void *info_ptr);65extern void kadmin_keytab_remove(int argc, char *argv[], int sci_idx,66void *info_ptr);67extern void kadmin_purgekeys(int argc, char *argv[], int sci_idx,68void *info_ptr);69extern void kadmin_getstrings(int argc, char *argv[], int sci_idx,70void *info_ptr);71extern void kadmin_setstring(int argc, char *argv[], int sci_idx,72void *info_ptr);73extern void kadmin_delstring(int argc, char *argv[], int sci_idx,74void *info_ptr);7576#include <kdb.h>7778krb5_error_code79randkey_princ(void *lhandle, krb5_principal princ, krb5_boolean keepold,80int n_ks, krb5_key_salt_tuple *ks, krb5_keyblock **key,81int *n_keys);8283#include "autoconf.h"8485#ifdef HAVE_SYS_TIME_H86#include <sys/time.h>87#endif88#include <time.h>8990extern time_t get_date_rel(char *, time_t);9192/* Yucky global variables */93extern krb5_context context;94extern char *whoami;95extern void *handle;9697#endif /* __KADMIN_H__ */9899100