Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/crypto/krb5/src/kadmin/cli/kadmin.h
34923 views
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[], int sci_idx, void *info_ptr);
40
extern void kadmin_unlock(int argc, char *argv[], int sci_idx, void *info_ptr);
41
extern void kadmin_delprinc(int argc, char *argv[], int sci_idx,
42
void *info_ptr);
43
extern void kadmin_renameprinc(int argc, char *argv[], int sci_idx,
44
void *info_ptr);
45
extern void kadmin_addalias(int argc, char *argv[], int sci_idx,
46
void *info_ptr);
47
extern void kadmin_cpw(int argc, char *argv[], int sci_idx, void *info_ptr);
48
extern void kadmin_addprinc(int argc, char *argv[], int sci_idx,
49
void *info_ptr);
50
extern void kadmin_modprinc(int argc, char *argv[], int sci_idx,
51
void *info_ptr);
52
extern void kadmin_getprinc(int argc, char *argv[], int sci_idx,
53
void *info_ptr);
54
extern void kadmin_getprincs(int argc, char *argv[], int sci_idx,
55
void *info_ptr);
56
extern void kadmin_addpol(int argc, char *argv[], int sci_idx, void *info_ptr);
57
extern void kadmin_modpol(int argc, char *argv[], int sci_idx, void *info_ptr);
58
extern void kadmin_delpol(int argc, char *argv[], int sci_idx, void *info_ptr);
59
extern void kadmin_getpol(int argc, char *argv[], int sci_idx, void *info_ptr);
60
extern void kadmin_getpols(int argc, char *argv[], int sci_idx,
61
void *info_ptr);
62
extern void kadmin_getprivs(int argc, char *argv[], int sci_idx,
63
void *info_ptr);
64
extern void kadmin_keytab_add(int argc, char *argv[], int sci_idx,
65
void *info_ptr);
66
extern void kadmin_keytab_remove(int argc, char *argv[], int sci_idx,
67
void *info_ptr);
68
extern void kadmin_purgekeys(int argc, char *argv[], int sci_idx,
69
void *info_ptr);
70
extern void kadmin_getstrings(int argc, char *argv[], int sci_idx,
71
void *info_ptr);
72
extern void kadmin_setstring(int argc, char *argv[], int sci_idx,
73
void *info_ptr);
74
extern void kadmin_delstring(int argc, char *argv[], int sci_idx,
75
void *info_ptr);
76
77
#include <kdb.h>
78
79
krb5_error_code
80
randkey_princ(void *lhandle, krb5_principal princ, krb5_boolean keepold,
81
int n_ks, krb5_key_salt_tuple *ks, krb5_keyblock **key,
82
int *n_keys);
83
84
#include "autoconf.h"
85
86
#ifdef HAVE_SYS_TIME_H
87
#include <sys/time.h>
88
#endif
89
#include <time.h>
90
91
extern time_t get_date_rel(char *, time_t);
92
93
/* Yucky global variables */
94
extern krb5_context context;
95
extern char *whoami;
96
extern void *handle;
97
98
#endif /* __KADMIN_H__ */
99
100