1 /* This is a generated file */
2 #ifndef __hdb_protos_h__
3 #define __hdb_protos_h__
12 HDBFlags2int (HDBFlags
/*f*/);
16 const Event */
*from*/
,
21 const GENERATION */
*from*/
,
26 const HDBFlags */
*from*/
,
30 copy_HDB_Ext_Aliases (
31 const HDB_Ext_Aliases */
*from*/
,
32 HDB_Ext_Aliases */
*to*/
);
35 copy_HDB_Ext_Constrained_delegation_acl (
36 const HDB_Ext_Constrained_delegation_acl */
*from*/
,
37 HDB_Ext_Constrained_delegation_acl */
*to*/
);
40 copy_HDB_Ext_Lan_Manager_OWF (
41 const HDB_Ext_Lan_Manager_OWF */
*from*/
,
42 HDB_Ext_Lan_Manager_OWF */
*to*/
);
45 copy_HDB_Ext_PKINIT_acl (
46 const HDB_Ext_PKINIT_acl */
*from*/
,
47 HDB_Ext_PKINIT_acl */
*to*/
);
50 copy_HDB_Ext_PKINIT_certificate (
51 const HDB_Ext_PKINIT_certificate */
*from*/
,
52 HDB_Ext_PKINIT_certificate */
*to*/
);
55 copy_HDB_Ext_Password (
56 const HDB_Ext_Password */
*from*/
,
57 HDB_Ext_Password */
*to*/
);
61 const HDB_extension */
*from*/
,
62 HDB_extension */
*to*/
);
66 const HDB_extensions */
*from*/
,
67 HDB_extensions */
*to*/
);
81 const hdb_entry */
*from*/
,
86 const unsigned char */
*p*/
,
93 const unsigned char */
*p*/
,
100 const unsigned char */
*p*/
,
106 decode_HDB_Ext_Aliases (
107 const unsigned char */
*p*/
,
109 HDB_Ext_Aliases */
*data*/
,
113 decode_HDB_Ext_Constrained_delegation_acl (
114 const unsigned char */
*p*/
,
116 HDB_Ext_Constrained_delegation_acl */
*data*/
,
120 decode_HDB_Ext_Lan_Manager_OWF (
121 const unsigned char */
*p*/
,
123 HDB_Ext_Lan_Manager_OWF */
*data*/
,
127 decode_HDB_Ext_PKINIT_acl (
128 const unsigned char */
*p*/
,
130 HDB_Ext_PKINIT_acl */
*data*/
,
134 decode_HDB_Ext_PKINIT_certificate (
135 const unsigned char */
*p*/
,
137 HDB_Ext_PKINIT_certificate */
*data*/
,
141 decode_HDB_Ext_Password (
142 const unsigned char */
*p*/
,
144 HDB_Ext_Password */
*data*/
,
148 decode_HDB_extension (
149 const unsigned char */
*p*/
,
151 HDB_extension */
*data*/
,
155 decode_HDB_extensions (
156 const unsigned char */
*p*/
,
158 HDB_extensions */
*data*/
,
163 const unsigned char */
*p*/
,
170 const unsigned char */
*p*/
,
177 const unsigned char */
*p*/
,
184 unsigned char */
*p*/
,
186 const Event */
*data*/
,
191 unsigned char */
*p*/
,
193 const GENERATION */
*data*/
,
198 unsigned char */
*p*/
,
200 const HDBFlags */
*data*/
,
204 encode_HDB_Ext_Aliases (
205 unsigned char */
*p*/
,
207 const HDB_Ext_Aliases */
*data*/
,
211 encode_HDB_Ext_Constrained_delegation_acl (
212 unsigned char */
*p*/
,
214 const HDB_Ext_Constrained_delegation_acl */
*data*/
,
218 encode_HDB_Ext_Lan_Manager_OWF (
219 unsigned char */
*p*/
,
221 const HDB_Ext_Lan_Manager_OWF */
*data*/
,
225 encode_HDB_Ext_PKINIT_acl (
226 unsigned char */
*p*/
,
228 const HDB_Ext_PKINIT_acl */
*data*/
,
232 encode_HDB_Ext_PKINIT_certificate (
233 unsigned char */
*p*/
,
235 const HDB_Ext_PKINIT_certificate */
*data*/
,
239 encode_HDB_Ext_Password (
240 unsigned char */
*p*/
,
242 const HDB_Ext_Password */
*data*/
,
246 encode_HDB_extension (
247 unsigned char */
*p*/
,
249 const HDB_extension */
*data*/
,
253 encode_HDB_extensions (
254 unsigned char */
*p*/
,
256 const HDB_extensions */
*data*/
,
261 unsigned char */
*p*/
,
268 unsigned char */
*p*/
,
270 const Salt */
*data*/
,
275 unsigned char */
*p*/
,
277 const hdb_entry */
*data*/
,
281 free_Event (Event */
*data*/
);
284 free_GENERATION (GENERATION */
*data*/
);
287 free_HDBFlags (HDBFlags */
*data*/
);
290 free_HDB_Ext_Aliases (HDB_Ext_Aliases */
*data*/
);
293 free_HDB_Ext_Constrained_delegation_acl (HDB_Ext_Constrained_delegation_acl */
*data*/
);
296 free_HDB_Ext_Lan_Manager_OWF (HDB_Ext_Lan_Manager_OWF */
*data*/
);
299 free_HDB_Ext_PKINIT_acl (HDB_Ext_PKINIT_acl */
*data*/
);
302 free_HDB_Ext_PKINIT_certificate (HDB_Ext_PKINIT_certificate */
*data*/
);
305 free_HDB_Ext_Password (HDB_Ext_Password */
*data*/
);
308 free_HDB_extension (HDB_extension */
*data*/
);
311 free_HDB_extensions (HDB_extensions */
*data*/
);
314 free_Key (Key */
*data*/
);
317 free_Salt (Salt */
*data*/
);
320 free_hdb_entry (hdb_entry */
*data*/
);
324 krb5_context
/*context*/,
325 krb5_keyblock */
*key*/
,
326 hdb_master_key */
*inout*/
);
329 hdb_check_db_format (
330 krb5_context
/*context*/,
334 hdb_clear_extension (
335 krb5_context
/*context*/,
336 hdb_entry */
*entry*/
,
340 hdb_clear_master_key (
341 krb5_context
/*context*/,
346 krb5_context
/*context*/,
348 const char */
*filename*/
);
352 krb5_context
/*context*/,
354 const char */
*filename*/
);
358 krb5_context
/*context*/,
360 krb5_enctype
/*enctype*/,
365 krb5_context
/*context*/,
371 krb5_context
/*context*/,
373 krb5_data */
*value*/
);
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*/,
389 const hdb_entry */
*entry*/
,
393 hdb_entry_get_pkinit_acl (
394 const hdb_entry */
*entry*/
,
395 const HDB_Ext_PKINIT_acl
**/
*a*/
);
398 hdb_entry_get_pw_change_time (
399 const hdb_entry */
*entry*/
,
403 hdb_entry_set_password (
404 krb5_context
/*context*/,
406 hdb_entry */
*entry*/
,
410 hdb_entry_set_pw_change_time (
411 krb5_context
/*context*/,
412 hdb_entry */
*entry*/
,
417 const hdb_entry */
*entry*/
,
422 krb5_context
/*context*/,
425 hdb_foreach_func_t
/*func*/,
430 krb5_context
/*context*/,
431 hdb_entry_ex */
*ent*/
);
434 hdb_free_key (Key */
*key*/
);
438 krb5_context
/*context*/,
443 hdb_free_master_key (
444 krb5_context
/*context*/,
445 hdb_master_key
/*mkey*/);
448 hdb_generate_key_set (
449 krb5_context
/*context*/,
450 krb5_principal
/*principal*/,
451 Key
**/
*ret_key_set*/
,
456 hdb_generate_key_set_password (
457 krb5_context
/*context*/,
458 krb5_principal
/*principal*/,
459 const char */
*password*/
,
461 size_t */
*num_keys*/
);
465 krb5_context
/*context*/,
470 krb5_context
/*context*/,
472 krb5_principal
/*p*/);
476 krb5_context
/*context*/,
478 const char */
*search_base*/
,
479 const char */
*url*/
);
483 krb5_context
/*context*/,
485 const char */
*arg*/
);
489 krb5_context
/*context*/,
491 const char */
*arg*/
);
495 krb5_context
/*context*/,
505 krb5_context
/*context*/,
507 const char */
*filename*/
);
510 hdb_next_enctype2key (
511 krb5_context
/*context*/,
512 const hdb_entry */
*e*/
,
513 krb5_enctype
/*enctype*/,
518 krb5_context
/*context*/,
519 krb5_const_principal
/*p*/,
524 krb5_context
/*context*/,
526 hdb_entry_ex */
*entry*/
,
530 hdb_process_master_key (
531 krb5_context
/*context*/,
533 krb5_keyblock */
*key*/
,
534 krb5_enctype
/*etype*/,
535 hdb_master_key */
*mkey*/
);
538 hdb_read_master_key (
539 krb5_context
/*context*/,
540 const char */
*filename*/
,
541 hdb_master_key */
*mkey*/
);
544 hdb_replace_extension (
545 krb5_context
/*context*/,
546 hdb_entry */
*entry*/
,
547 const HDB_extension */
*ext*/
);
551 krb5_context
/*context*/,
557 krb5_context
/*context*/,
559 hdb_master_key
/*mkey*/);
563 krb5_context
/*context*/,
569 krb5_context
/*context*/,
571 hdb_master_key
/*mkey*/);
575 krb5_context
/*context*/,
577 krb5_keyblock */
*key*/
);
580 hdb_set_master_keyfile (
581 krb5_context
/*context*/,
583 const char */
*keyfile*/
);
586 hdb_unlock (int /*fd*/);
590 krb5_context
/*context*/,
595 hdb_unseal_key_mkey (
596 krb5_context
/*context*/,
598 hdb_master_key
/*mkey*/);
602 krb5_context
/*context*/,
607 hdb_unseal_keys_mkey (
608 krb5_context
/*context*/,
610 hdb_master_key
/*mkey*/);
614 krb5_context
/*context*/,
615 krb5_data */
*value*/
,
619 hdb_write_master_key (
620 krb5_context
/*context*/,
621 const char */
*filename*/
,
622 hdb_master_key
/*mkey*/);
625 initialize_hdb_error_table_r (struct et_list
**/
*list*/
);
628 int2HDBFlags (unsigned /*n*/);
631 length_Event (const Event */
*data*/
);
634 length_GENERATION (const GENERATION */
*data*/
);
637 length_HDBFlags (const HDBFlags */
*data*/
);
640 length_HDB_Ext_Aliases (const HDB_Ext_Aliases */
*data*/
);
643 length_HDB_Ext_Constrained_delegation_acl (const HDB_Ext_Constrained_delegation_acl */
*data*/
);
646 length_HDB_Ext_Lan_Manager_OWF (const HDB_Ext_Lan_Manager_OWF */
*data*/
);
649 length_HDB_Ext_PKINIT_acl (const HDB_Ext_PKINIT_acl */
*data*/
);
652 length_HDB_Ext_PKINIT_certificate (const HDB_Ext_PKINIT_certificate */
*data*/
);
655 length_HDB_Ext_Password (const HDB_Ext_Password */
*data*/
);
658 length_HDB_extension (const HDB_extension */
*data*/
);
661 length_HDB_extensions (const HDB_extensions */
*data*/
);
664 length_Key (const Key */
*data*/
);
667 length_Salt (const Salt */
*data*/
);
670 length_hdb_entry (const hdb_entry */
*data*/
);
676 #endif /* __hdb_protos_h__ */