r13121: Tag 4.0.0TP1
[Samba.git] / source / heimdal / lib / hdb / hdb-protos.h
blobc221175e4107768d0110a1ca832ec611c2bc5e3c
1 /* This is a generated file */
2 #ifndef __hdb_protos_h__
3 #define __hdb_protos_h__
5 #include <stdarg.h>
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
11 unsigned
12 HDBFlags2int (HDBFlags /*f*/);
14 int
15 copy_Event (
16 const Event */*from*/,
17 Event */*to*/);
19 int
20 copy_GENERATION (
21 const GENERATION */*from*/,
22 GENERATION */*to*/);
24 int
25 copy_HDBFlags (
26 const HDBFlags */*from*/,
27 HDBFlags */*to*/);
29 int
30 copy_HDB_Ext_Aliases (
31 const HDB_Ext_Aliases */*from*/,
32 HDB_Ext_Aliases */*to*/);
34 int
35 copy_HDB_Ext_Constrained_delegation_acl (
36 const HDB_Ext_Constrained_delegation_acl */*from*/,
37 HDB_Ext_Constrained_delegation_acl */*to*/);
39 int
40 copy_HDB_Ext_Lan_Manager_OWF (
41 const HDB_Ext_Lan_Manager_OWF */*from*/,
42 HDB_Ext_Lan_Manager_OWF */*to*/);
44 int
45 copy_HDB_Ext_PKINIT_acl (
46 const HDB_Ext_PKINIT_acl */*from*/,
47 HDB_Ext_PKINIT_acl */*to*/);
49 int
50 copy_HDB_Ext_PKINIT_certificate (
51 const HDB_Ext_PKINIT_certificate */*from*/,
52 HDB_Ext_PKINIT_certificate */*to*/);
54 int
55 copy_HDB_Ext_Password (
56 const HDB_Ext_Password */*from*/,
57 HDB_Ext_Password */*to*/);
59 int
60 copy_HDB_extension (
61 const HDB_extension */*from*/,
62 HDB_extension */*to*/);
64 int
65 copy_HDB_extensions (
66 const HDB_extensions */*from*/,
67 HDB_extensions */*to*/);
69 int
70 copy_Key (
71 const Key */*from*/,
72 Key */*to*/);
74 int
75 copy_Salt (
76 const Salt */*from*/,
77 Salt */*to*/);
79 int
80 copy_hdb_entry (
81 const hdb_entry */*from*/,
82 hdb_entry */*to*/);
84 int
85 decode_Event (
86 const unsigned char */*p*/,
87 size_t /*len*/,
88 Event */*data*/,
89 size_t */*size*/);
91 int
92 decode_GENERATION (
93 const unsigned char */*p*/,
94 size_t /*len*/,
95 GENERATION */*data*/,
96 size_t */*size*/);
98 int
99 decode_HDBFlags (
100 const unsigned char */*p*/,
101 size_t /*len*/,
102 HDBFlags */*data*/,
103 size_t */*size*/);
106 decode_HDB_Ext_Aliases (
107 const unsigned char */*p*/,
108 size_t /*len*/,
109 HDB_Ext_Aliases */*data*/,
110 size_t */*size*/);
113 decode_HDB_Ext_Constrained_delegation_acl (
114 const unsigned char */*p*/,
115 size_t /*len*/,
116 HDB_Ext_Constrained_delegation_acl */*data*/,
117 size_t */*size*/);
120 decode_HDB_Ext_Lan_Manager_OWF (
121 const unsigned char */*p*/,
122 size_t /*len*/,
123 HDB_Ext_Lan_Manager_OWF */*data*/,
124 size_t */*size*/);
127 decode_HDB_Ext_PKINIT_acl (
128 const unsigned char */*p*/,
129 size_t /*len*/,
130 HDB_Ext_PKINIT_acl */*data*/,
131 size_t */*size*/);
134 decode_HDB_Ext_PKINIT_certificate (
135 const unsigned char */*p*/,
136 size_t /*len*/,
137 HDB_Ext_PKINIT_certificate */*data*/,
138 size_t */*size*/);
141 decode_HDB_Ext_Password (
142 const unsigned char */*p*/,
143 size_t /*len*/,
144 HDB_Ext_Password */*data*/,
145 size_t */*size*/);
148 decode_HDB_extension (
149 const unsigned char */*p*/,
150 size_t /*len*/,
151 HDB_extension */*data*/,
152 size_t */*size*/);
155 decode_HDB_extensions (
156 const unsigned char */*p*/,
157 size_t /*len*/,
158 HDB_extensions */*data*/,
159 size_t */*size*/);
162 decode_Key (
163 const unsigned char */*p*/,
164 size_t /*len*/,
165 Key */*data*/,
166 size_t */*size*/);
169 decode_Salt (
170 const unsigned char */*p*/,
171 size_t /*len*/,
172 Salt */*data*/,
173 size_t */*size*/);
176 decode_hdb_entry (
177 const unsigned char */*p*/,
178 size_t /*len*/,
179 hdb_entry */*data*/,
180 size_t */*size*/);
183 encode_Event (
184 unsigned char */*p*/,
185 size_t /*len*/,
186 const Event */*data*/,
187 size_t */*size*/);
190 encode_GENERATION (
191 unsigned char */*p*/,
192 size_t /*len*/,
193 const GENERATION */*data*/,
194 size_t */*size*/);
197 encode_HDBFlags (
198 unsigned char */*p*/,
199 size_t /*len*/,
200 const HDBFlags */*data*/,
201 size_t */*size*/);
204 encode_HDB_Ext_Aliases (
205 unsigned char */*p*/,
206 size_t /*len*/,
207 const HDB_Ext_Aliases */*data*/,
208 size_t */*size*/);
211 encode_HDB_Ext_Constrained_delegation_acl (
212 unsigned char */*p*/,
213 size_t /*len*/,
214 const HDB_Ext_Constrained_delegation_acl */*data*/,
215 size_t */*size*/);
218 encode_HDB_Ext_Lan_Manager_OWF (
219 unsigned char */*p*/,
220 size_t /*len*/,
221 const HDB_Ext_Lan_Manager_OWF */*data*/,
222 size_t */*size*/);
225 encode_HDB_Ext_PKINIT_acl (
226 unsigned char */*p*/,
227 size_t /*len*/,
228 const HDB_Ext_PKINIT_acl */*data*/,
229 size_t */*size*/);
232 encode_HDB_Ext_PKINIT_certificate (
233 unsigned char */*p*/,
234 size_t /*len*/,
235 const HDB_Ext_PKINIT_certificate */*data*/,
236 size_t */*size*/);
239 encode_HDB_Ext_Password (
240 unsigned char */*p*/,
241 size_t /*len*/,
242 const HDB_Ext_Password */*data*/,
243 size_t */*size*/);
246 encode_HDB_extension (
247 unsigned char */*p*/,
248 size_t /*len*/,
249 const HDB_extension */*data*/,
250 size_t */*size*/);
253 encode_HDB_extensions (
254 unsigned char */*p*/,
255 size_t /*len*/,
256 const HDB_extensions */*data*/,
257 size_t */*size*/);
260 encode_Key (
261 unsigned char */*p*/,
262 size_t /*len*/,
263 const Key */*data*/,
264 size_t */*size*/);
267 encode_Salt (
268 unsigned char */*p*/,
269 size_t /*len*/,
270 const Salt */*data*/,
271 size_t */*size*/);
274 encode_hdb_entry (
275 unsigned char */*p*/,
276 size_t /*len*/,
277 const hdb_entry */*data*/,
278 size_t */*size*/);
280 void
281 free_Event (Event */*data*/);
283 void
284 free_GENERATION (GENERATION */*data*/);
286 void
287 free_HDBFlags (HDBFlags */*data*/);
289 void
290 free_HDB_Ext_Aliases (HDB_Ext_Aliases */*data*/);
292 void
293 free_HDB_Ext_Constrained_delegation_acl (HDB_Ext_Constrained_delegation_acl */*data*/);
295 void
296 free_HDB_Ext_Lan_Manager_OWF (HDB_Ext_Lan_Manager_OWF */*data*/);
298 void
299 free_HDB_Ext_PKINIT_acl (HDB_Ext_PKINIT_acl */*data*/);
301 void
302 free_HDB_Ext_PKINIT_certificate (HDB_Ext_PKINIT_certificate */*data*/);
304 void
305 free_HDB_Ext_Password (HDB_Ext_Password */*data*/);
307 void
308 free_HDB_extension (HDB_extension */*data*/);
310 void
311 free_HDB_extensions (HDB_extensions */*data*/);
313 void
314 free_Key (Key */*data*/);
316 void
317 free_Salt (Salt */*data*/);
319 void
320 free_hdb_entry (hdb_entry */*data*/);
322 krb5_error_code
323 hdb_add_master_key (
324 krb5_context /*context*/,
325 krb5_keyblock */*key*/,
326 hdb_master_key */*inout*/);
328 krb5_error_code
329 hdb_check_db_format (
330 krb5_context /*context*/,
331 HDB */*db*/);
333 krb5_error_code
334 hdb_clear_extension (
335 krb5_context /*context*/,
336 hdb_entry */*entry*/,
337 int /*type*/);
339 krb5_error_code
340 hdb_clear_master_key (
341 krb5_context /*context*/,
342 HDB */*db*/);
344 krb5_error_code
345 hdb_create (
346 krb5_context /*context*/,
347 HDB **/*db*/,
348 const char */*filename*/);
350 krb5_error_code
351 hdb_db_create (
352 krb5_context /*context*/,
353 HDB **/*db*/,
354 const char */*filename*/);
356 krb5_error_code
357 hdb_enctype2key (
358 krb5_context /*context*/,
359 hdb_entry */*e*/,
360 krb5_enctype /*enctype*/,
361 Key **/*key*/);
363 krb5_error_code
364 hdb_entry2string (
365 krb5_context /*context*/,
366 hdb_entry */*ent*/,
367 char **/*str*/);
370 hdb_entry2value (
371 krb5_context /*context*/,
372 hdb_entry */*ent*/,
373 krb5_data */*value*/);
375 krb5_error_code
376 hdb_entry_check_mandatory (
377 krb5_context /*context*/,
378 const hdb_entry */*ent*/);
381 hdb_entry_clear_password (
382 krb5_context /*context*/,
383 hdb_entry */*entry*/);
386 hdb_entry_get_password (
387 krb5_context /*context*/,
388 HDB */*db*/,
389 const hdb_entry */*entry*/,
390 char **/*p*/);
392 krb5_error_code
393 hdb_entry_get_pkinit_acl (
394 const hdb_entry */*entry*/,
395 const HDB_Ext_PKINIT_acl **/*a*/);
397 krb5_error_code
398 hdb_entry_get_pw_change_time (
399 const hdb_entry */*entry*/,
400 time_t */*t*/);
403 hdb_entry_set_password (
404 krb5_context /*context*/,
405 HDB */*db*/,
406 hdb_entry */*entry*/,
407 const char */*p*/);
409 krb5_error_code
410 hdb_entry_set_pw_change_time (
411 krb5_context /*context*/,
412 hdb_entry */*entry*/,
413 time_t /*t*/);
415 HDB_extension *
416 hdb_find_extension (
417 const hdb_entry */*entry*/,
418 int /*type*/);
420 krb5_error_code
421 hdb_foreach (
422 krb5_context /*context*/,
423 HDB */*db*/,
424 unsigned /*flags*/,
425 hdb_foreach_func_t /*func*/,
426 void */*data*/);
428 void
429 hdb_free_entry (
430 krb5_context /*context*/,
431 hdb_entry_ex */*ent*/);
433 void
434 hdb_free_key (Key */*key*/);
436 void
437 hdb_free_keys (
438 krb5_context /*context*/,
439 int /*len*/,
440 Key */*keys*/);
442 void
443 hdb_free_master_key (
444 krb5_context /*context*/,
445 hdb_master_key /*mkey*/);
447 krb5_error_code
448 hdb_generate_key_set (
449 krb5_context /*context*/,
450 krb5_principal /*principal*/,
451 Key **/*ret_key_set*/,
452 size_t */*nkeyset*/,
453 int /*no_salt*/);
455 krb5_error_code
456 hdb_generate_key_set_password (
457 krb5_context /*context*/,
458 krb5_principal /*principal*/,
459 const char */*password*/,
460 Key **/*keys*/,
461 size_t */*num_keys*/);
463 krb5_error_code
464 hdb_init_db (
465 krb5_context /*context*/,
466 HDB */*db*/);
469 hdb_key2principal (
470 krb5_context /*context*/,
471 krb5_data */*key*/,
472 krb5_principal /*p*/);
474 krb5_error_code
475 hdb_ldap_common (
476 krb5_context /*context*/,
477 HDB ** /*db*/,
478 const char */*search_base*/,
479 const char */*url*/);
481 krb5_error_code
482 hdb_ldap_create (
483 krb5_context /*context*/,
484 HDB ** /*db*/,
485 const char */*arg*/);
487 krb5_error_code
488 hdb_ldapi_create (
489 krb5_context /*context*/,
490 HDB ** /*db*/,
491 const char */*arg*/);
493 krb5_error_code
494 hdb_list_builtin (
495 krb5_context /*context*/,
496 char **/*list*/);
498 krb5_error_code
499 hdb_lock (
500 int /*fd*/,
501 int /*operation*/);
503 krb5_error_code
504 hdb_ndbm_create (
505 krb5_context /*context*/,
506 HDB **/*db*/,
507 const char */*filename*/);
509 krb5_error_code
510 hdb_next_enctype2key (
511 krb5_context /*context*/,
512 const hdb_entry */*e*/,
513 krb5_enctype /*enctype*/,
514 Key **/*key*/);
517 hdb_principal2key (
518 krb5_context /*context*/,
519 krb5_const_principal /*p*/,
520 krb5_data */*key*/);
522 krb5_error_code
523 hdb_print_entry (
524 krb5_context /*context*/,
525 HDB */*db*/,
526 hdb_entry_ex */*entry*/,
527 void */*data*/);
529 krb5_error_code
530 hdb_process_master_key (
531 krb5_context /*context*/,
532 int /*kvno*/,
533 krb5_keyblock */*key*/,
534 krb5_enctype /*etype*/,
535 hdb_master_key */*mkey*/);
537 krb5_error_code
538 hdb_read_master_key (
539 krb5_context /*context*/,
540 const char */*filename*/,
541 hdb_master_key */*mkey*/);
543 krb5_error_code
544 hdb_replace_extension (
545 krb5_context /*context*/,
546 hdb_entry */*entry*/,
547 const HDB_extension */*ext*/);
549 krb5_error_code
550 hdb_seal_key (
551 krb5_context /*context*/,
552 HDB */*db*/,
553 Key */*k*/);
555 krb5_error_code
556 hdb_seal_key_mkey (
557 krb5_context /*context*/,
558 Key */*k*/,
559 hdb_master_key /*mkey*/);
561 krb5_error_code
562 hdb_seal_keys (
563 krb5_context /*context*/,
564 HDB */*db*/,
565 hdb_entry */*ent*/);
567 krb5_error_code
568 hdb_seal_keys_mkey (
569 krb5_context /*context*/,
570 hdb_entry */*ent*/,
571 hdb_master_key /*mkey*/);
573 krb5_error_code
574 hdb_set_master_key (
575 krb5_context /*context*/,
576 HDB */*db*/,
577 krb5_keyblock */*key*/);
579 krb5_error_code
580 hdb_set_master_keyfile (
581 krb5_context /*context*/,
582 HDB */*db*/,
583 const char */*keyfile*/);
585 krb5_error_code
586 hdb_unlock (int /*fd*/);
588 krb5_error_code
589 hdb_unseal_key (
590 krb5_context /*context*/,
591 HDB */*db*/,
592 Key */*k*/);
594 krb5_error_code
595 hdb_unseal_key_mkey (
596 krb5_context /*context*/,
597 Key */*k*/,
598 hdb_master_key /*mkey*/);
600 krb5_error_code
601 hdb_unseal_keys (
602 krb5_context /*context*/,
603 HDB */*db*/,
604 hdb_entry */*ent*/);
606 krb5_error_code
607 hdb_unseal_keys_mkey (
608 krb5_context /*context*/,
609 hdb_entry */*ent*/,
610 hdb_master_key /*mkey*/);
613 hdb_value2entry (
614 krb5_context /*context*/,
615 krb5_data */*value*/,
616 hdb_entry */*ent*/);
618 krb5_error_code
619 hdb_write_master_key (
620 krb5_context /*context*/,
621 const char */*filename*/,
622 hdb_master_key /*mkey*/);
624 void
625 initialize_hdb_error_table_r (struct et_list **/*list*/);
627 HDBFlags
628 int2HDBFlags (unsigned /*n*/);
630 size_t
631 length_Event (const Event */*data*/);
633 size_t
634 length_GENERATION (const GENERATION */*data*/);
636 size_t
637 length_HDBFlags (const HDBFlags */*data*/);
639 size_t
640 length_HDB_Ext_Aliases (const HDB_Ext_Aliases */*data*/);
642 size_t
643 length_HDB_Ext_Constrained_delegation_acl (const HDB_Ext_Constrained_delegation_acl */*data*/);
645 size_t
646 length_HDB_Ext_Lan_Manager_OWF (const HDB_Ext_Lan_Manager_OWF */*data*/);
648 size_t
649 length_HDB_Ext_PKINIT_acl (const HDB_Ext_PKINIT_acl */*data*/);
651 size_t
652 length_HDB_Ext_PKINIT_certificate (const HDB_Ext_PKINIT_certificate */*data*/);
654 size_t
655 length_HDB_Ext_Password (const HDB_Ext_Password */*data*/);
657 size_t
658 length_HDB_extension (const HDB_extension */*data*/);
660 size_t
661 length_HDB_extensions (const HDB_extensions */*data*/);
663 size_t
664 length_Key (const Key */*data*/);
666 size_t
667 length_Salt (const Salt */*data*/);
669 size_t
670 length_hdb_entry (const hdb_entry */*data*/);
672 #ifdef __cplusplus
674 #endif
676 #endif /* __hdb_protos_h__ */