summaryrefslogtreecommitdiffstats
path: root/src/include/krb5/func-proto.h
blob: 0cd95aa3f21c5dc4e553d030ffa668b0c1340480 (plain)
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
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
/*
 * $Source$
 * $Author$
 * $Id$
 *
 * Copyright 1990 by the Massachusetts Institute of Technology.
 *
 * For copying and distribution information, please see the file
 * <krb5/mit-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_encode_kdc_rep
	PROTOTYPE((krb5_msgtype,
		   krb5_kdc_rep *,
		   krb5_enc_kdc_rep_part *,
		   krb5_keyblock *,
		   krb5_data ** ));
krb5_error_code krb5_decode_kdc_rep
	PROTOTYPE((krb5_data *,
		   krb5_keyblock *,
		   krb5_enctype,
		   krb5_kdc_rep ** ));
krb5_error_code krb5_kdc_rep_decrypt_proc
	PROTOTYPE((krb5_keyblock *,
		   krb5_pointer,
		   krb5_kdc_rep * ));
krb5_error_code krb5_encode_ticket
	PROTOTYPE((krb5_ticket *,
		   krb5_data ** ));
krb5_error_code krb5_decode_ticket
	PROTOTYPE((krb5_data *,
		   krb5_ticket ** ));
krb5_error_code krb5_encrypt_tkt_part
	PROTOTYPE((krb5_keyblock *,
		   krb5_ticket * ));
krb5_error_code krb5_decrypt_tkt_part
	PROTOTYPE((krb5_keyblock *,
		   krb5_ticket * ));
krb5_error_code krb5_send_tgs
	PROTOTYPE((krb5_flags,
		   krb5_ticket_times *,
		   krb5_enctype,
		   krb5_principal,
		   krb5_address **,
		   krb5_data *,
		   krb5_data *,
		   krb5_creds *,
		   krb5_response * ));
krb5_error_code krb5_get_cred_from_kdc
	PROTOTYPE((krb5_ccache,
		   krb5_creds *,
		   krb5_creds *** ));
krb5_error_code krb5_free_tgt_creds
	PROTOTYPE((krb5_creds ** ));
krb5_error_code krb5_get_credentials
	PROTOTYPE((krb5_flags,
		   krb5_ccache,
		   krb5_creds * ));
krb5_error_code krb5_get_in_tkt
	PROTOTYPE((krb5_flags,
		   krb5_address **,
		   krb5_enctype,
		   krb5_keytype,
		   krb5_error_code (* )(krb5_keytype,
					krb5_keyblock **,
					krb5_pointer ),
		   krb5_pointer,
		   krb5_error_code (* )(krb5_keyblock *,
					krb5_pointer,
					krb5_kdc_rep * ),
		   krb5_pointer,
		   krb5_creds *,
		   krb5_ccache ));
krb5_error_code krb5_get_in_tkt_with_password
	PROTOTYPE((krb5_flags,
		   krb5_address **,
		   krb5_enctype,
		   krb5_keytype,
		   char *,
		   krb5_ccache,
		   krb5_creds * ));
krb5_error_code krb5_get_in_tkt_with_skey
	PROTOTYPE((krb5_flags,
		   krb5_address **,
		   krb5_enctype,
		   krb5_keyblock *,
		   krb5_ccache,
		   krb5_creds * ));
krb5_error_code krb5_mk_req
	PROTOTYPE((krb5_principal,
		   krb5_flags,
		   krb5_checksum *,
		   krb5_ccache,
		   krb5_data * ));
krb5_error_code krb5_mk_req_extended
	PROTOTYPE((krb5_flags,
		   krb5_checksum *,
		   krb5_ticket_times *,
		   krb5_flags,
		   krb5_ccache,
		   krb5_creds *,
		   krb5_data * ));
krb5_error_code krb5_rd_req
	PROTOTYPE((krb5_data *,
		   krb5_principal,
		   krb5_address *,
		   krb5_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((krb5_ap_req *,
		   krb5_principal,
		   krb5_address *,
		   krb5_pointer,
		   krb5_error_code (* )(krb5_pointer,
					krb5_principal,
					krb5_kvno,
					krb5_keyblock ** ),
		   krb5_pointer,
		   krb5_rcache,
		   krb5_tkt_authent * ));
krb5_error_code krb5_mk_error
	PROTOTYPE((krb5_error *,
		   krb5_data * ));
krb5_error_code krb5_rd_error
	PROTOTYPE((krb5_data *,
		   krb5_error * ));
krb5_error_code krb5_mk_safe
	PROTOTYPE((krb5_data *,
		   krb5_cksumtype ,
		   krb5_keyblock *,
		   krb5_fulladdr *,
		   krb5_fulladdr *,
		   krb5_data * ));
krb5_error_code krb5_rd_safe
	PROTOTYPE((krb5_data *,
		   krb5_keyblock *,
		   krb5_fulladdr *,
		   krb5_fulladdr *,
		   krb5_data * ));
krb5_error_code krb5_mk_priv
	PROTOTYPE((krb5_data *,
		   krb5_enctype,
		   krb5_keyblock *,
		   krb5_fulladdr *,
		   krb5_fulladdr *,
		   krb5_data * ));
krb5_error_code krb5_rd_priv
	PROTOTYPE((krb5_data *,
		   krb5_keyblock *,
		   krb5_fulladdr *,
		   krb5_fulladdr *,
		   krb5_data * ));
krb5_error_code krb5_get_default_realm
	PROTOTYPE((int,
		   char * ));
krb5_error_code krb5_get_host_realm
	PROTOTYPE((char *,
		   char *** ));
krb5_error_code krb5_free_host_realm
	PROTOTYPE((char ** ));
krb5_error_code krb5_parse_name
	PROTOTYPE((char *,
		   krb5_principal * ));
krb5_error_code krb5_unparse_name
	PROTOTYPE((krb5_principal,
		   char ** ));
krb5_boolean krb5_address_search
	PROTOTYPE((krb5_address *,
		   krb5_address **));
krb5_boolean krb5_address_compare
	PROTOTYPE((krb5_address *,
		   krb5_address *));
krb5_boolean krb5_principal_compare
	PROTOTYPE((krb5_principal, krb5_principal));
int krb5_fulladdr_order
	PROTOTYPE((krb5_fulladdr *,
		   krb5_fulladdr *));
krb5_error_code krb5_copy_keyblock
    PROTOTYPE((krb5_keyblock *,
	       krb5_keyblock *));
krb5_error_code krb5_copy_creds
    PROTOTYPE((krb5_creds *,
	       krb5_creds **));
krb5_error_code krb5_copy_data
    PROTOTYPE((krb5_data *,
	       krb5_data **));
krb5_error_code krb5_copy_principal
    PROTOTYPE((krb5_principal,
	       krb5_principal *));

/* libkt.spec */
krb5_error_code krb5_kt_register
	PROTOTYPE((krb5_kt_ops * ));
