heimdal_build: autogenerate table files in heimdal/lib/wind/
[ab/samba.git/.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 krb5_error_code
12 hdb_add_master_key (
13         krb5_context /*context*/,
14         krb5_keyblock */*key*/,
15         hdb_master_key */*inout*/);
16
17 krb5_error_code
18 hdb_check_db_format (
19         krb5_context /*context*/,
20         HDB */*db*/);
21
22 krb5_error_code
23 hdb_clear_extension (
24         krb5_context /*context*/,
25         hdb_entry */*entry*/,
26         int /*type*/);
27
28 krb5_error_code
29 hdb_clear_master_key (
30         krb5_context /*context*/,
31         HDB */*db*/);
32
33 krb5_error_code
34 hdb_create (
35         krb5_context /*context*/,
36         HDB **/*db*/,
37         const char */*filename*/);
38
39 krb5_error_code
40 hdb_db_create (
41         krb5_context /*context*/,
42         HDB **/*db*/,
43         const char */*filename*/);
44
45 const char *
46 hdb_db_dir (krb5_context /*context*/);
47
48 const char *
49 hdb_dbinfo_get_acl_file (
50         krb5_context /*context*/,
51         struct hdb_dbinfo */*dbp*/);
52
53 const krb5_config_binding *
54 hdb_dbinfo_get_binding (
55         krb5_context /*context*/,
56         struct hdb_dbinfo */*dbp*/);
57
58 const char *
59 hdb_dbinfo_get_dbname (
60         krb5_context /*context*/,
61         struct hdb_dbinfo */*dbp*/);
62
63 const char *
64 hdb_dbinfo_get_label (
65         krb5_context /*context*/,
66         struct hdb_dbinfo */*dbp*/);
67
68 const char *
69 hdb_dbinfo_get_log_file (
70         krb5_context /*context*/,
71         struct hdb_dbinfo */*dbp*/);
72
73 const char *
74 hdb_dbinfo_get_mkey_file (
75         krb5_context /*context*/,
76         struct hdb_dbinfo */*dbp*/);
77
78 struct hdb_dbinfo *
79 hdb_dbinfo_get_next (
80         struct hdb_dbinfo */*dbp*/,
81         struct hdb_dbinfo */*dbprevp*/);
82
83 const char *
84 hdb_dbinfo_get_realm (
85         krb5_context /*context*/,
86         struct hdb_dbinfo */*dbp*/);
87
88 const char *
89 hdb_default_db (krb5_context /*context*/);
90
91 krb5_error_code
92 hdb_enctype2key (
93         krb5_context /*context*/,
94         hdb_entry */*e*/,
95         krb5_enctype /*enctype*/,
96         Key **/*key*/);
97
98 krb5_error_code
99 hdb_entry2string (
100         krb5_context /*context*/,
101         hdb_entry */*ent*/,
102         char **/*str*/);
103
104 int
105 hdb_entry2value (
106         krb5_context /*context*/,
107         const hdb_entry */*ent*/,
108         krb5_data */*value*/);
109
110 int
111 hdb_entry_alias2value (
112         krb5_context /*context*/,
113         const hdb_entry_alias */*alias*/,
114         krb5_data */*value*/);
115
116 krb5_error_code
117 hdb_entry_check_mandatory (
118         krb5_context /*context*/,
119         const hdb_entry */*ent*/);
120
121 int
122 hdb_entry_clear_password (
123         krb5_context /*context*/,
124         hdb_entry */*entry*/);
125
126 krb5_error_code
127 hdb_entry_get_ConstrainedDelegACL (
128         const hdb_entry */*entry*/,
129         const HDB_Ext_Constrained_delegation_acl **/*a*/);
130
131 krb5_error_code
132 hdb_entry_get_aliases (
133         const hdb_entry */*entry*/,
134         const HDB_Ext_Aliases **/*a*/);
135
136 int
137 hdb_entry_get_password (
138         krb5_context /*context*/,
139         HDB */*db*/,
140         const hdb_entry */*entry*/,
141         char **/*p*/);
142
143 krb5_error_code
144 hdb_entry_get_pkinit_acl (
145         const hdb_entry */*entry*/,
146         const HDB_Ext_PKINIT_acl **/*a*/);
147
148 krb5_error_code
149 hdb_entry_get_pkinit_hash (
150         const hdb_entry */*entry*/,
151         const HDB_Ext_PKINIT_hash **/*a*/);
152
153 krb5_error_code
154 hdb_entry_get_pw_change_time (
155         const hdb_entry */*entry*/,
156         time_t */*t*/);
157
158 int
159 hdb_entry_set_password (
160         krb5_context /*context*/,
161         HDB */*db*/,
162         hdb_entry */*entry*/,
163         const char */*p*/);
164
165 krb5_error_code
166 hdb_entry_set_pw_change_time (
167         krb5_context /*context*/,
168         hdb_entry */*entry*/,
169         time_t /*t*/);
170
171 HDB_extension *
172 hdb_find_extension (
173         const hdb_entry */*entry*/,
174         int /*type*/);
175
176 krb5_error_code
177 hdb_foreach (
178         krb5_context /*context*/,
179         HDB */*db*/,
180         unsigned /*flags*/,
181         hdb_foreach_func_t /*func*/,
182         void */*data*/);
183
184 void
185 hdb_free_dbinfo (
186         krb5_context /*context*/,
187         struct hdb_dbinfo **/*dbp*/);
188
189 void
190 hdb_free_entry (
191         krb5_context /*context*/,
192         hdb_entry_ex */*ent*/);
193
194 void
195 hdb_free_key (Key */*key*/);
196
197 void
198 hdb_free_keys (
199         krb5_context /*context*/,
200         int /*len*/,
201         Key */*keys*/);
202
203 void
204 hdb_free_master_key (
205         krb5_context /*context*/,
206         hdb_master_key /*mkey*/);
207
208 krb5_error_code
209 hdb_generate_key_set (
210         krb5_context /*context*/,
211         krb5_principal /*principal*/,
212         Key **/*ret_key_set*/,
213         size_t */*nkeyset*/,
214         int /*no_salt*/);
215
216 krb5_error_code
217 hdb_generate_key_set_password (
218         krb5_context /*context*/,
219         krb5_principal /*principal*/,
220         const char */*password*/,
221         Key **/*keys*/,
222         size_t */*num_keys*/);
223
224 int
225 hdb_get_dbinfo (
226         krb5_context /*context*/,
227         struct hdb_dbinfo **/*dbp*/);
228
229 krb5_error_code
230 hdb_init_db (
231         krb5_context /*context*/,
232         HDB */*db*/);
233
234 int
235 hdb_key2principal (
236         krb5_context /*context*/,
237         krb5_data */*key*/,
238         krb5_principal /*p*/);
239
240 krb5_error_code
241 hdb_ldap_common (
242         krb5_context /*context*/,
243         HDB ** /*db*/,
244         const char */*search_base*/,
245         const char */*url*/);
246
247 krb5_error_code
248 hdb_ldap_create (
249         krb5_context /*context*/,
250         HDB ** /*db*/,
251         const char */*arg*/);
252
253 krb5_error_code
254 hdb_ldapi_create (
255         krb5_context /*context*/,
256         HDB ** /*db*/,
257         const char */*arg*/);
258
259 krb5_error_code
260 hdb_list_builtin (
261         krb5_context /*context*/,
262         char **/*list*/);
263
264 krb5_error_code
265 hdb_lock (
266         int /*fd*/,
267         int /*operation*/);
268
269 krb5_error_code
270 hdb_ndbm_create (
271         krb5_context /*context*/,
272         HDB **/*db*/,
273         const char */*filename*/);
274
275 krb5_error_code
276 hdb_next_enctype2key (
277         krb5_context /*context*/,
278         const hdb_entry */*e*/,
279         krb5_enctype /*enctype*/,
280         Key **/*key*/);
281
282 int
283 hdb_principal2key (
284         krb5_context /*context*/,
285         krb5_const_principal /*p*/,
286         krb5_data */*key*/);
287
288 krb5_error_code
289 hdb_print_entry (
290         krb5_context /*context*/,
291         HDB */*db*/,
292         hdb_entry_ex */*entry*/,
293         void */*data*/);
294
295 krb5_error_code
296 hdb_process_master_key (
297         krb5_context /*context*/,
298         int /*kvno*/,
299         krb5_keyblock */*key*/,
300         krb5_enctype /*etype*/,
301         hdb_master_key */*mkey*/);
302
303 krb5_error_code
304 hdb_read_master_key (
305         krb5_context /*context*/,
306         const char */*filename*/,
307         hdb_master_key */*mkey*/);
308
309 krb5_error_code
310 hdb_replace_extension (
311         krb5_context /*context*/,
312         hdb_entry */*entry*/,
313         const HDB_extension */*ext*/);
314
315 krb5_error_code
316 hdb_seal_key (
317         krb5_context /*context*/,
318         HDB */*db*/,
319         Key */*k*/);
320
321 krb5_error_code
322 hdb_seal_key_mkey (
323         krb5_context /*context*/,
324         Key */*k*/,
325         hdb_master_key /*mkey*/);
326
327 krb5_error_code
328 hdb_seal_keys (
329         krb5_context /*context*/,
330         HDB */*db*/,
331         hdb_entry */*ent*/);
332
333 krb5_error_code
334 hdb_seal_keys_mkey (
335         krb5_context /*context*/,
336         hdb_entry */*ent*/,
337         hdb_master_key /*mkey*/);
338
339 krb5_error_code
340 hdb_set_master_key (
341         krb5_context /*context*/,
342         HDB */*db*/,
343         krb5_keyblock */*key*/);
344
345 krb5_error_code
346 hdb_set_master_keyfile (
347         krb5_context /*context*/,
348         HDB */*db*/,
349         const char */*keyfile*/);
350
351 krb5_error_code
352 hdb_unlock (int /*fd*/);
353
354 krb5_error_code
355 hdb_unseal_key (
356         krb5_context /*context*/,
357         HDB */*db*/,
358         Key */*k*/);
359
360 krb5_error_code
361 hdb_unseal_key_mkey (
362         krb5_context /*context*/,
363         Key */*k*/,
364         hdb_master_key /*mkey*/);
365
366 krb5_error_code
367 hdb_unseal_keys (
368         krb5_context /*context*/,
369         HDB */*db*/,
370         hdb_entry */*ent*/);
371
372 krb5_error_code
373 hdb_unseal_keys_mkey (
374         krb5_context /*context*/,
375         hdb_entry */*ent*/,
376         hdb_master_key /*mkey*/);
377
378 int
379 hdb_value2entry (
380         krb5_context /*context*/,
381         krb5_data */*value*/,
382         hdb_entry */*ent*/);
383
384 int
385 hdb_value2entry_alias (
386         krb5_context /*context*/,
387         krb5_data */*value*/,
388         hdb_entry_alias */*ent*/);
389
390 krb5_error_code
391 hdb_write_master_key (
392         krb5_context /*context*/,
393         const char */*filename*/,
394         hdb_master_key /*mkey*/);
395
396 #ifdef __cplusplus
397 }
398 #endif
399
400 #endif /* __hdb_protos_h__ */