Merge from vendor branch GPERF:
[dragonfly.git] / crypto / heimdal-0.6.3 / lib / hdb / hdb-protos.h
1 /* This is a generated file */
2 #ifndef __hdb_protos_h__
3 #define __hdb_protos_h__
4
5 #include <stdarg.h>
6
7 krb5_error_code
8 hdb_add_master_key (
9         krb5_context /*context*/,
10         krb5_keyblock */*key*/,
11         hdb_master_key */*inout*/);
12
13 krb5_error_code
14 hdb_check_db_format (
15         krb5_context /*context*/,
16         HDB */*db*/);
17
18 krb5_error_code
19 hdb_clear_master_key (
20         krb5_context /*context*/,
21         HDB */*db*/);
22
23 krb5_error_code
24 hdb_create (
25         krb5_context /*context*/,
26         HDB **/*db*/,
27         const char */*filename*/);
28
29 krb5_error_code
30 hdb_db_create (
31         krb5_context /*context*/,
32         HDB **/*db*/,
33         const char */*filename*/);
34
35 krb5_error_code
36 hdb_enctype2key (
37         krb5_context /*context*/,
38         hdb_entry */*e*/,
39         krb5_enctype /*enctype*/,
40         Key **/*key*/);
41
42 krb5_error_code
43 hdb_entry2string (
44         krb5_context /*context*/,
45         hdb_entry */*ent*/,
46         char **/*str*/);
47
48 int
49 hdb_entry2value (
50         krb5_context /*context*/,
51         hdb_entry */*ent*/,
52         krb5_data */*value*/);
53
54 krb5_error_code
55 hdb_foreach (
56         krb5_context /*context*/,
57         HDB */*db*/,
58         unsigned /*flags*/,
59         hdb_foreach_func_t /*func*/,
60         void */*data*/);
61
62 void
63 hdb_free_entry (
64         krb5_context /*context*/,
65         hdb_entry */*ent*/);
66
67 void
68 hdb_free_key (Key */*key*/);
69
70 void
71 hdb_free_master_key (
72         krb5_context /*context*/,
73         hdb_master_key /*mkey*/);
74
75 krb5_error_code
76 hdb_init_db (
77         krb5_context /*context*/,
78         HDB */*db*/);
79
80 int
81 hdb_key2principal (
82         krb5_context /*context*/,
83         krb5_data */*key*/,
84         krb5_principal /*p*/);
85
86 krb5_error_code
87 hdb_ldap_create (
88         krb5_context /*context*/,
89         HDB ** /*db*/,
90         const char */*arg*/);
91
92 krb5_error_code
93 hdb_lock (
94         int /*fd*/,
95         int /*operation*/);
96
97 krb5_error_code
98 hdb_ndbm_create (
99         krb5_context /*context*/,
100         HDB **/*db*/,
101         const char */*filename*/);
102
103 krb5_error_code
104 hdb_next_enctype2key (
105         krb5_context /*context*/,
106         const hdb_entry */*e*/,
107         krb5_enctype /*enctype*/,
108         Key **/*key*/);
109
110 int
111 hdb_principal2key (
112         krb5_context /*context*/,
113         krb5_principal /*p*/,
114         krb5_data */*key*/);
115
116 krb5_error_code
117 hdb_print_entry (
118         krb5_context /*context*/,
119         HDB */*db*/,
120         hdb_entry */*entry*/,
121         void */*data*/);
122
123 krb5_error_code
124 hdb_process_master_key (
125         krb5_context /*context*/,
126         int /*kvno*/,
127         krb5_keyblock */*key*/,
128         krb5_enctype /*etype*/,
129         hdb_master_key */*mkey*/);
130
131 krb5_error_code
132 hdb_read_master_key (
133         krb5_context /*context*/,
134         const char */*filename*/,
135         hdb_master_key */*mkey*/);
136
137 krb5_error_code
138 hdb_seal_keys (
139         krb5_context /*context*/,
140         HDB */*db*/,
141         hdb_entry */*ent*/);
142
143 krb5_error_code
144 hdb_seal_keys_mkey (
145         krb5_context /*context*/,
146         hdb_entry */*ent*/,
147         hdb_master_key /*mkey*/);
148
149 krb5_error_code
150 hdb_set_master_key (
151         krb5_context /*context*/,
152         HDB */*db*/,
153         krb5_keyblock */*key*/);
154
155 krb5_error_code
156 hdb_set_master_keyfile (
157         krb5_context /*context*/,
158         HDB */*db*/,
159         const char */*keyfile*/);
160
161 krb5_error_code
162 hdb_unlock (int /*fd*/);
163
164 krb5_error_code
165 hdb_unseal_keys (
166         krb5_context /*context*/,
167         HDB */*db*/,
168         hdb_entry */*ent*/);
169
170 krb5_error_code
171 hdb_unseal_keys_mkey (
172         krb5_context /*context*/,
173         hdb_entry */*ent*/,
174         hdb_master_key /*mkey*/);
175
176 int
177 hdb_value2entry (
178         krb5_context /*context*/,
179         krb5_data */*value*/,
180         hdb_entry */*ent*/);
181
182 krb5_error_code
183 hdb_write_master_key (
184         krb5_context /*context*/,
185         const char */*filename*/,
186         hdb_master_key /*mkey*/);
187
188 #endif /* __hdb_protos_h__ */