krb5_error_code krb5_kt_resolve
	PROTOTYPE((char *,
		   krb5_keytab * ));
krb5_error_code krb5_kt_get_name
	PROTOTYPE((krb5_keytab,
		   char *,
		   int ));
krb5_error_code krb5_tk_default_name
	PROTOTYPE((char *,
		   int ));
krb5_error_code krb5_kt_default
	PROTOTYPE((krb5_keytab * ));
krb5_error_code krb5_kt_close
	PROTOTYPE((krb5_keytab ));
krb5_error_code krb5_kt_get_entry
	PROTOTYPE((krb5_keytab,
		   krb5_principal,
		   krb5_kvno,
		   krb5_keytab_entry * ));
krb5_error_code krb5_kt_free_entry
	PROTOTYPE((krb5_keytab_entry * ));
krb5_error_code krb5_kt_start_seq_get
	PROTOTYPE((krb5_keytab,
		   krb5_kt_cursor * ));
krb5_error_code krb5_kt_next_entry
	PROTOTYPE((krb5_keytab,
		   krb5_keytab_entry *,
		   krb5_kt_cursor ));
krb5_error_code krb5_kt_end_seq_get
	PROTOTYPE((krb5_keytab,
		   krb5_kt_cursor ));
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_kt_read_service_key
	PROTOTYPE((krb5_pointer,
		   krb5_principal,
		   krb5_kvno,
		   krb5_keyblock **));

