etc/services - sync with NetBSD-8
[minix.git] / crypto / external / bsd / heimdal / include / kadm5-private.h
blobab8d694dda740f80da219f88f887e73dec0ba743
1 /* This is a generated file */
2 #ifndef __kadm5_private_h__
3 #define __kadm5_private_h__
5 #include <stdarg.h>
7 kadm5_ret_t
8 _kadm5_acl_check_permission (
9 kadm5_server_context */*context*/,
10 unsigned /*op*/,
11 krb5_const_principal /*princ*/);
13 kadm5_ret_t
14 _kadm5_acl_init (kadm5_server_context */*context*/);
16 kadm5_ret_t
17 _kadm5_bump_pw_expire (
18 kadm5_server_context */*context*/,
19 hdb_entry */*ent*/);
21 krb5_error_code
22 _kadm5_c_get_cred_cache (
23 krb5_context /*context*/,
24 const char */*client_name*/,
25 const char */*server_name*/,
26 const char */*password*/,
27 krb5_prompter_fct /*prompter*/,
28 const char */*keytab*/,
29 krb5_ccache /*ccache*/,
30 krb5_ccache */*ret_cache*/);
32 kadm5_ret_t
33 _kadm5_c_init_context (
34 kadm5_client_context **/*ctx*/,
35 kadm5_config_params */*params*/,
36 krb5_context /*context*/);
38 kadm5_ret_t
39 _kadm5_client_recv (
40 kadm5_client_context */*context*/,
41 krb5_data */*reply*/);
43 kadm5_ret_t
44 _kadm5_client_send (
45 kadm5_client_context */*context*/,
46 krb5_storage */*sp*/);
48 kadm5_ret_t
49 _kadm5_connect (void */*handle*/);
51 kadm5_ret_t
52 _kadm5_error_code (kadm5_ret_t /*code*/);
54 int
55 _kadm5_exists_keys (
56 Key */*keys1*/,
57 int /*len1*/,
58 Key */*keys2*/,
59 int /*len2*/);
61 void
62 _kadm5_free_keys (
63 krb5_context /*context*/,
64 int /*len*/,
65 Key */*keys*/);
67 void
68 _kadm5_init_keys (
69 Key */*keys*/,
70 int /*len*/);
72 kadm5_ret_t
73 _kadm5_marshal_params (
74 krb5_context /*context*/,
75 kadm5_config_params */*params*/,
76 krb5_data */*out*/);
78 kadm5_ret_t
79 _kadm5_privs_to_string (
80 uint32_t /*privs*/,
81 char */*string*/,
82 size_t /*len*/);
84 HDB *
85 _kadm5_s_get_db (void */*server_handle*/);
87 kadm5_ret_t
88 _kadm5_s_init_context (
89 kadm5_server_context **/*ctx*/,
90 kadm5_config_params */*params*/,
91 krb5_context /*context*/);
93 kadm5_ret_t
94 _kadm5_set_keys (
95 kadm5_server_context */*context*/,
96 hdb_entry */*ent*/,
97 const char */*password*/);
99 kadm5_ret_t
100 _kadm5_set_keys2 (
101 kadm5_server_context */*context*/,
102 hdb_entry */*ent*/,
103 int16_t /*n_key_data*/,
104 krb5_key_data */*key_data*/);
106 kadm5_ret_t
107 _kadm5_set_keys3 (
108 kadm5_server_context */*context*/,
109 hdb_entry */*ent*/,
110 int /*n_keys*/,
111 krb5_keyblock */*keyblocks*/);
113 kadm5_ret_t
114 _kadm5_set_keys_randomly (
115 kadm5_server_context */*context*/,
116 hdb_entry */*ent*/,
117 krb5_keyblock **/*new_keys*/,
118 int */*n_keys*/);
120 kadm5_ret_t
121 _kadm5_set_modifier (
122 kadm5_server_context */*context*/,
123 hdb_entry */*ent*/);
125 kadm5_ret_t
126 _kadm5_setup_entry (
127 kadm5_server_context */*context*/,
128 hdb_entry_ex */*ent*/,
129 uint32_t /*mask*/,
130 kadm5_principal_ent_t /*princ*/,
131 uint32_t /*princ_mask*/,
132 kadm5_principal_ent_t /*def*/,
133 uint32_t /*def_mask*/);
135 kadm5_ret_t
136 _kadm5_string_to_privs (
137 const char */*s*/,
138 uint32_t* /*privs*/);
140 kadm5_ret_t
141 _kadm5_unmarshal_params (
142 krb5_context /*context*/,
143 krb5_data */*in*/,
144 kadm5_config_params */*params*/);
146 kadm5_ret_t
147 kadm5_c_chpass_principal (
148 void */*server_handle*/,
149 krb5_principal /*princ*/,
150 const char */*password*/);
152 kadm5_ret_t
153 kadm5_c_chpass_principal_with_key (
154 void */*server_handle*/,
155 krb5_principal /*princ*/,
156 int /*n_key_data*/,
157 krb5_key_data */*key_data*/);
159 kadm5_ret_t
160 kadm5_c_create_principal (
161 void */*server_handle*/,
162 kadm5_principal_ent_t /*princ*/,
163 uint32_t /*mask*/,
164 const char */*password*/);
166 kadm5_ret_t
167 kadm5_c_delete_principal (
168 void */*server_handle*/,
169 krb5_principal /*princ*/);
171 kadm5_ret_t
172 kadm5_c_destroy (void */*server_handle*/);
174 kadm5_ret_t
175 kadm5_c_flush (void */*server_handle*/);
177 kadm5_ret_t
178 kadm5_c_get_principal (
179 void */*server_handle*/,
180 krb5_principal /*princ*/,
181 kadm5_principal_ent_t /*out*/,
182 uint32_t /*mask*/);
184 kadm5_ret_t
185 kadm5_c_get_principals (
186 void */*server_handle*/,
187 const char */*expression*/,
188 char ***/*princs*/,
189 int */*count*/);
191 kadm5_ret_t
192 kadm5_c_get_privs (
193 void */*server_handle*/,
194 uint32_t */*privs*/);
196 kadm5_ret_t
197 kadm5_c_init_with_creds (
198 const char */*client_name*/,
199 krb5_ccache /*ccache*/,
200 const char */*service_name*/,
201 kadm5_config_params */*realm_params*/,
202 unsigned long /*struct_version*/,
203 unsigned long /*api_version*/,
204 void **/*server_handle*/);
206 kadm5_ret_t
207 kadm5_c_init_with_creds_ctx (
208 krb5_context /*context*/,
209 const char */*client_name*/,
210 krb5_ccache /*ccache*/,
211 const char */*service_name*/,
212 kadm5_config_params */*realm_params*/,
213 unsigned long /*struct_version*/,
214 unsigned long /*api_version*/,
215 void **/*server_handle*/);
217 kadm5_ret_t
218 kadm5_c_init_with_password (
219 const char */*client_name*/,
220 const char */*password*/,
221 const char */*service_name*/,
222 kadm5_config_params */*realm_params*/,
223 unsigned long /*struct_version*/,
224 unsigned long /*api_version*/,
225 void **/*server_handle*/);
227 kadm5_ret_t
228 kadm5_c_init_with_password_ctx (
229 krb5_context /*context*/,
230 const char */*client_name*/,
231 const char */*password*/,
232 const char */*service_name*/,
233 kadm5_config_params */*realm_params*/,
234 unsigned long /*struct_version*/,
235 unsigned long /*api_version*/,
236 void **/*server_handle*/);
238 kadm5_ret_t
239 kadm5_c_init_with_skey (
240 const char */*client_name*/,
241 const char */*keytab*/,
242 const char */*service_name*/,
243 kadm5_config_params */*realm_params*/,
244 unsigned long /*struct_version*/,
245 unsigned long /*api_version*/,
246 void **/*server_handle*/);
248 kadm5_ret_t
249 kadm5_c_init_with_skey_ctx (
250 krb5_context /*context*/,
251 const char */*client_name*/,
252 const char */*keytab*/,
253 const char */*service_name*/,
254 kadm5_config_params */*realm_params*/,
255 unsigned long /*struct_version*/,
256 unsigned long /*api_version*/,
257 void **/*server_handle*/);
259 kadm5_ret_t
260 kadm5_c_modify_principal (
261 void */*server_handle*/,
262 kadm5_principal_ent_t /*princ*/,
263 uint32_t /*mask*/);
265 kadm5_ret_t
266 kadm5_c_randkey_principal (
267 void */*server_handle*/,
268 krb5_principal /*princ*/,
269 krb5_keyblock **/*new_keys*/,
270 int */*n_keys*/);
272 kadm5_ret_t
273 kadm5_c_rename_principal (
274 void */*server_handle*/,
275 krb5_principal /*source*/,
276 krb5_principal /*target*/);
278 kadm5_ret_t
279 kadm5_log_create (
280 kadm5_server_context */*context*/,
281 hdb_entry */*ent*/);
283 kadm5_ret_t
284 kadm5_log_delete (
285 kadm5_server_context */*context*/,
286 krb5_principal /*princ*/);
288 kadm5_ret_t
289 kadm5_log_end (kadm5_server_context */*context*/);
291 kadm5_ret_t
292 kadm5_log_foreach (
293 kadm5_server_context */*context*/,
294 void (*/*func*/)(kadm5_server_context *server_context, uint32_t ver, time_t timestamp, enum kadm_ops op, uint32_t len, krb5_storage *, void *),
295 void */*ctx*/);
297 kadm5_ret_t
298 kadm5_log_get_version (
299 kadm5_server_context */*context*/,
300 uint32_t */*ver*/);
302 kadm5_ret_t
303 kadm5_log_get_version_fd (
304 int /*fd*/,
305 uint32_t */*ver*/);
307 krb5_storage *
308 kadm5_log_goto_end (int /*fd*/);
310 kadm5_ret_t
311 kadm5_log_init (kadm5_server_context */*context*/);
313 kadm5_ret_t
314 kadm5_log_modify (
315 kadm5_server_context */*context*/,
316 hdb_entry */*ent*/,
317 uint32_t /*mask*/);
319 kadm5_ret_t
320 kadm5_log_nop (kadm5_server_context */*context*/);
322 kadm5_ret_t
323 kadm5_log_previous (
324 krb5_context /*context*/,
325 krb5_storage */*sp*/,
326 uint32_t */*ver*/,
327 time_t */*timestamp*/,
328 enum kadm_ops */*op*/,
329 uint32_t */*len*/);
331 kadm5_ret_t
332 kadm5_log_reinit (kadm5_server_context */*context*/);
334 kadm5_ret_t
335 kadm5_log_rename (
336 kadm5_server_context */*context*/,
337 krb5_principal /*source*/,
338 hdb_entry */*ent*/);
340 kadm5_ret_t
341 kadm5_log_replay (
342 kadm5_server_context */*context*/,
343 enum kadm_ops /*op*/,
344 uint32_t /*ver*/,
345 uint32_t /*len*/,
346 krb5_storage */*sp*/);
348 kadm5_ret_t
349 kadm5_log_set_version (
350 kadm5_server_context */*context*/,
351 uint32_t /*vno*/);
353 const char *
354 kadm5_log_signal_socket (krb5_context /*context*/);
356 kadm5_ret_t
357 kadm5_log_signal_socket_info (
358 krb5_context /*context*/,
359 int /*server_end*/,
360 struct addrinfo **/*ret_addrs*/);
362 kadm5_ret_t
363 kadm5_log_truncate (kadm5_server_context */*server_context*/);
365 kadm5_ret_t
366 kadm5_s_chpass_principal (
367 void */*server_handle*/,
368 krb5_principal /*princ*/,
369 const char */*password*/);
371 kadm5_ret_t
372 kadm5_s_chpass_principal_cond (
373 void */*server_handle*/,
374 krb5_principal /*princ*/,
375 const char */*password*/);
377 kadm5_ret_t
378 kadm5_s_chpass_principal_with_key (
379 void */*server_handle*/,
380 krb5_principal /*princ*/,
381 int /*n_key_data*/,
382 krb5_key_data */*key_data*/);
384 kadm5_ret_t
385 kadm5_s_create_principal (
386 void */*server_handle*/,
387 kadm5_principal_ent_t /*princ*/,
388 uint32_t /*mask*/,
389 const char */*password*/);
391 kadm5_ret_t
392 kadm5_s_create_principal_with_key (
393 void */*server_handle*/,
394 kadm5_principal_ent_t /*princ*/,
395 uint32_t /*mask*/);
397 kadm5_ret_t
398 kadm5_s_delete_principal (
399 void */*server_handle*/,
400 krb5_principal /*princ*/);
402 kadm5_ret_t
403 kadm5_s_destroy (void */*server_handle*/);
405 kadm5_ret_t
406 kadm5_s_flush (void */*server_handle*/);
408 kadm5_ret_t
409 kadm5_s_get_principal (
410 void */*server_handle*/,
411 krb5_principal /*princ*/,
412 kadm5_principal_ent_t /*out*/,
413 uint32_t /*mask*/);
415 kadm5_ret_t
416 kadm5_s_get_principals (
417 void */*server_handle*/,
418 const char */*expression*/,
419 char ***/*princs*/,
420 int */*count*/);
422 kadm5_ret_t
423 kadm5_s_get_privs (
424 void */*server_handle*/,
425 uint32_t */*privs*/);
427 kadm5_ret_t
428 kadm5_s_init_with_creds (
429 const char */*client_name*/,
430 krb5_ccache /*ccache*/,
431 const char */*service_name*/,
432 kadm5_config_params */*realm_params*/,
433 unsigned long /*struct_version*/,
434 unsigned long /*api_version*/,
435 void **/*server_handle*/);
437 kadm5_ret_t
438 kadm5_s_init_with_creds_ctx (
439 krb5_context /*context*/,
440 const char */*client_name*/,
441 krb5_ccache /*ccache*/,
442 const char */*service_name*/,
443 kadm5_config_params */*realm_params*/,
444 unsigned long /*struct_version*/,
445 unsigned long /*api_version*/,
446 void **/*server_handle*/);
448 kadm5_ret_t
449 kadm5_s_init_with_password (
450 const char */*client_name*/,
451 const char */*password*/,
452 const char */*service_name*/,
453 kadm5_config_params */*realm_params*/,
454 unsigned long /*struct_version*/,
455 unsigned long /*api_version*/,
456 void **/*server_handle*/);
458 kadm5_ret_t
459 kadm5_s_init_with_password_ctx (
460 krb5_context /*context*/,
461 const char */*client_name*/,
462 const char */*password*/,
463 const char */*service_name*/,
464 kadm5_config_params */*realm_params*/,
465 unsigned long /*struct_version*/,
466 unsigned long /*api_version*/,
467 void **/*server_handle*/);
469 kadm5_ret_t
470 kadm5_s_init_with_skey (
471 const char */*client_name*/,
472 const char */*keytab*/,
473 const char */*service_name*/,
474 kadm5_config_params */*realm_params*/,
475 unsigned long /*struct_version*/,
476 unsigned long /*api_version*/,
477 void **/*server_handle*/);
479 kadm5_ret_t
480 kadm5_s_init_with_skey_ctx (
481 krb5_context /*context*/,
482 const char */*client_name*/,
483 const char */*keytab*/,
484 const char */*service_name*/,
485 kadm5_config_params */*realm_params*/,
486 unsigned long /*struct_version*/,
487 unsigned long /*api_version*/,
488 void **/*server_handle*/);
490 kadm5_ret_t
491 kadm5_s_modify_principal (
492 void */*server_handle*/,
493 kadm5_principal_ent_t /*princ*/,
494 uint32_t /*mask*/);
496 kadm5_ret_t
497 kadm5_s_randkey_principal (
498 void */*server_handle*/,
499 krb5_principal /*princ*/,
500 krb5_keyblock **/*new_keys*/,
501 int */*n_keys*/);
503 kadm5_ret_t
504 kadm5_s_rename_principal (
505 void */*server_handle*/,
506 krb5_principal /*source*/,
507 krb5_principal /*target*/);
509 #endif /* __kadm5_private_h__ */