etc/services - sync with NetBSD-8
[minix.git] / crypto / external / bsd / heimdal / include / hdb-protos.h
blob44a1bddc7625baf3fe336df6e4960ac3d368b0dc
1 /* This is a generated file */
2 #ifndef __hdb_protos_h__
3 #define __hdb_protos_h__
5 #include <stdarg.h>
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
11 krb5_error_code
12 hdb_add_master_key (
13 krb5_context /*context*/,
14 krb5_keyblock */*key*/,
15 hdb_master_key */*inout*/);
17 krb5_error_code
18 hdb_check_db_format (
19 krb5_context /*context*/,
20 HDB */*db*/);
22 krb5_error_code
23 hdb_clear_extension (
24 krb5_context /*context*/,
25 hdb_entry */*entry*/,
26 int /*type*/);
28 krb5_error_code
29 hdb_clear_master_key (
30 krb5_context /*context*/,
31 HDB */*db*/);
33 krb5_error_code
34 hdb_create (
35 krb5_context /*context*/,
36 HDB **/*db*/,
37 const char */*filename*/);
39 krb5_error_code
40 hdb_db_create (
41 krb5_context /*context*/,
42 HDB **/*db*/,
43 const char */*filename*/);
45 const char *
46 hdb_db_dir (krb5_context /*context*/);
48 const char *
49 hdb_dbinfo_get_acl_file (
50 krb5_context /*context*/,
51 struct hdb_dbinfo */*dbp*/);
53 const krb5_config_binding *
54 hdb_dbinfo_get_binding (
55 krb5_context /*context*/,
56 struct hdb_dbinfo */*dbp*/);
58 const char *
59 hdb_dbinfo_get_dbname (
60 krb5_context /*context*/,
61 struct hdb_dbinfo */*dbp*/);
63 const char *
64 hdb_dbinfo_get_label (
65 krb5_context /*context*/,
66 struct hdb_dbinfo */*dbp*/);
68 const char *
69 hdb_dbinfo_get_log_file (
70 krb5_context /*context*/,
71 struct hdb_dbinfo */*dbp*/);
73 const char *
74 hdb_dbinfo_get_mkey_file (
75 krb5_context /*context*/,
76 struct hdb_dbinfo */*dbp*/);
78 struct hdb_dbinfo *
79 hdb_dbinfo_get_next (
80 struct hdb_dbinfo */*dbp*/,
81 struct hdb_dbinfo */*dbprevp*/);
83 const char *
84 hdb_dbinfo_get_realm (
85 krb5_context /*context*/,
86 struct hdb_dbinfo */*dbp*/);
88 const char *
89 hdb_default_db (krb5_context /*context*/);
91 krb5_error_code
92 hdb_enctype2key (
93 krb5_context /*context*/,
94 hdb_entry */*e*/,
95 krb5_enctype /*enctype*/,
96 Key **/*key*/);
98 krb5_error_code
99 hdb_entry2string (
100 krb5_context /*context*/,
101 hdb_entry */*ent*/,
102 char **/*str*/);
105 hdb_entry2value (
106 krb5_context /*context*/,
107 const hdb_entry */*ent*/,
108 krb5_data */*value*/);
111 hdb_entry_alias2value (
112 krb5_context /*context*/,
113 const hdb_entry_alias */*alias*/,
114 krb5_data */*value*/);
116 krb5_error_code
117 hdb_entry_check_mandatory (
118 krb5_context /*context*/,
119 const hdb_entry */*ent*/);
122 hdb_entry_clear_password (
123 krb5_context /*context*/,
124 hdb_entry */*entry*/);
126 krb5_error_code
127 hdb_entry_get_ConstrainedDelegACL (
128 const hdb_entry */*entry*/,
129 const HDB_Ext_Constrained_delegation_acl **/*a*/);
131 krb5_error_code
132 hdb_entry_get_aliases (
133 const hdb_entry */*entry*/,
134 const HDB_Ext_Aliases **/*a*/);
137 hdb_entry_get_password (
138 krb5_context /*context*/,
139 HDB */*db*/,
140 const hdb_entry */*entry*/,
141 char **/*p*/);
143 krb5_error_code
144 hdb_entry_get_pkinit_acl (
145 const hdb_entry */*entry*/,
146 const HDB_Ext_PKINIT_acl **/*a*/);
148 krb5_error_code
149 hdb_entry_get_pkinit_cert (
150 const hdb_entry */*entry*/,
151 const HDB_Ext_PKINIT_cert **/*a*/);
153 krb5_error_code
154 hdb_entry_get_pkinit_hash (
155 const hdb_entry */*entry*/,
156 const HDB_Ext_PKINIT_hash **/*a*/);
158 krb5_error_code
159 hdb_entry_get_pw_change_time (
160 const hdb_entry */*entry*/,
161 time_t */*t*/);
164 hdb_entry_set_password (
165 krb5_context /*context*/,
166 HDB */*db*/,
167 hdb_entry */*entry*/,
168 const char */*p*/);
170 krb5_error_code
171 hdb_entry_set_pw_change_time (
172 krb5_context /*context*/,
173 hdb_entry */*entry*/,
174 time_t /*t*/);
176 HDB_extension *
177 hdb_find_extension (
178 const hdb_entry */*entry*/,
179 int /*type*/);
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*/);
189 void
190 hdb_free_dbinfo (
191 krb5_context /*context*/,
192 struct hdb_dbinfo **/*dbp*/);
194 void
195 hdb_free_entry (
196 krb5_context /*context*/,
197 hdb_entry_ex */*ent*/);
199 void
200 hdb_free_key (Key */*key*/);
202 void
203 hdb_free_keys (
204 krb5_context /*context*/,
205 int /*len*/,
206 Key */*keys*/);
208 void
209 hdb_free_master_key (
210 krb5_context /*context*/,
211 hdb_master_key /*mkey*/);
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*/);
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*/);
230 hdb_get_dbinfo (
231 krb5_context /*context*/,
232 struct hdb_dbinfo **/*dbp*/);
234 krb5_error_code
235 hdb_init_db (
236 krb5_context /*context*/,
237 HDB */*db*/);
240 hdb_key2principal (
241 krb5_context /*context*/,
242 krb5_data */*key*/,
243 krb5_principal /*p*/);
245 krb5_error_code
246 hdb_keytab_create (
247 krb5_context /*context*/,
248 HDB ** /*db*/,
249 const char */*arg*/);
251 krb5_error_code
252 hdb_ldap_create (
253 krb5_context /*context*/,
254 HDB ** /*db*/,
255 const char */*arg*/);
257 krb5_error_code
258 hdb_ldapi_create (
259 krb5_context /*context*/,
260 HDB ** /*db*/,
261 const char */*arg*/);
263 krb5_error_code
264 hdb_list_builtin (
265 krb5_context /*context*/,
266 char **/*list*/);
268 krb5_error_code
269 hdb_lock (
270 int /*fd*/,
271 int /*operation*/);
273 krb5_error_code
274 hdb_mdb_create (
275 krb5_context /*context*/,
276 HDB **/*db*/,
277 const char */*filename*/);
279 krb5_error_code
280 hdb_ndbm_create (
281 krb5_context /*context*/,
282 HDB **/*db*/,
283 const char */*filename*/);
285 krb5_error_code
286 hdb_next_enctype2key (
287 krb5_context /*context*/,
288 const hdb_entry */*e*/,
289 krb5_enctype /*enctype*/,
290 Key **/*key*/);
293 hdb_principal2key (
294 krb5_context /*context*/,
295 krb5_const_principal /*p*/,
296 krb5_data */*key*/);
298 krb5_error_code
299 hdb_print_entry (
300 krb5_context /*context*/,
301 HDB */*db*/,
302 hdb_entry_ex */*entry*/,
303 void */*data*/);
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*/);
313 krb5_error_code
314 hdb_read_master_key (
315 krb5_context /*context*/,
316 const char */*filename*/,
317 hdb_master_key */*mkey*/);
319 krb5_error_code
320 hdb_replace_extension (
321 krb5_context /*context*/,
322 hdb_entry */*entry*/,
323 const HDB_extension */*ext*/);
325 krb5_error_code
326 hdb_seal_key (
327 krb5_context /*context*/,
328 HDB */*db*/,
329 Key */*k*/);
331 krb5_error_code
332 hdb_seal_key_mkey (
333 krb5_context /*context*/,
334 Key */*k*/,
335 hdb_master_key /*mkey*/);
337 krb5_error_code
338 hdb_seal_keys (
339 krb5_context /*context*/,
340 HDB */*db*/,
341 hdb_entry */*ent*/);
343 krb5_error_code
344 hdb_seal_keys_mkey (
345 krb5_context /*context*/,
346 hdb_entry */*ent*/,
347 hdb_master_key /*mkey*/);
349 krb5_error_code
350 hdb_set_master_key (
351 krb5_context /*context*/,
352 HDB */*db*/,
353 krb5_keyblock */*key*/);
355 krb5_error_code
356 hdb_set_master_keyfile (
357 krb5_context /*context*/,
358 HDB */*db*/,
359 const char */*keyfile*/);
361 krb5_error_code
362 hdb_sqlite_create (
363 krb5_context /*context*/,
364 HDB **/*db*/,
365 const char */*argument*/);
367 krb5_error_code
368 hdb_unlock (int /*fd*/);
370 krb5_error_code
371 hdb_unseal_key (
372 krb5_context /*context*/,
373 HDB */*db*/,
374 Key */*k*/);
376 krb5_error_code
377 hdb_unseal_key_mkey (
378 krb5_context /*context*/,
379 Key */*k*/,
380 hdb_master_key /*mkey*/);
382 krb5_error_code
383 hdb_unseal_keys (
384 krb5_context /*context*/,
385 HDB */*db*/,
386 hdb_entry */*ent*/);
388 krb5_error_code
389 hdb_unseal_keys_mkey (
390 krb5_context /*context*/,
391 hdb_entry */*ent*/,
392 hdb_master_key /*mkey*/);
395 hdb_value2entry (
396 krb5_context /*context*/,
397 krb5_data */*value*/,
398 hdb_entry */*ent*/);
401 hdb_value2entry_alias (
402 krb5_context /*context*/,
403 krb5_data */*value*/,
404 hdb_entry_alias */*ent*/);
406 krb5_error_code
407 hdb_write_master_key (
408 krb5_context /*context*/,
409 const char */*filename*/,
410 hdb_master_key /*mkey*/);
412 #ifdef __cplusplus
414 #endif
416 #endif /* __hdb_protos_h__ */