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