c221175e4107768d0110a1ca832ec611c2bc5e3c
[kai/samba-autobuild/.git] / source4 / heimdal / lib / hdb / hdb-protos.h
1 /* This is a generated file */
2 #ifndef __hdb_protos_h__
3 #define __hdb_protos_h__
4
5 #include <stdarg.h>
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 unsigned
12 HDBFlags2int (HDBFlags /*f*/);
13
14 int
15 copy_Event (
16         const Event */*from*/,
17         Event */*to*/);
18
19 int
20 copy_GENERATION (
21         const GENERATION */*from*/,
22         GENERATION */*to*/);
23
24 int
25 copy_HDBFlags (
26         const HDBFlags */*from*/,
27         HDBFlags */*to*/);
28
29 int
30 copy_HDB_Ext_Aliases (
31         const HDB_Ext_Aliases */*from*/,
32         HDB_Ext_Aliases */*to*/);
33
34 int
35 copy_HDB_Ext_Constrained_delegation_acl (
36         const HDB_Ext_Constrained_delegation_acl */*from*/,
37         HDB_Ext_Constrained_delegation_acl */*to*/);
38
39 int
40 copy_HDB_Ext_Lan_Manager_OWF (
41         const HDB_Ext_Lan_Manager_OWF */*from*/,
42         HDB_Ext_Lan_Manager_OWF */*to*/);
43
44 int
45 copy_HDB_Ext_PKINIT_acl (
46         const HDB_Ext_PKINIT_acl */*from*/,
47         HDB_Ext_PKINIT_acl */*to*/);
48
49 int
50 copy_HDB_Ext_PKINIT_certificate (
51         const HDB_Ext_PKINIT_certificate */*from*/,
52         HDB_Ext_PKINIT_certificate */*to*/);
53
54 int
55 copy_HDB_Ext_Password (
56         const HDB_Ext_Password */*from*/,
57         HDB_Ext_Password */*to*/);
58
59 int
60 copy_HDB_extension (
61         const HDB_extension */*from*/,
62         HDB_extension */*to*/);
63
64 int
65 copy_HDB_extensions (
66         const HDB_extensions */*from*/,
67         HDB_extensions */*to*/);
68
69 int
70 copy_Key (
71         const Key */*from*/,
72         Key */*to*/);
73
74 int
75 copy_Salt (
76         const Salt */*from*/,
77         Salt */*to*/);
78
79 int
80 copy_hdb_entry (
81         const hdb_entry */*from*/,
82         hdb_entry */*to*/);
83
84 int
85 decode_Event (
86         const unsigned char */*p*/,
87         size_t /*len*/,
88         Event */*data*/,
89         size_t */*size*/);
90
91 int
92 decode_GENERATION (
93         const unsigned char */*p*/,
94         size_t /*len*/,
95         GENERATION */*data*/,
96         size_t */*size*/);
97
98 int
99 decode_HDBFlags (
100         const unsigned char */*p*/,
101         size_t /*len*/,
102         HDBFlags */*data*/,
103         size_t */*size*/);
104
105 int
106 decode_HDB_Ext_Aliases (
107         const unsigned char */*p*/,
108         size_t /*len*/,
109         HDB_Ext_Aliases */*data*/,
110         size_t */*size*/);
111
112 int
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*/);
118
119 int
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*/);
125
126 int
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*/);
132
133 int
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*/);
139
140 int
141 decode_HDB_Ext_Password (
142         const unsigned char */*p*/,
143         size_t /*len*/,
144         HDB_Ext_Password */*data*/,
145         size_t */*size*/);
146
147 int
148 decode_HDB_extension (
149         const unsigned char */*p*/,
150         size_t /*len*/,
151         HDB_extension */*data*/,
152         size_t */*size*/);
153
154 int
155 decode_HDB_extensions (
156         const unsigned char */*p*/,
157         size_t /*len*/,
158         HDB_extensions */*data*/,
159         size_t */*size*/);
160
161 int
162 decode_Key (
163         const unsigned char */*p*/,
164         size_t /*len*/,
165         Key */*data*/,
166         size_t */*size*/);
167
168 int
169 decode_Salt (
170         const unsigned char */*p*/,
171         size_t /*len*/,
172         Salt */*data*/,
173         size_t */*size*/);
174
175 int
176 decode_hdb_entry (
177         const unsigned char */*p*/,
178         size_t /*len*/,
179         hdb_entry */*data*/,
180         size_t */*size*/);
181
182 int
183 encode_Event (
184         unsigned char */*p*/,
185         size_t /*len*/,
186         const Event */*data*/,
187         size_t */*size*/);
188
189 int
190 encode_GENERATION (
191         unsigned char */*p*/,
192         size_t /*len*/,
193         const GENERATION */*data*/,
194         size_t */*size*/);
195
196 int
197 encode_HDBFlags (
198         unsigned char */*p*/,
199         size_t /*len*/,
200         const HDBFlags */*data*/,
201         size_t */*size*/);
202
203 int
204 encode_HDB_Ext_Aliases (
205         unsigned char */*p*/,
206         size_t /*len*/,
207         const HDB_Ext_Aliases */*data*/,
208         size_t */*size*/);
209
210 int
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*/);
216
217 int
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*/);
223
224 int
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*/);
230
231 int
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*/);
237
238 int
239 encode_HDB_Ext_Password (
240         unsigned char */*p*/,
241         size_t /*len*/,
242         const HDB_Ext_Password */*data*/,
243         size_t */*size*/);
244
245 int
246 encode_HDB_extension (
247         unsigned char */*p*/,
248         size_t /*len*/,
249         const HDB_extension */*data*/,
250         size_t */*size*/);
251
252 int
253 encode_HDB_extensions (
254         unsigned char */*p*/,
255         size_t /*len*/,
256         const HDB_extensions */*data*/,
257         size_t */*size*/);
258
259 int
260 encode_Key (
261         unsigned char */*p*/,
262         size_t /*len*/,
263         const Key */*data*/,
264         size_t */*size*/);
265
266 int
267 encode_Salt (
268         unsigned char */*p*/,
269         size_t /*len*/,
270         const Salt */*data*/,
271         size_t */*size*/);
272
273 int
274 encode_hdb_entry (
275         unsigned char */*p*/,
276         size_t /*len*/,
277         const hdb_entry */*data*/,
278         size_t */*size*/);
279
280 void
281 free_Event (Event */*data*/);
282
283 void
284 free_GENERATION (GENERATION */*data*/);
285
286 void
287 free_HDBFlags (HDBFlags */*data*/);
288
289 void
290 free_HDB_Ext_Aliases (HDB_Ext_Aliases */*data*/);
291
292 void
293 free_HDB_Ext_Constrained_delegation_acl (HDB_Ext_Constrained_delegation_acl */*data*/);
294
295 void
296 free_HDB_Ext_Lan_Manager_OWF (HDB_Ext_Lan_Manager_OWF */*data*/);
297
298 void
299 free_HDB_Ext_PKINIT_acl (HDB_Ext_PKINIT_acl */*data*/);
300
301 void
302 free_HDB_Ext_PKINIT_certificate (HDB_Ext_PKINIT_certificate */*data*/);
303
304 void
305 free_HDB_Ext_Password (HDB_Ext_Password */*data*/);
306
307 void
308 free_HDB_extension (HDB_extension */*data*/);
309
310 void
311 free_HDB_extensions (HDB_extensions */*data*/);
312
313 void
314 free_Key (Key */*data*/);
315
316 void
317 free_Salt (Salt */*data*/);
318
319 void
320 free_hdb_entry (hdb_entry */*data*/);
321
322 krb5_error_code
323 hdb_add_master_key (
324         krb5_context /*context*/,
325         krb5_keyblock */*key*/,
326         hdb_master_key */*inout*/);
327
328 krb5_error_code
329 hdb_check_db_format (
330         krb5_context /*context*/,
331         HDB */*db*/);
332
333 krb5_error_code
334 hdb_clear_extension (
335         krb5_context /*context*/,
336         hdb_entry */*entry*/,
337         int /*type*/);
338
339 krb5_error_code
340 hdb_clear_master_key (
341         krb5_context /*context*/,
342         HDB */*db*/);
343
344 krb5_error_code
345 hdb_create (
346         krb5_context /*context*/,
347         HDB **/*db*/,
348         const char */*filename*/);
349
350 krb5_error_code
351 hdb_db_create (
352         krb5_context /*context*/,
353         HDB **/*db*/,
354         const char */*filename*/);
355
356 krb5_error_code
357 hdb_enctype2key (
358         krb5_context /*context*/,
359         hdb_entry */*e*/,
360         krb5_enctype /*enctype*/,
361         Key **/*key*/);
362
363 krb5_error_code
364 hdb_entry2string (
365         krb5_context /*context*/,
366         hdb_entry */*ent*/,
367         char **/*str*/);
368
369 int
370 hdb_entry2value (
371         krb5_context /*context*/,
372         hdb_entry */*ent*/,
373         krb5_data */*value*/);
374
375 krb5_error_code
376 hdb_entry_check_mandatory (
377         krb5_context /*context*/,
378         const hdb_entry */*ent*/);
379
380 int
381 hdb_entry_clear_password (
382         krb5_context /*context*/,
383         hdb_entry */*entry*/);
384
385 int
386 hdb_entry_get_password (
387         krb5_context /*context*/,
388         HDB */*db*/,
389         const hdb_entry */*entry*/,
390         char **/*p*/);
391
392 krb5_error_code
393 hdb_entry_get_pkinit_acl (
394         const hdb_entry */*entry*/,
395         const HDB_Ext_PKINIT_acl **/*a*/);
396
397 krb5_error_code
398 hdb_entry_get_pw_change_time (
399         const hdb_entry */*entry*/,
400         time_t */*t*/);
401
402 int
403 hdb_entry_set_password (
404         krb5_context /*context*/,
405         HDB */*db*/,
406         hdb_entry */*entry*/,
407         const char */*p*/);
408
409 krb5_error_code
410 hdb_entry_set_pw_change_time (
411         krb5_context /*context*/,
412         hdb_entry */*entry*/,
413         time_t /*t*/);
414
415 HDB_extension *
416 hdb_find_extension (
417         const hdb_entry */*entry*/,
418         int /*type*/);
419
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*/);
427
428 void
429 hdb_free_entry (
430         krb5_context /*context*/,
431         hdb_entry_ex */*ent*/);
432
433 void
434 hdb_free_key (Key */*key*/);
435
436 void
437 hdb_free_keys (
438         krb5_context /*context*/,
439         int /*len*/,
440         Key */*keys*/);
441
442 void
443 hdb_free_master_key (
444         krb5_context /*context*/,
445         hdb_master_key /*mkey*/);
446
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*/);
454
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*/);
462
463 krb5_error_code
464 hdb_init_db (
465         krb5_context /*context*/,
466         HDB */*db*/);
467
468 int
469 hdb_key2principal (
470         krb5_context /*context*/,
471         krb5_data */*key*/,
472         krb5_principal /*p*/);
473
474 krb5_error_code
475 hdb_ldap_common (
476         krb5_context /*context*/,
477         HDB ** /*db*/,
478         const char */*search_base*/,
479         const char */*url*/);
480
481 krb5_error_code
482 hdb_ldap_create (
483         krb5_context /*context*/,
484         HDB ** /*db*/,
485         const char */*arg*/);
486
487 krb5_error_code
488 hdb_ldapi_create (
489         krb5_context /*context*/,
490         HDB ** /*db*/,
491         const char */*arg*/);
492
493 krb5_error_code
494 hdb_list_builtin (
495         krb5_context /*context*/,
496         char **/*list*/);
497
498 krb5_error_code
499 hdb_lock (
500         int /*fd*/,
501         int /*operation*/);
502
503 krb5_error_code
504 hdb_ndbm_create (
505         krb5_context /*context*/,
506         HDB **/*db*/,
507         const char */*filename*/);
508
509 krb5_error_code
510 hdb_next_enctype2key (
511         krb5_context /*context*/,
512         const hdb_entry */*e*/,
513         krb5_enctype /*enctype*/,
514         Key **/*key*/);
515
516 int
517 hdb_principal2key (
518         krb5_context /*context*/,
519         krb5_const_principal /*p*/,
520         krb5_data */*key*/);
521
522 krb5_error_code
523 hdb_print_entry (
524         krb5_context /*context*/,
525         HDB */*db*/,
526         hdb_entry_ex */*entry*/,
527         void */*data*/);
528
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*/);
536
537 krb5_error_code
538 hdb_read_master_key (
539         krb5_context /*context*/,
540         const char */*filename*/,
541         hdb_master_key */*mkey*/);
542
543 krb5_error_code
544 hdb_replace_extension (
545         krb5_context /*context*/,
546         hdb_entry */*entry*/,
547         const HDB_extension */*ext*/);
548
549 krb5_error_code
550 hdb_seal_key (
551         krb5_context /*context*/,
552         HDB */*db*/,
553         Key */*k*/);
554
555 krb5_error_code
556 hdb_seal_key_mkey (
557         krb5_context /*context*/,
558         Key */*k*/,
559         hdb_master_key /*mkey*/);
560
561 krb5_error_code
562 hdb_seal_keys (
563         krb5_context /*context*/,
564         HDB */*db*/,
565         hdb_entry */*ent*/);
566
567 krb5_error_code
568 hdb_seal_keys_mkey (
569         krb5_context /*context*/,
570         hdb_entry */*ent*/,
571         hdb_master_key /*mkey*/);
572
573 krb5_error_code
574 hdb_set_master_key (
575         krb5_context /*context*/,
576         HDB */*db*/,
577         krb5_keyblock */*key*/);
578
579 krb5_error_code
580 hdb_set_master_keyfile (
581         krb5_context /*context*/,
582         HDB */*db*/,
583         const char */*keyfile*/);
584
585 krb5_error_code
586 hdb_unlock (int /*fd*/);
587
588 krb5_error_code
589 hdb_unseal_key (
590         krb5_context /*context*/,
591         HDB */*db*/,
592         Key */*k*/);
593
594 krb5_error_code
595 hdb_unseal_key_mkey (
596         krb5_context /*context*/,
597         Key */*k*/,
598         hdb_master_key /*mkey*/);
599
600 krb5_error_code
601 hdb_unseal_keys (
602         krb5_context /*context*/,
603         HDB */*db*/,
604         hdb_entry */*ent*/);
605
606 krb5_error_code
607 hdb_unseal_keys_mkey (
608         krb5_context /*context*/,
609         hdb_entry */*ent*/,
610         hdb_master_key /*mkey*/);
611
612 int
613 hdb_value2entry (
614         krb5_context /*context*/,
615         krb5_data */*value*/,
616         hdb_entry */*ent*/);
617
618 krb5_error_code
619 hdb_write_master_key (
620         krb5_context /*context*/,
621         const char */*filename*/,
622         hdb_master_key /*mkey*/);
623
624 void
625 initialize_hdb_error_table_r (struct et_list **/*list*/);
626
627 HDBFlags
628 int2HDBFlags (unsigned /*n*/);
629
630 size_t
631 length_Event (const Event */*data*/);
632
633 size_t
634 length_GENERATION (const GENERATION */*data*/);
635
636 size_t
637 length_HDBFlags (const HDBFlags */*data*/);
638
639 size_t
640 length_HDB_Ext_Aliases (const HDB_Ext_Aliases */*data*/);
641
642 size_t
643 length_HDB_Ext_Constrained_delegation_acl (const HDB_Ext_Constrained_delegation_acl */*data*/);
644
645 size_t
646 length_HDB_Ext_Lan_Manager_OWF (const HDB_Ext_Lan_Manager_OWF */*data*/);
647
648 size_t
649 length_HDB_Ext_PKINIT_acl (const HDB_Ext_PKINIT_acl */*data*/);
650
651 size_t
652 length_HDB_Ext_PKINIT_certificate (const HDB_Ext_PKINIT_certificate */*data*/);
653
654 size_t
655 length_HDB_Ext_Password (const HDB_Ext_Password */*data*/);
656
657 size_t
658 length_HDB_extension (const HDB_extension */*data*/);
659
660 size_t
661 length_HDB_extensions (const HDB_extensions */*data*/);
662
663 size_t
664 length_Key (const Key */*data*/);
665
666 size_t
667 length_Salt (const Salt */*data*/);
668
669 size_t
670 length_hdb_entry (const hdb_entry */*data*/);
671
672 #ifdef __cplusplus
673 }
674 #endif
675
676 #endif /* __hdb_protos_h__ */