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
8extern "C" {
9#endif
10
11krb5_error_code
12hdb_add_history_key(krb5_context context, hdb_entry *entry, krb5_kvno kvno, Key *key);
13
14krb5_error_code
15hdb_change_kvno(krb5_context context, krb5_kvno new_kvno, hdb_entry *entry);
16
17krb5_error_code
18hdb_add_current_keys_to_history (
19	krb5_context /*context*/,
20	hdb_entry */*entry*/);
21
22krb5_error_code
23hdb_add_master_key (
24	krb5_context /*context*/,
25	krb5_keyblock */*key*/,
26	hdb_master_key */*inout*/);
27
28krb5_error_code
29hdb_check_db_format (
30	krb5_context /*context*/,
31	HDB */*db*/);
32
33krb5_error_code
34hdb_clear_extension (
35	krb5_context /*context*/,
36	hdb_entry */*entry*/,
37	int /*type*/);
38
39krb5_error_code
40hdb_clear_master_key (
41	krb5_context /*context*/,
42	HDB */*db*/);
43
44krb5_error_code
45hdb_create (
46	krb5_context /*context*/,
47	HDB **/*db*/,
48	const char */*filename*/);
49
50krb5_error_code
51hdb_db_create (
52	krb5_context /*context*/,
53	HDB **/*db*/,
54	const char */*filename*/);
55
56const char *
57hdb_db_dir (krb5_context /*context*/);
58
59const char *
60hdb_dbinfo_get_acl_file (
61	krb5_context /*context*/,
62	struct hdb_dbinfo */*dbp*/);
63
64const krb5_config_binding *
65hdb_dbinfo_get_binding (
66	krb5_context /*context*/,
67	struct hdb_dbinfo */*dbp*/);
68
69const char *
70hdb_dbinfo_get_dbname (
71	krb5_context /*context*/,
72	struct hdb_dbinfo */*dbp*/);
73
74const char *
75hdb_dbinfo_get_label (
76	krb5_context /*context*/,
77	struct hdb_dbinfo */*dbp*/);
78
79const char *
80hdb_dbinfo_get_log_file (
81	krb5_context /*context*/,
82	struct hdb_dbinfo */*dbp*/);
83
84const char *
85hdb_dbinfo_get_mkey_file (
86	krb5_context /*context*/,
87	struct hdb_dbinfo */*dbp*/);
88
89struct hdb_dbinfo *
90hdb_dbinfo_get_next (
91	struct hdb_dbinfo */*dbp*/,
92	struct hdb_dbinfo */*dbprevp*/);
93
94const char *
95hdb_dbinfo_get_realm (
96	krb5_context /*context*/,
97	struct hdb_dbinfo */*dbp*/);
98
99const char *
100hdb_default_db (krb5_context /*context*/);
101
102krb5_error_code
103hdb_enctype2key (
104	krb5_context /*context*/,
105	const hdb_entry */*e*/,
106	krb5_enctype /*enctype*/,
107	Key **/*key*/);
108
109krb5_error_code
110hdb_entry2string (
111	krb5_context /*context*/,
112	hdb_entry */*ent*/,
113	char **/*str*/);
114
115int
116hdb_entry2value (
117	krb5_context /*context*/,
118	const hdb_entry */*ent*/,
119	krb5_data */*value*/);
120
121int
122hdb_entry_alias2value (
123	krb5_context /*context*/,
124	const hdb_entry_alias */*alias*/,
125	krb5_data */*value*/);
126
127krb5_error_code
128hdb_entry_check_mandatory (
129	krb5_context /*context*/,
130	const hdb_entry */*ent*/);
131
132krb5_error_code
133hdb_entry_clear_kvno_diff_clnt (
134	krb5_context /*context*/,
135	hdb_entry */*entry*/);
136
137krb5_error_code
138hdb_entry_clear_kvno_diff_svc (
139	krb5_context /*context*/,
140	hdb_entry */*entry*/);
141
142int
143hdb_entry_clear_password (
144	krb5_context /*context*/,
145	hdb_entry */*entry*/);
146
147krb5_error_code
148hdb_entry_get_ConstrainedDelegACL (
149	const hdb_entry */*entry*/,
150	const HDB_Ext_Constrained_delegation_acl **/*a*/);
151
152krb5_error_code
153hdb_entry_get_aliases (
154	const hdb_entry */*entry*/,
155	const HDB_Ext_Aliases **/*a*/);
156
157krb5_kvno
158hdb_entry_get_kvno_diff_clnt (const hdb_entry */*entry*/);
159
160krb5_kvno
161hdb_entry_get_kvno_diff_svc (const hdb_entry */*entry*/);
162
163int
164hdb_entry_get_password (
165	krb5_context /*context*/,
166	HDB */*db*/,
167	const hdb_entry */*entry*/,
168	char **/*p*/);
169
170krb5_error_code
171hdb_entry_get_pkinit_acl (
172	const hdb_entry */*entry*/,
173	const HDB_Ext_PKINIT_acl **/*a*/);
174
175krb5_error_code
176hdb_entry_get_pkinit_cert (
177	const hdb_entry */*entry*/,
178	const HDB_Ext_PKINIT_cert **/*a*/);
179
180krb5_error_code
181hdb_entry_get_pkinit_hash (
182	const hdb_entry */*entry*/,
183	const HDB_Ext_PKINIT_hash **/*a*/);
184
185krb5_error_code
186hdb_entry_get_pw_change_time (
187	const hdb_entry */*entry*/,
188	time_t */*t*/);
189
190krb5_error_code
191hdb_entry_set_kvno_diff_clnt (
192	krb5_context /*context*/,
193	hdb_entry */*entry*/,
194	unsigned int /*diff*/);
195
196krb5_error_code
197hdb_entry_set_kvno_diff_svc (
198	krb5_context /*context*/,
199	hdb_entry */*entry*/,
200	unsigned int /*diff*/);
201
202int
203hdb_entry_set_password (
204	krb5_context /*context*/,
205	HDB */*db*/,
206	hdb_entry */*entry*/,
207	const char */*p*/);
208
209krb5_error_code
210hdb_entry_set_pw_change_time (
211	krb5_context /*context*/,
212	hdb_entry */*entry*/,
213	time_t /*t*/);
214
215HDB_extension *
216hdb_find_extension (
217	const hdb_entry */*entry*/,
218	int /*type*/);
219
220krb5_error_code
221hdb_foreach (
222	krb5_context /*context*/,
223	HDB */*db*/,
224	unsigned /*flags*/,
225	hdb_foreach_func_t /*func*/,
226	void */*data*/);
227
228void
229hdb_free_dbinfo (
230	krb5_context /*context*/,
231	struct hdb_dbinfo **/*dbp*/);
232
233void
234hdb_free_entry (
235	krb5_context /*context*/,
236	hdb_entry_ex */*ent*/);
237
238void
239hdb_free_key (Key */*key*/);
240
241void
242hdb_free_keys (
243	krb5_context /*context*/,
244	size_t /*len*/,
245	Key */*keys*/);
246
247void
248hdb_free_master_key (
249	krb5_context /*context*/,
250	hdb_master_key /*mkey*/);
251
252krb5_error_code
253hdb_generate_key_set (
254	krb5_context /*context*/,
255	krb5_principal /*principal*/,
256	int /*n_ks_tuple*/,
257	krb5_key_salt_tuple */*ks_tuple*/,
258	Key **/*ret_key_set*/,
259	size_t */*nkeyset*/,
260	int /*no_salt*/);
261
262krb5_error_code
263hdb_generate_key_set_password (
264	krb5_context /*context*/,
265	krb5_principal /*principal*/,
266	const char */*password*/,
267	int n_ks_tuple, krb5_key_salt_tuple *ks_tuple,
268	Key **/*keys*/,
269	size_t */*num_keys*/);
270
271int
272hdb_get_dbinfo (
273	krb5_context /*context*/,
274	struct hdb_dbinfo **/*dbp*/);
275
276krb5_error_code
277hdb_init_db (
278	krb5_context /*context*/,
279	HDB */*db*/);
280
281int
282hdb_key2principal (
283	krb5_context /*context*/,
284	krb5_data */*key*/,
285	krb5_principal /*p*/);
286
287krb5_error_code
288hdb_keytab_create (
289	krb5_context /*context*/,
290	HDB ** /*db*/,
291	const char */*arg*/);
292
293krb5_error_code
294hdb_ldap_create (
295	krb5_context /*context*/,
296	HDB ** /*db*/,
297	const char */*arg*/);
298
299krb5_error_code
300hdb_ldapi_create (
301	krb5_context /*context*/,
302	HDB ** /*db*/,
303	const char */*arg*/);
304
305krb5_error_code
306hdb_list_builtin (
307	krb5_context /*context*/,
308	char **/*list*/);
309
310krb5_error_code
311hdb_lock (
312	int /*fd*/,
313	int /*operation*/);
314
315krb5_error_code
316hdb_mdb_create (
317	krb5_context /*context*/,
318	HDB **/*db*/,
319	const char */*filename*/);
320
321krb5_error_code
322hdb_ndbm_create (
323	krb5_context /*context*/,
324	HDB **/*db*/,
325	const char */*filename*/);
326
327krb5_error_code
328hdb_next_enctype2key (
329	krb5_context /*context*/,
330	const hdb_entry */*e*/,
331	krb5_enctype /*enctype*/,
332	Key **/*key*/);
333
334int
335hdb_principal2key (
336	krb5_context /*context*/,
337	krb5_const_principal /*p*/,
338	krb5_data */*key*/);
339
340krb5_error_code
341hdb_print_entry (
342	krb5_context /*context*/,
343	HDB */*db*/,
344	hdb_entry_ex */*entry*/,
345	void */*data*/);
346
347krb5_error_code
348hdb_process_master_key (
349	krb5_context /*context*/,
350	int /*kvno*/,
351	krb5_keyblock */*key*/,
352	krb5_enctype /*etype*/,
353	hdb_master_key */*mkey*/);
354
355krb5_error_code
356hdb_read_master_key (
357	krb5_context /*context*/,
358	const char */*filename*/,
359	hdb_master_key */*mkey*/);
360
361krb5_error_code
362hdb_replace_extension (
363	krb5_context /*context*/,
364	hdb_entry */*entry*/,
365	const HDB_extension */*ext*/);
366
367krb5_error_code
368hdb_seal_key (
369	krb5_context /*context*/,
370	HDB */*db*/,
371	Key */*k*/);
372
373krb5_error_code
374hdb_seal_key_mkey (
375	krb5_context /*context*/,
376	Key */*k*/,
377	hdb_master_key /*mkey*/);
378
379krb5_error_code
380hdb_seal_keys (
381	krb5_context /*context*/,
382	HDB */*db*/,
383	hdb_entry */*ent*/);
384
385krb5_error_code
386hdb_seal_keys_mkey (
387	krb5_context /*context*/,
388	hdb_entry */*ent*/,
389	hdb_master_key /*mkey*/);
390
391krb5_error_code
392hdb_set_master_key (
393	krb5_context /*context*/,
394	HDB */*db*/,
395	krb5_keyblock */*key*/);
396
397krb5_error_code
398hdb_set_master_keyfile (
399	krb5_context /*context*/,
400	HDB */*db*/,
401	const char */*keyfile*/);
402
403krb5_error_code
404hdb_sqlite_create (
405	krb5_context /*context*/,
406	HDB **/*db*/,
407	const char */*argument*/);
408
409krb5_error_code
410hdb_unlock (int /*fd*/);
411
412krb5_error_code
413hdb_unseal_key (
414	krb5_context /*context*/,
415	HDB */*db*/,
416	Key */*k*/);
417
418krb5_error_code
419hdb_unseal_key_mkey (
420	krb5_context /*context*/,
421	Key */*k*/,
422	hdb_master_key /*mkey*/);
423
424krb5_error_code
425hdb_unseal_keys (
426	krb5_context /*context*/,
427	HDB */*db*/,
428	hdb_entry */*ent*/);
429
430krb5_error_code
431hdb_unseal_keys_kvno (
432	krb5_context /*context*/,
433	HDB */*db*/,
434	krb5_kvno /*kvno*/,
435	unsigned /*flags*/,
436	hdb_entry */*ent*/);
437
438krb5_error_code
439hdb_unseal_keys_mkey (
440	krb5_context /*context*/,
441	hdb_entry */*ent*/,
442	hdb_master_key /*mkey*/);
443
444int
445hdb_value2entry (
446	krb5_context /*context*/,
447	krb5_data */*value*/,
448	hdb_entry */*ent*/);
449
450int
451hdb_value2entry_alias (
452	krb5_context /*context*/,
453	krb5_data */*value*/,
454	hdb_entry_alias */*ent*/);
455
456krb5_error_code
457hdb_write_master_key (
458	krb5_context /*context*/,
459	const char */*filename*/,
460	hdb_master_key /*mkey*/);
461
462krb5_error_code
463hdb_entry_set_pkinit_acl(hdb_entry *entry,
464			 const char *subject,
465			 const char *issuer,
466			 const char *anchor);
467
468int
469hdb_mit_dump(krb5_context context,
470	     const char *file,
471	     krb5_error_code (*func)(krb5_context, HDB *, hdb_entry_ex *, void *),
472	     void *ctx);
473
474krb5_error_code
475hdb_set_srp_verifier(krb5_context, KRB5_SRP_GROUP, krb5_const_principal, const char *, uint32_t, hdb_srp *);
476
477krb5_error_code
478hdb_entry_set_srp_verifiers(krb5_context, hdb_entry *, const char *, uint32_t);
479
480#ifdef __cplusplus
481}
482#endif
483
484#endif /* __hdb_protos_h__ */
485