xref: /netbsd-src/crypto/external/bsd/heimdal/include/kdc-private.h (revision 154bfe8e089c1a0a4e9ed8414f08d3da90949162)
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 /*client*/,
14 	krb5_const_principal /*server*/,
15 	krb5_principals /*principals*/,
16 	EncTicketPart */*tkt*/);
17 
18 krb5_error_code
19 _kdc_add_inital_verified_cas (
20 	krb5_context /*context*/,
21 	krb5_kdc_configuration */*config*/,
22 	pk_client_params */*cp*/,
23 	EncTicketPart */*tkt*/);
24 
25 krb5_error_code
26 _kdc_as_rep (
27 	kdc_request_t /*r*/,
28 	krb5_data */*reply*/,
29 	const char */*from*/,
30 	struct sockaddr */*from_addr*/,
31 	int /*datagram_reply*/);
32 
33 krb5_error_code
34 _kdc_check_access (
35 	krb5_context /*context*/,
36 	krb5_kdc_configuration */*config*/,
37 	hdb_entry_ex */*client_ex*/,
38 	const char */*client_name*/,
39 	hdb_entry_ex */*server_ex*/,
40 	const char */*server_name*/,
41 	KDC_REQ */*req*/,
42 	METHOD_DATA */*method_data*/);
43 
44 krb5_boolean
45 _kdc_check_addresses (
46 	krb5_context /*context*/,
47 	krb5_kdc_configuration */*config*/,
48 	HostAddresses */*addresses*/,
49 	const struct sockaddr */*from*/);
50 
51 krb5_error_code
52 _kdc_check_anon_policy (
53 	krb5_context /*context*/,
54 	krb5_kdc_configuration */*config*/,
55 	hdb_entry_ex */*client*/,
56 	hdb_entry_ex */*server*/);
57 
58 krb5_error_code
59 _kdc_db_fetch (
60 	krb5_context /*context*/,
61 	krb5_kdc_configuration */*config*/,
62 	krb5_const_principal /*principal*/,
63 	unsigned /*flags*/,
64 	krb5uint32 */*kvno_ptr*/,
65 	HDB **/*db*/,
66 	hdb_entry_ex **/*h*/);
67 
68 krb5_error_code
69 _kdc_do_digest (
70 	krb5_context /*context*/,
71 	krb5_kdc_configuration */*config*/,
72 	const struct DigestREQ */*req*/,
73 	krb5_data */*reply*/,
74 	const char */*from*/,
75 	struct sockaddr */*addr*/);
76 
77 krb5_error_code
78 _kdc_do_kx509 (
79 	krb5_context /*context*/,
80 	krb5_kdc_configuration */*config*/,
81 	const struct Kx509Request */*req*/,
82 	krb5_data */*reply*/,
83 	const char */*from*/,
84 	struct sockaddr */*addr*/);
85 
86 krb5_error_code
87 _kdc_encode_reply (
88 	krb5_context /*context*/,
89 	krb5_kdc_configuration */*config*/,
90 	krb5_crypto /*armor_crypto*/,
91 	uint32_t /*nonce*/,
92 	KDC_REP */*rep*/,
93 	EncTicketPart */*et*/,
94 	EncKDCRepPart */*ek*/,
95 	krb5_enctype /*etype*/,
96 	int /*skvno*/,
97 	const EncryptionKey */*skey*/,
98 	int /*ckvno*/,
99 	const EncryptionKey */*reply_key*/,
100 	int /*rk_is_subkey*/,
101 	const char **/*e_text*/,
102 	krb5_data */*reply*/);
103 
104 krb5_error_code
105 _kdc_fast_mk_error (
106 	krb5_context /*context*/,
107 	kdc_request_t /*r*/,
108 	METHOD_DATA */*error_method*/,
109 	krb5_crypto /*armor_crypto*/,
110 	const KDC_REQ_BODY */*req_body*/,
111 	krb5_error_code /*outer_error*/,
112 	const char */*e_text*/,
113 	krb5_principal /*error_server*/,
114 	const PrincipalName */*error_client_name*/,
115 	const Realm */*error_client_realm*/,
116 	time_t */*csec*/,
117 	int */*cusec*/,
118 	krb5_data */*error_msg*/);
119 
120 krb5_error_code
121 _kdc_fast_mk_response (
122 	krb5_context /*context*/,
123 	krb5_crypto /*armor_crypto*/,
124 	METHOD_DATA */*pa_data*/,
125 	krb5_keyblock */*strengthen_key*/,
126 	KrbFastFinished */*finished*/,
127 	krb5uint32 /*nonce*/,
128 	krb5_data */*data*/);
129 
130 krb5_error_code
131 _kdc_fast_unwrap_request (kdc_request_t /*r*/);
132 
133 krb5_error_code
134 _kdc_find_etype (
135 	krb5_context /*context*/,
136 	krb5_boolean /*use_strongest_session_key*/,
137 	krb5_boolean /*is_preauth*/,
138 	hdb_entry_ex */*princ*/,
139 	krb5_enctype */*etypes*/,
140 	unsigned /*len*/,
141 	krb5_enctype */*ret_enctype*/,
142 	Key **/*ret_key*/);
143 
144 const PA_DATA*
145 _kdc_find_padata (
146 	const KDC_REQ */*req*/,
147 	int */*start*/,
148 	int /*type*/);
149 
150 void
151 _kdc_fix_time (time_t **/*t*/);
152 
153 void
154 _kdc_free_ent (
155 	krb5_context /*context*/,
156 	hdb_entry_ex */*ent*/);
157 
158 krb5_error_code
159 _kdc_generate_ecdh_keyblock (
160 	krb5_context /*context*/,
161 	void */*ec_key_pk*/,
162 	void **/*ec_key_key*/,
163 	unsigned char **/*dh_gen_key*/,
164 	size_t */*dh_gen_keylen*/);
165 
166 krb5_error_code
167 _kdc_get_ecdh_param (
168 	krb5_context /*context*/,
169 	krb5_kdc_configuration */*config*/,
170 	SubjectPublicKeyInfo */*dh_key_info*/,
171 	void **/*out*/);
172 
173 krb5_error_code
174 _kdc_get_preferred_key (
175 	krb5_context /*context*/,
176 	krb5_kdc_configuration */*config*/,
177 	hdb_entry_ex */*h*/,
178 	const char */*name*/,
179 	krb5_enctype */*enctype*/,
180 	Key **/*key*/);
181 
182 krb5_boolean
183 _kdc_is_anonymous (
184 	krb5_context /*context*/,
185 	krb5_const_principal /*principal*/);
186 
187 krb5_boolean
188 _kdc_is_weak_exception (
189 	krb5_principal /*principal*/,
190 	krb5_enctype /*etype*/);
191 
192 void
193 _kdc_log_timestamp (
194 	krb5_context /*context*/,
195 	krb5_kdc_configuration */*config*/,
196 	const char */*type*/,
197 	KerberosTime /*authtime*/,
198 	KerberosTime */*starttime*/,
199 	KerberosTime /*endtime*/,
200 	KerberosTime */*renew_till*/);
201 
202 krb5_error_code
203 _kdc_make_anonymous_principalname (PrincipalName */*pn*/);
204 
205 krb5_error_code
206 _kdc_pac_generate (
207 	krb5_context /*context*/,
208 	hdb_entry_ex */*client*/,
209 	krb5_pac */*pac*/);
210 
211 krb5_error_code
212 _kdc_pac_verify (
213 	krb5_context /*context*/,
214 	const krb5_principal /*client_principal*/,
215 	const krb5_principal /*delegated_proxy_principal*/,
216 	hdb_entry_ex */*client*/,
217 	hdb_entry_ex */*server*/,
218 	hdb_entry_ex */*krbtgt*/,
219 	krb5_pac */*pac*/,
220 	int */*verified*/);
221 
222 krb5_error_code
223 _kdc_pk_check_client (
224 	krb5_context /*context*/,
225 	krb5_kdc_configuration */*config*/,
226 	HDB */*clientdb*/,
227 	hdb_entry_ex */*client*/,
228 	pk_client_params */*cp*/,
229 	char **/*subject_name*/);
230 
231 void
232 _kdc_pk_free_client_ec_param (
233 	krb5_context /*context*/,
234 	void */*ec_key_pk*/,
235 	void */*ec_key_key*/);
236 
237 void
238 _kdc_pk_free_client_param (
239 	krb5_context /*context*/,
240 	pk_client_params */*cp*/);
241 
242 krb5_error_code
243 _kdc_pk_mk_pa_reply (
244 	krb5_context /*context*/,
245 	krb5_kdc_configuration */*config*/,
246 	pk_client_params */*cp*/,
247 	const hdb_entry_ex */*client*/,
248 	krb5_enctype /*sessionetype*/,
249 	const KDC_REQ */*req*/,
250 	const krb5_data */*req_buffer*/,
251 	krb5_keyblock */*reply_key*/,
252 	krb5_keyblock */*sessionkey*/,
253 	METHOD_DATA */*md*/);
254 
255 krb5_error_code
256 _kdc_pk_rd_padata (
257 	krb5_context /*context*/,
258 	krb5_kdc_configuration */*config*/,
259 	const KDC_REQ */*req*/,
260 	const PA_DATA */*pa*/,
261 	hdb_entry_ex */*client*/,
262 	pk_client_params **/*ret_params*/);
263 
264 krb5_error_code
265 _kdc_serialize_ecdh_key (
266 	krb5_context /*context*/,
267 	void */*key*/,
268 	unsigned char **/*out*/,
269 	size_t */*out_len*/);
270 
271 krb5_error_code
272 _kdc_tgs_rep (
273 	krb5_context /*context*/,
274 	krb5_kdc_configuration */*config*/,
275 	KDC_REQ */*req*/,
276 	krb5_data */*data*/,
277 	const char */*from*/,
278 	struct sockaddr */*from_addr*/,
279 	int /*datagram_reply*/);
280 
281 krb5_error_code
282 _kdc_tkt_add_if_relevant_ad (
283 	krb5_context /*context*/,
284 	EncTicketPart */*tkt*/,
285 	int /*type*/,
286 	const krb5_data */*data*/);
287 
288 krb5_error_code
289 _kdc_try_kx509_request (
290 	void */*ptr*/,
291 	size_t /*len*/,
292 	struct Kx509Request */*req*/,
293 	size_t */*size*/);
294 
295 #endif /* __kdc_private_h__ */
296