/* librc.spec */
krb5_error_code krb5_rc_initialize
	PROTOTYPE((krb5_rcache,
		   krb5_deltat ));
krb5_error_code krb5_rc_recover
	PROTOTYPE((krb5_rcache ));
krb5_error_code krb5_rc_destroy
	PROTOTYPE((krb5_rcache ));
krb5_error_code krb5_rc_close
	PROTOTYPE((krb5_rcache ));
krb5_error_code krb5_rc_store
	PROTOTYPE((krb5_rcache,
		   krb5_tkt_authent *,
		   krb5_boolean ));
krb5_error_code krb5_rc_expunge
	PROTOTYPE((krb5_rcache ));
krb5_error_code krb5_rc_get_lifespan
	PROTOTYPE((krb5_rcache,
		   krb5_deltat * ));
krb5_error_code krb5_rc_resolve
	PROTOTYPE((krb5_rcache *,
		   char * ));
krb5_error_code krb5_rc_generate_new
	PROTOTYPE((krb5_rcache *,
		   krb5_rc_ops * ));
krb5_error_code krb5_rc_register
	PROTOTYPE((krb5_rc_ops * ));
krb5_error_code krb5_rc_get_name
	PROTOTYPE((krb5_rcache, char *, int ));
char *krb5_rc_default_name
	PROTOTYPE((void ));
krb5_error_code krb5_rc_default
	PROTOTYPE((krb5_rcache * ));


/* libcc.spec */
krb5_error_code krb5_cc_initialize
	PROTOTYPE((krb5_ccache,
		   krb5_principal ));
krb5_error_code krb5_cc_destroy
	PROTOTYPE((krb5_ccache ));
krb5_error_code krb5_cc_close
	PROTOTYPE((krb5_ccache ));
krb5_error_code krb5_cc_store_cred
	PROTOTYPE((krb5_ccache,
		   krb5_creds * ));
krb5_error_code krb5_cc_retrieve_cred
	PROTOTYPE((krb5_ccache,
		   krb5_flags,
		   krb5_creds *,
		   krb5_creds * ));
krb5_error_code krb5_cc_get_principal
	PROTOTYPE((krb5_ccache,
		   krb5_principal * ));
krb5_error_code krb5_cc_start_seq_get
	PROTOTYPE((krb5_ccache,
		   krb5_cc_cursor * ));
krb5_error_code krb5_cc_next_cred
	PROTOTYPE((krb5_ccache,
		   krb5_creds *,
		   krb5_cc_cursor * ));
krb5_error_code krb5_cc_end_seq_get
	PROTOTYPE((krb5_ccache,
		   krb5_cc_cursor * ));
krb5_error_code krb5_cc_remove_cred
	PROTOTYPE((krb5_ccache,
		   krb5_flags,
		   krb5_creds * ));
krb5_error_code krb5_cc_resolve
	PROTOTYPE((char *,
		   krb5_ccache * ));
krb5_error_code krb5_cc_generate_new
	PROTOTYPE((krb5_cc_ops *,
		   krb5_ccache * ));
krb5_error_code krb5_cc_register
	PROTOTYPE((krb5_cc_ops *,
		   krb5_boolean ));
char *krb5_cc_default_name
	PROTOTYPE((void ));
krb5_ccache krb5_cc_default
	PROTOTYPE((void ));


/* 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_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_as_req
	PROTOTYPE((krb5_as_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_tgs_req
	PROTOTYPE((krb5_tgs_req * ));
void krb5_free_tgs_req_enc_part
	PROTOTYPE((krb5_tgs_req_enc_part * ));
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 * ));


#endif /* KRB5_FUNC_PROTO__ */