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