r20640: Commit part 2/2
[ab/samba.git/.git] / source4 / heimdal / kdc / kdc-private.h
1 /* This is a generated file */
2 #ifndef __kdc_private_h__
3 #define __kdc_private_h__
4
5 #include <stdarg.h>
6
7 krb5_error_code
8 _kdc_add_KRB5SignedPath (
9         krb5_context /*context*/,
10         krb5_kdc_configuration */*config*/,
11         hdb_entry_ex */*krbtgt*/,
12         krb5_enctype /*enctype*/,
13         krb5_const_principal /*server*/,
14         KRB5SignedPathPrincipals */*principals*/,
15         EncTicketPart */*tkt*/);
16
17 krb5_error_code
18 _kdc_add_inital_verified_cas (
19         krb5_context /*context*/,
20         krb5_kdc_configuration */*config*/,
21         pk_client_params */*params*/,
22         EncTicketPart */*tkt*/);
23
24 krb5_error_code
25 _kdc_as_rep (
26         krb5_context /*context*/,
27         krb5_kdc_configuration */*config*/,
28         KDC_REQ */*req*/,
29         const krb5_data */*req_buffer*/,
30         krb5_data */*reply*/,
31         const char */*from*/,
32         struct sockaddr */*from_addr*/,
33         int /*datagram_reply*/);
34
35 krb5_boolean
36 _kdc_check_addresses (
37         krb5_context /*context*/,
38         krb5_kdc_configuration */*config*/,
39         HostAddresses */*addresses*/,
40         const struct sockaddr */*from*/);
41
42 krb5_error_code
43 _kdc_check_flags (
44         krb5_context /*context*/,
45         krb5_kdc_configuration */*config*/,
46         hdb_entry_ex */*client_ex*/,
47         const char */*client_name*/,
48         hdb_entry_ex */*server_ex*/,
49         const char */*server_name*/,
50         krb5_boolean /*is_as_req*/);
51
52 krb5_error_code
53 _kdc_db_fetch (
54         krb5_context /*context*/,
55         krb5_kdc_configuration */*config*/,
56         krb5_const_principal /*principal*/,
57         unsigned /*flags*/,
58         HDB **/*db*/,
59         hdb_entry_ex **/*h*/);
60
61 krb5_error_code
62 _kdc_db_fetch4 (
63         krb5_context /*context*/,
64         krb5_kdc_configuration */*config*/,
65         const char */*name*/,
66         const char */*instance*/,
67         const char */*realm*/,
68         unsigned /*flags*/,
69         hdb_entry_ex **/*ent*/);
70
71 krb5_error_code
72 _kdc_do_524 (
73         krb5_context /*context*/,
74         krb5_kdc_configuration */*config*/,
75         const Ticket */*t*/,
76         krb5_data */*reply*/,
77         const char */*from*/,
78         struct sockaddr */*addr*/);
79
80 krb5_error_code
81 _kdc_do_digest (
82         krb5_context /*context*/,
83         krb5_kdc_configuration */*config*/,
84         const DigestREQ */*req*/,
85         krb5_data */*reply*/,
86         const char */*from*/,
87         struct sockaddr */*addr*/);
88
89 krb5_error_code
90 _kdc_do_kaserver (
91         krb5_context /*context*/,
92         krb5_kdc_configuration */*config*/,
93         unsigned char */*buf*/,
94         size_t /*len*/,
95         krb5_data */*reply*/,
96         const char */*from*/,
97         struct sockaddr_in */*addr*/);
98
99 krb5_error_code
100 _kdc_do_kx509 (
101         krb5_context /*context*/,
102         krb5_kdc_configuration */*config*/,
103         const Kx509Request */*req*/,
104         krb5_data */*reply*/,
105         const char */*from*/,
106         struct sockaddr */*addr*/);
107
108 krb5_error_code
109 _kdc_do_version4 (
110         krb5_context /*context*/,
111         krb5_kdc_configuration */*config*/,
112         unsigned char */*buf*/,
113         size_t /*len*/,
114         krb5_data */*reply*/,
115         const char */*from*/,
116         struct sockaddr_in */*addr*/);
117
118 krb5_error_code
119 _kdc_encode_reply (
120         krb5_context /*context*/,
121         krb5_kdc_configuration */*config*/,
122         KDC_REP */*rep*/,
123         const EncTicketPart */*et*/,
124         EncKDCRepPart */*ek*/,
125         krb5_enctype /*etype*/,
126         int /*skvno*/,
127         const EncryptionKey */*skey*/,
128         int /*ckvno*/,
129         const EncryptionKey */*ckey*/,
130         const char **/*e_text*/,
131         krb5_data */*reply*/);
132
133 krb5_error_code
134 _kdc_encode_v4_ticket (
135         krb5_context /*context*/,
136         krb5_kdc_configuration */*config*/,
137         void */*buf*/,
138         size_t /*len*/,
139         const EncTicketPart */*et*/,
140         const PrincipalName */*service*/,
141         size_t */*size*/);
142
143 krb5_error_code
144 _kdc_find_etype (
145         krb5_context /*context*/,
146         const hdb_entry_ex */*princ*/,
147         krb5_enctype */*etypes*/,
148         unsigned /*len*/,
149         Key **/*ret_key*/,
150         krb5_enctype */*ret_etype*/);
151
152 PA_DATA*
153 _kdc_find_padata (
154         KDC_REQ */*req*/,
155         int */*start*/,
156         int /*type*/);
157
158 void
159 _kdc_fix_time (time_t **/*t*/);
160
161 void
162 _kdc_free_ent (
163         krb5_context /*context*/,
164         hdb_entry_ex */*ent*/);
165
166 krb5_error_code
167 _kdc_get_des_key (
168         krb5_context /*context*/,
169         hdb_entry_ex */*principal*/,
170         krb5_boolean /*is_server*/,
171         krb5_boolean /*prefer_afs_key*/,
172         Key **/*ret_key*/);
173
174 krb5_error_code
175 _kdc_get_preferred_key (
176         krb5_context /*context*/,
177         krb5_kdc_configuration */*config*/,
178         hdb_entry_ex */*h*/,
179         const char */*name*/,
180         krb5_enctype */*enctype*/,
181         Key **/*key*/);
182
183 void
184 _kdc_log_timestamp (
185         krb5_context /*context*/,
186         krb5_kdc_configuration */*config*/,
187         const char */*type*/,
188         KerberosTime /*authtime*/,
189         KerberosTime */*starttime*/,
190         KerberosTime /*endtime*/,
191         KerberosTime */*renew_till*/);
192
193 krb5_error_code
194 _kdc_make_anonymous_principalname (PrincipalName */*pn*/);
195
196 int
197 _kdc_maybe_version4 (
198         unsigned char */*buf*/,
199         int /*len*/);
200
201 krb5_error_code
202 _kdc_pac_generate (
203         krb5_context /*context*/,
204         hdb_entry_ex */*client*/,
205         krb5_pac */*pac*/);
206
207 krb5_error_code
208 _kdc_pac_verify (
209         krb5_context /*context*/,
210         const krb5_principal /*client_principal*/,
211         hdb_entry_ex */*client*/,
212         hdb_entry_ex */*server*/,
213         krb5_pac */*pac*/);
214
215 krb5_error_code
216 _kdc_pk_check_client (
217         krb5_context /*context*/,
218         krb5_kdc_configuration */*config*/,
219         const hdb_entry_ex */*client*/,
220         pk_client_params */*client_params*/,
221         char **/*subject_name*/);
222
223 void
224 _kdc_pk_free_client_param (
225         krb5_context /*context*/,
226         pk_client_params */*client_params*/);
227
228 krb5_error_code
229 _kdc_pk_initialize (
230         krb5_context /*context*/,
231         krb5_kdc_configuration */*config*/,
232         const char */*user_id*/,
233         const char */*anchors*/,
234         char **/*pool*/,
235         char **/*revoke_list*/);
236
237 krb5_error_code
238 _kdc_pk_mk_pa_reply (
239         krb5_context /*context*/,
240         krb5_kdc_configuration */*config*/,
241         pk_client_params */*client_params*/,
242         const hdb_entry_ex */*client*/,
243         const KDC_REQ */*req*/,
244         const krb5_data */*req_buffer*/,
245         krb5_keyblock **/*reply_key*/,
246         METHOD_DATA */*md*/);
247
248 krb5_error_code
249 _kdc_pk_rd_padata (
250         krb5_context /*context*/,
251         krb5_kdc_configuration */*config*/,
252         KDC_REQ */*req*/,
253         PA_DATA */*pa*/,
254         pk_client_params **/*ret_params*/);
255
256 krb5_error_code
257 _kdc_tgs_rep (
258         krb5_context /*context*/,
259         krb5_kdc_configuration */*config*/,
260         KDC_REQ */*req*/,
261         krb5_data */*data*/,
262         const char */*from*/,
263         struct sockaddr */*from_addr*/,
264         int /*datagram_reply*/);
265
266 krb5_error_code
267 _kdc_tkt_add_if_relevant_ad (
268         krb5_context /*context*/,
269         EncTicketPart */*tkt*/,
270         int /*type*/,
271         const krb5_data */*data*/);
272
273 krb5_error_code
274 _kdc_try_kx509_request (
275         void */*ptr*/,
276         size_t /*len*/,
277         Kx509Request */*req*/,
278         size_t */*size*/);
279
280 krb5_error_code
281 _kdc_windc_client_access (
282         krb5_context /*context*/,
283         struct hdb_entry_ex */*client*/,
284         KDC_REQ */*req*/);
285
286 krb5_error_code
287 _kdc_windc_init (krb5_context /*context*/);
288
289 #endif /* __kdc_private_h__ */