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