1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
|
/*
* $Source$
* $Author$
* $Id$
*
* Copyright 1990 by the Massachusetts Institute of Technology.
*
* For copying and distribution information, please see the file
* <krb5/copyright.h>.
*
* Function prototypes for Kerberos V5 library.
*/
#include <krb5/copyright.h>
#ifndef KRB5_FUNC_PROTO__
#define KRB5_FUNC_PROTO__
/* libkrb.spec */
krb5_error_code krb5_kdc_rep_decrypt_proc
PROTOTYPE((const krb5_keyblock *,
krb5_const_pointer,
krb5_kdc_rep * ));
krb5_error_code krb5_encode_ticket
PROTOTYPE((const krb5_ticket *,
krb5_data ** ));
krb5_error_code krb5_encrypt_tkt_part
PROTOTYPE((const krb5_keyblock *,
krb5_ticket * ));
krb5_error_code krb5_decrypt_tkt_part
PROTOTYPE((const krb5_keyblock *,
krb5_ticket * ));
krb5_error_code krb5_get_cred_from_kdc
PROTOTYPE((krb5_ccache, /* not const, as reading may save
state */
krb5_creds *,
krb5_creds *** ));
void krb5_free_tgt_creds
PROTOTYPE((krb5_creds ** )); /* XXX too hard to do with const */
krb5_error_code krb5_get_credentials
PROTOTYPE((const krb5_flags,
krb5_ccache,
krb5_creds * ));
krb5_error_code krb5_mk_req
PROTOTYPE((krb5_const_principal,
const krb5_flags,
const krb5_checksum *,
krb5_ccache,
krb5_data * ));
krb5_error_code krb5_mk_req_extended
PROTOTYPE((const krb5_flags,
const krb5_checksum *,
const krb5_ticket_times *,
const krb5_flags,
krb5_int32,
krb5_keyblock *,
krb5_ccache,
krb5_creds *,
krb5_authenticator *,
krb5_data * ));
krb5_error_code krb5_rd_req_simple
PROTOTYPE((const krb5_data *,
krb5_const_principal,
const krb5_address *,
krb5_tkt_authent * ));
krb5_error_code krb5_mk_rep
PROTOTYPE((const krb5_ap_rep_enc_part *,
const krb5_keyblock *,
krb5_data *));
krb5_error_code krb5_rd_rep
PROTOTYPE((const krb5_data *,
const krb5_keyblock *,
krb5_ap_rep_enc_part *));
krb5_error_code krb5_mk_error
PROTOTYPE((const krb5_error *,
krb5_data * ));
krb5_error_code krb5_rd_error
PROTOTYPE((const krb5_data *,
krb5_error * ));
krb5_error_code krb5_rd_safe
PROTOTYPE((const krb5_data *,
const krb5_keyblock *,
const krb5_address *,
const krb5_address *,
krb5_int32, krb5_int32,
krb5_data * ));
krb5_error_code krb5_rd_priv
PROTOTYPE((const krb5_data *,
const krb5_keyblock *,
const krb5_address *,
const krb5_address *,
krb5_int32, krb5_int32,
krb5_pointer,
krb5_data * ));
krb5_error_code krb5_parse_name
PROTOTYPE((const char *,
krb5_principal * ));
krb5_error_code krb5_unparse_name
PROTOTYPE((krb5_const_principal,
char ** ));
krb5_error_code krb5_unparse_name_ext
PROTOTYPE((krb5_const_principal,
char **,
int *));
krb5_boolean krb5_address_search
PROTOTYPE((const krb5_address *,
krb5_address * const *));
krb5_boolean krb5_address_compare
PROTOTYPE((const krb5_address *,
const krb5_address *));
int krb5_address_order
PROTOTYPE((const krb5_address *,
const krb5_address *));
krb5_boolean krb5_principal_compare
PROTOTYPE((krb5_const_principal,
krb5_const_principal));
int krb5_fulladdr_order
PROTOTYPE((const krb5_fulladdr *,
const krb5_fulladdr *));
krb5_error_code krb5_copy_keyblock
PROTOTYPE((const krb5_keyblock *,
krb5_keyblock *));
krb5_error_code krb5_copy_creds
PROTOTYPE((const krb5_creds *,
krb5_creds **));
krb5_error_code krb5_copy_data
PROTOTYPE((const krb5_data *,
krb5_data **));
krb5_error_code krb5_copy_principal
PROTOTYPE((krb5_const_principal,
krb5_principal *));
krb5_error_code krb5_copy_addresses
PROTOTYPE((krb5_address * const *,
krb5_address ***));
krb5_error_code krb5_copy_ticket
PROTOTYPE((const krb5_ticket *, krb5_ticket **));
krb5_error_code krb5_copy_authdata
PROTOTYPE((krb5_authdata * const *,
krb5_authdata ***));
void krb5_init_ets PROTOTYPE((void));
/* libkt.spec */
krb5_error_code krb5_kt_register
PROTOTYPE((krb5_kt_ops * ));
krb5_error_code krb5_kt_resolve
PROTOTYPE((const char *,
krb5_keytab * ));
krb5_error_code krb5_kt_default_name
PROTOTYPE((char *,
int ));
krb5_error_code krb5_kt_default
PROTOTYPE((krb5_keytab * ));
krb5_error_code krb5_kt_free_entry
PROTOTYPE((krb5_keytab_entry * ));
/* remove and add are functions, so that they can return NOWRITE
if not a writable keytab */
krb5_error_code krb5_kt_remove_entry
PROTOTYPE((krb5_keytab,
krb5_keytab_entry * ));
krb5_error_code krb5_kt_add_entry
PROTOTYPE((krb5_keytab,
krb5_keytab_entry * ));
krb5_error_code krb5_principal2salt
PROTOTYPE((krb5_const_principal, krb5_data *));
/* librc.spec--see rcache.h */
/* libcc.spec */
krb5_error_code krb5_cc_resolve
PROTOTYPE((char *,
krb5_ccache * ));
krb5_error_code krb5_cc_generate_new
PROTOTYPE((krb5_cc_ops *,
krb5_ccache * ));
char *krb5_cc_default_name
PROTOTYPE((void ));
krb5_error_code krb5_cc_default
PROTOTYPE((krb5_ccache *));
/* krb5_free.c */
void krb5_free_principal
PROTOTYPE((krb5_principal ));
void krb5_free_authenticator
PROTOTYPE((krb5_authenticator * ));
void krb5_free_address
PROTOTYPE((krb5_address ** ));
void krb5_free_addr
PROTOTYPE((krb5_address * ));
void krb5_free_authdata
PROTOTYPE((krb5_authdata ** ));
void krb5_free_enc_tkt_part
PROTOTYPE((krb5_enc_tkt_part * ));
void krb5_free_ticket
PROTOTYPE((krb5_ticket * ));
void krb5_free_tickets
PROTOTYPE((krb5_ticket ** ));
void krb5_free_kdc_req
PROTOTYPE((krb5_kdc_req * ));
void krb5_free_kdc_rep
PROTOTYPE((krb5_kdc_rep * ));
void krb5_free_last_req
PROTOTYPE((krb5_last_req_entry ** ));
void krb5_free_enc_kdc_rep_part
PROTOTYPE((krb5_enc_kdc_rep_part * ));
void krb5_free_error
PROTOTYPE((krb5_error * ));
void krb5_free_ap_req
PROTOTYPE((krb5_ap_req * ));
void krb5_free_ap_rep
PROTOTYPE((krb5_ap_rep * ));
void krb5_free_safe
PROTOTYPE((krb5_safe * ));
void krb5_free_priv
PROTOTYPE((krb5_priv * ));
void krb5_free_priv_enc_part
PROTOTYPE((krb5_priv_enc_part * ));
void krb5_free_kdc_req
PROTOTYPE((krb5_kdc_req * ));
void krb5_free_creds
PROTOTYPE((krb5_creds *));
void krb5_free_cred_contents
PROTOTYPE((krb5_creds *));
void krb5_free_checksum
PROTOTYPE((krb5_checksum *));
void krb5_free_keyblock
PROTOTYPE((krb5_keyblock *));
void krb5_free_pa_data
PROTOTYPE((krb5_pa_data **));
void krb5_free_ap_rep_enc_part
PROTOTYPE((krb5_ap_rep_enc_part *));
#include <krb5/widen.h>
/* Only put things which don't have pointers to the narrow types in this
section */
krb5_error_code krb5_encode_kdc_rep
PROTOTYPE((const krb5_msgtype,
const krb5_enc_kdc_rep_part *,
const krb5_keyblock *,
krb5_kdc_rep *,
krb5_data ** ));
krb5_error_code krb5_send_tgs
PROTOTYPE((const krb5_flags,
const krb5_ticket_times *,
const krb5_enctype,
const krb5_cksumtype,
krb5_const_principal,
krb5_address * const *,
krb5_authdata * const *,
krb5_pa_data * const *,
const krb5_data *,
krb5_creds *,
krb5_response * ));
krb5_error_code krb5_get_in_tkt
PROTOTYPE((const krb5_flags,
krb5_address * const *,
const krb5_enctype,
const krb5_keytype,
krb5_error_code (* )(const krb5_keytype,
krb5_keyblock **,
krb5_const_pointer,
krb5_pa_data **),
krb5_const_pointer,
krb5_error_code (* )(const krb5_keyblock *,
krb5_const_pointer,
krb5_kdc_rep * ),
krb5_const_pointer,
krb5_creds *,
krb5_ccache ));
krb5_error_code krb5_get_in_tkt_with_password
PROTOTYPE((const krb5_flags,
krb5_address * const *,
const krb5_enctype,
const krb5_keytype,
const char *,
krb5_ccache,
krb5_creds * ));
krb5_error_code krb5_get_in_tkt_with_skey
PROTOTYPE((const krb5_flags,
krb5_address * const *,
const krb5_enctype,
const krb5_keyblock *,
krb5_ccache,
krb5_creds * ));
krb5_error_code krb5_decode_kdc_rep
PROTOTYPE((krb5_data *,
const krb5_keyblock *,
const krb5_enctype,
krb5_kdc_rep ** ));
krb5_error_code krb5_rd_req
PROTOTYPE((const krb5_data *,
krb5_const_principal,
const krb5_address *,
krb5_const_pointer,
krb5_error_code (* )(krb5_pointer,
krb5_principal,
krb5_kvno,
krb5_keyblock ** ),
krb5_pointer,
krb5_rcache,
krb5_tkt_authent * ));
krb5_error_code krb5_rd_req_decoded
PROTOTYPE((const krb5_ap_req *,
krb5_const_principal,
const krb5_address *,
krb5_const_pointer,
krb5_error_code (* )(krb5_pointer,
krb5_principal,
krb5_kvno,
krb5_keyblock ** ),
krb5_pointer,
krb5_rcache,
krb5_tkt_authent * ));
krb5_error_code krb5_kt_read_service_key
PROTOTYPE((krb5_pointer,
krb5_principal,
krb5_kvno,
krb5_keyblock **));
krb5_error_code krb5_mk_safe
PROTOTYPE((const krb5_data *,
const krb5_cksumtype ,
const krb5_keyblock *,
const krb5_address *,
const krb5_address *,
krb5_int32, krb5_int32,
krb5_data * ));
krb5_error_code krb5_mk_priv
PROTOTYPE((const krb5_data *,
const krb5_enctype,
const krb5_keyblock *,
const krb5_address *,
const krb5_address *,
krb5_int32, krb5_int32,
krb5_pointer,
krb5_data * ));
krb5_error_code krb5_cc_register
PROTOTYPE((krb5_cc_ops *,
krb5_boolean ));
#include <krb5/narrow.h>
#endif /* KRB5_FUNC_PROTO__ */
|