xref: /freebsd/crypto/heimdal/lib/hdb/hdb-protos.h (revision c697fb7f)
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_cert (
150 	const hdb_entry */*entry*/,
151 	const HDB_Ext_PKINIT_cert **/*a*/);
152 
153 krb5_error_code
154 hdb_entry_get_pkinit_hash (
155 	const hdb_entry */*entry*/,
156 	const HDB_Ext_PKINIT_hash **/*a*/);
157 
158 krb5_error_code
159 hdb_entry_get_pw_change_time (
160 	const hdb_entry */*entry*/,
161 	time_t */*t*/);
162 
163 int
164 hdb_entry_set_password (
165 	krb5_context /*context*/,
166 	HDB */*db*/,
167 	hdb_entry */*entry*/,
168 	const char */*p*/);
169 
170 krb5_error_code
171 hdb_entry_set_pw_change_time (
172 	krb5_context /*context*/,
173 	hdb_entry */*entry*/,
174 	time_t /*t*/);
175 
176 HDB_extension *
177 hdb_find_extension (
178 	const hdb_entry */*entry*/,
179 	int /*type*/);
180 
181 krb5_error_code
182 hdb_foreach (
183 	krb5_context /*context*/,
184 	HDB */*db*/,
185 	unsigned /*flags*/,
186 	hdb_foreach_func_t /*func*/,
187 	void */*data*/);
188 
189 void
190 hdb_free_dbinfo (
191 	krb5_context /*context*/,
192 	struct hdb_dbinfo **/*dbp*/);
193 
194 void
195 hdb_free_entry (
196 	krb5_context /*context*/,
197 	hdb_entry_ex */*ent*/);
198 
199 void
200 hdb_free_key (Key */*key*/);
201 
202 void
203 hdb_free_keys (
204 	krb5_context /*context*/,
205 	int /*len*/,
206 	Key */*keys*/);
207 
208 void
209 hdb_free_master_key (
210 	krb5_context /*context*/,
211 	hdb_master_key /*mkey*/);
212 
213 krb5_error_code
214 hdb_generate_key_set (
215 	krb5_context /*context*/,
216 	krb5_principal /*principal*/,
217 	Key **/*ret_key_set*/,
218 	size_t */*nkeyset*/,
219 	int /*no_salt*/);
220 
221 krb5_error_code
222 hdb_generate_key_set_password (
223 	krb5_context /*context*/,
224 	krb5_principal /*principal*/,
225 	const char */*password*/,
226 	Key **/*keys*/,
227 	size_t */*num_keys*/);
228 
229 int
230 hdb_get_dbinfo (
231 	krb5_context /*context*/,
232 	struct hdb_dbinfo **/*dbp*/);
233 
234 krb5_error_code
235 hdb_init_db (
236 	krb5_context /*context*/,
237 	HDB */*db*/);
238 
239 int
240 hdb_key2principal (
241 	krb5_context /*context*/,
242 	krb5_data */*key*/,
243 	krb5_principal /*p*/);
244 
245 krb5_error_code
246 hdb_keytab_create (
247 	krb5_context /*context*/,
248 	HDB ** /*db*/,
249 	const char */*arg*/);
250 
251 krb5_error_code
252 hdb_ldap_create (
253 	krb5_context /*context*/,
254 	HDB ** /*db*/,
255 	const char */*arg*/);
256 
257 krb5_error_code
258 hdb_ldapi_create (
259 	krb5_context /*context*/,
260 	HDB ** /*db*/,
261 	const char */*arg*/);
262 
263 krb5_error_code
264 hdb_list_builtin (
265 	krb5_context /*context*/,
266 	char **/*list*/);
267 
268 krb5_error_code
269 hdb_lock (
270 	int /*fd*/,
271 	int /*operation*/);
272 
273 krb5_error_code
274 hdb_mdb_create (
275 	krb5_context /*context*/,
276 	HDB **/*db*/,
277 	const char */*filename*/);
278 
279 krb5_error_code
280 hdb_ndbm_create (
281 	krb5_context /*context*/,
282 	HDB **/*db*/,
283 	const char */*filename*/);
284 
285 krb5_error_code
286 hdb_next_enctype2key (
287 	krb5_context /*context*/,
288 	const hdb_entry */*e*/,
289 	krb5_enctype /*enctype*/,
290 	Key **/*key*/);
291 
292 int
293 hdb_principal2key (
294 	krb5_context /*context*/,
295 	krb5_const_principal /*p*/,
296 	krb5_data */*key*/);
297 
298 krb5_error_code
299 hdb_print_entry (
300 	krb5_context /*context*/,
301 	HDB */*db*/,
302 	hdb_entry_ex */*entry*/,
303 	void */*data*/);
304 
305 krb5_error_code
306 hdb_process_master_key (
307 	krb5_context /*context*/,
308 	int /*kvno*/,
309 	krb5_keyblock */*key*/,
310 	krb5_enctype /*etype*/,
311 	hdb_master_key */*mkey*/);
312 
313 krb5_error_code
314 hdb_read_master_key (
315 	krb5_context /*context*/,
316 	const char */*filename*/,
317 	hdb_master_key */*mkey*/);
318 
319 krb5_error_code
320 hdb_replace_extension (
321 	krb5_context /*context*/,
322 	hdb_entry */*entry*/,
323 	const HDB_extension */*ext*/);
324 
325 krb5_error_code
326 hdb_seal_key (
327 	krb5_context /*context*/,
328 	HDB */*db*/,
329 	Key */*k*/);
330 
331 krb5_error_code
332 hdb_seal_key_mkey (
333 	krb5_context /*context*/,
334 	Key */*k*/,
335 	hdb_master_key /*mkey*/);
336 
337 krb5_error_code
338 hdb_seal_keys (
339 	krb5_context /*context*/,
340 	HDB */*db*/,
341 	hdb_entry */*ent*/);
342 
343 krb5_error_code
344 hdb_seal_keys_mkey (
345 	krb5_context /*context*/,
346 	hdb_entry */*ent*/,
347 	hdb_master_key /*mkey*/);
348 
349 krb5_error_code
350 hdb_set_master_key (
351 	krb5_context /*context*/,
352 	HDB */*db*/,
353 	krb5_keyblock */*key*/);
354 
355 krb5_error_code
356 hdb_set_master_keyfile (
357 	krb5_context /*context*/,
358 	HDB */*db*/,
359 	const char */*keyfile*/);
360 
361 krb5_error_code
362 hdb_sqlite_create (
363 	krb5_context /*context*/,
364 	HDB **/*db*/,
365 	const char */*argument*/);
366 
367 krb5_error_code
368 hdb_unlock (int /*fd*/);
369 
370 krb5_error_code
371 hdb_unseal_key (
372 	krb5_context /*context*/,
373 	HDB */*db*/,
374 	Key */*k*/);
375 
376 krb5_error_code
377 hdb_unseal_key_mkey (
378 	krb5_context /*context*/,
379 	Key */*k*/,
380 	hdb_master_key /*mkey*/);
381 
382 krb5_error_code
383 hdb_unseal_keys (
384 	krb5_context /*context*/,
385 	HDB */*db*/,
386 	hdb_entry */*ent*/);
387 
388 krb5_error_code
389 hdb_unseal_keys_mkey (
390 	krb5_context /*context*/,
391 	hdb_entry */*ent*/,
392 	hdb_master_key /*mkey*/);
393 
394 int
395 hdb_value2entry (
396 	krb5_context /*context*/,
397 	krb5_data */*value*/,
398 	hdb_entry */*ent*/);
399 
400 int
401 hdb_value2entry_alias (
402 	krb5_context /*context*/,
403 	krb5_data */*value*/,
404 	hdb_entry_alias */*ent*/);
405 
406 krb5_error_code
407 hdb_write_master_key (
408 	krb5_context /*context*/,
409 	const char */*filename*/,
410 	hdb_master_key /*mkey*/);
411 
412 #ifdef __cplusplus
413 }
414 #endif
415 
416 #endif /* __hdb_protos_h__ */
417