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