xref: /titanic_50/usr/src/cmd/krb5/kadmin/cli/kadmin_ct.c (revision 7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fe)
1 #pragma ident	"%Z%%M%	%I%	%E% SMI"
2 
3 /*
4  * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
5  *
6  *	Openvision retains the copyright to derivative works of
7  *	this source code.  Do *NOT* create a derivative of this
8  *	source code before consulting with your legal department.
9  *	Do *NOT* integrate *ANY* of this source code into another
10  *	product before consulting with your legal department.
11  *
12  *	For further information, read the top-level Openvision
13  *	copyright which is contained in the top-level MIT Kerberos
14  *	copyright.
15  *
16  * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
17  *
18  */
19 
20 
21 
22 /* kadmin_ct.c - automatically generated from kadmin_ct.ct */
23 /* Above no longer appears to be true */
24 
25 /*
26  * I18n hack. We sill define gettext(s) to be s here. That way the info_strings
27  * will be extracted to the .po file.
28  */
29 
30 #define	gettext(s) s
31 
32 #include <ss/ss.h>
33 
34 #ifndef __STDC__
35 #define	const
36 #endif
37 
38 static char const *const ssu00001[] = {
39 	"add_principal",
40 	"addprinc",
41 	"ank",
42 	(char const *) 0
43 };
44 extern void kadmin_addprinc __SS_PROTO;
45 static char const *const ssu00002[] = {
46 	"delete_principal",
47 	"delprinc",
48 	(char const *) 0
49 };
50 extern void kadmin_delprinc __SS_PROTO;
51 static char const *const ssu00003[] = {
52 	"modify_principal",
53 	"modprinc",
54 	(char const *) 0
55 };
56 extern void kadmin_modprinc __SS_PROTO;
57 static char const *const ssu00004[] = {
58 	"change_password",
59 	"cpw",
60 	(char const *) 0
61 };
62 extern void kadmin_cpw __SS_PROTO;
63 static char const *const ssu00005[] = {
64 	"get_principal",
65 	"getprinc",
66 	(char const *) 0
67 };
68 extern void kadmin_getprinc __SS_PROTO;
69 static char const *const ssu00006[] = {
70 	"list_principals",
71 	"listprincs",
72 	"get_principals",
73 	"getprincs",
74 	(char const *) 0
75 };
76 extern void kadmin_getprincs __SS_PROTO;
77 static char const *const ssu00007[] = {
78 	"add_policy",
79 	"addpol",
80 	(char const *) 0
81 };
82 extern void kadmin_addpol __SS_PROTO;
83 static char const *const ssu00008[] = {
84 	"modify_policy",
85 	"modpol",
86 	(char const *) 0
87 };
88 extern void kadmin_modpol __SS_PROTO;
89 static char const *const ssu00009[] = {
90 	"delete_policy",
91 	"delpol",
92 	(char const *) 0
93 };
94 extern void kadmin_delpol __SS_PROTO;
95 static char const *const ssu00010[] = {
96 	"get_policy",
97 	"getpol",
98 	(char const *) 0
99 };
100 extern void kadmin_getpol __SS_PROTO;
101 static char const *const ssu00011[] = {
102 	"list_policies",
103 	"listpols",
104 	"get_policies",
105 	"getpols",
106 	(char const *) 0
107 };
108 extern void kadmin_getpols __SS_PROTO;
109 static char const *const ssu00012[] = {
110 	"get_privs",
111 	"getprivs",
112 	(char const *) 0
113 };
114 extern void kadmin_getprivs __SS_PROTO;
115 static char const *const ssu00013[] = {
116 	"ktadd",
117 	"xst",
118 	(char const *) 0
119 };
120 extern void kadmin_keytab_add __SS_PROTO;
121 static char const *const ssu00014[] = {
122 	"ktremove",
123 	"ktrem",
124 	(char const *) 0
125 };
126 extern void kadmin_keytab_remove __SS_PROTO;
127 static char const *const ssu00015[] = {
128 	"list_requests",
129 	"lr",
130 	"?",
131 	(char const *) 0
132 };
133 extern void ss_list_requests __SS_PROTO;
134 static char const *const ssu00016[] = {
135 	"quit",
136 	"exit",
137 	"q",
138 	(char const *) 0
139 };
140 extern void ss_quit __SS_PROTO;
141 static ss_request_entry ssu00017[] = {
142 	{ssu00001,
143 		kadmin_addprinc,
144 		gettext("Add principal"),
145 	0},
146 	{ssu00002,
147 		kadmin_delprinc,
148 		gettext("Delete principal"),
149 	0},
150 	{ssu00003,
151 		kadmin_modprinc,
152 		gettext("Modify principal"),
153 	0},
154 	{ssu00004,
155 		kadmin_cpw,
156 		gettext("Change password"),
157 	0},
158 	{ssu00005,
159 		kadmin_getprinc,
160 		gettext("Get principal"),
161 	0},
162 	{ssu00006,
163 		kadmin_getprincs,
164 		gettext("List principals"),
165 	0},
166 	{ssu00007,
167 		kadmin_addpol,
168 		gettext("Add policy"),
169 	0},
170 	{ssu00008,
171 		kadmin_modpol,
172 		gettext("Modify policy"),
173 	0},
174 	{ssu00009,
175 		kadmin_delpol,
176 		gettext("Delete policy"),
177 	0},
178 	{ssu00010,
179 		kadmin_getpol,
180 		gettext("Get policy"),
181 	0},
182 	{ssu00011,
183 		kadmin_getpols,
184 		gettext("List policies"),
185 	0},
186 	{ssu00012,
187 		kadmin_getprivs,
188 		gettext("Get privileges"),
189 	0},
190 	{ssu00013,
191 		kadmin_keytab_add,
192 		gettext("Add entry(s) to a keytab"),
193 	0},
194 	{ssu00014,
195 		kadmin_keytab_remove,
196 		gettext("Remove entry(s) from a keytab"),
197 	0},
198 	{ssu00015,
199 		ss_list_requests,
200 		gettext("List available requests."),
201 	0},
202 	{ssu00016,
203 		ss_quit,
204 		gettext("Exit program."),
205 	0},
206 	{0, 0, 0, 0}
207 };
208 
209 ss_request_table kadmin_cmds = {2, ssu00017};
210 
211 #undef gettext
212