]> git.saurik.com Git - apple/network_cmds.git/blame - telnet.tproj/krb4-proto.h
network_cmds-176.2.1.tar.gz
[apple/network_cmds.git] / telnet.tproj / krb4-proto.h
CommitLineData
b7080c8e
A
1/*
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
921c0aec
A
6 * "Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7 * Reserved. This file contains Original Code and/or Modifications of
8 * Original Code as defined in and that are subject to the Apple Public
9 * Source License Version 1.0 (the 'License'). You may not use this file
10 * except in compliance with the License. Please obtain a copy of the
11 * License at http://www.apple.com/publicsource and read it before using
12 * this file.
b7080c8e
A
13 *
14 * The Original Code and all software distributed under the License are
15 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
921c0aec
A
18 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
19 * License for the specific language governing rights and limitations
20 * under the License."
b7080c8e
A
21 *
22 * @APPLE_LICENSE_HEADER_END@
23 */
24#ifdef __STDC__
25# define P(s) s
26#else
27# define P(s) ()
28#endif
29
30/* add_ticket.c */
31int add_ticket P((KTEXT , int , char *, int , char *, char *, char *, int , KTEXT ));
32
33/* cr_err_reply.c */
34void cr_err_reply P((KTEXT , char *, char *, char *, u_long , u_long , char *));
35
36/* create_auth_reply.c */
37KTEXT create_auth_reply P((char *, char *, char *, long , int , unsigned long , int , KTEXT ));
38
39/* create_ciph.c */
40int create_ciph P((KTEXT , C_Block , char *, char *, char *, unsigned long , int , KTEXT , unsigned long , C_Block ));
41
42/* create_death_packet.c */
43KTEXT krb_create_death_packet P((char *));
44
45/* create_ticket.c */
46int krb_create_ticket P((KTEXT , unsigned int , char *, char *, char *, long , char *, int , long , char *, char *, C_Block ));
47
48/* debug_decl.c */
49
50/* decomp_ticket.c */
51int decomp_ticket P((KTEXT , unsigned char *, char *, char *, char *, unsigned long *, C_Block , int *, unsigned long *, char *, char *, C_Block , Key_schedule ));
52
53/* dest_tkt.c */
54int dest_tkt P((void ));
55
56/* extract_ticket.c */
57int extract_ticket P((KTEXT , int , char *, int *, int *, char *, KTEXT ));
58
59/* fgetst.c */
60int fgetst P((FILE *, char *, int ));
61
62/* get_ad_tkt.c */
63int get_ad_tkt P((char *, char *, char *, int ));
64
65/* get_admhst.c */
66int krb_get_admhst P((char *, char *, int ));
67
68/* get_cred.c */
69int krb_get_cred P((char *, char *, char *, CREDENTIALS *));
70
71/* get_in_tkt.c */
72int krb_get_pw_in_tkt P((char *, char *, char *, char *, char *, int , char *));
73int placebo_read_password P((des_cblock *, char *, int ));
74int placebo_read_pw_string P((char *, int , char *, int ));
75
76/* get_krbhst.c */
77int krb_get_krbhst P((char *, char *, int ));
78
79/* get_krbrlm.c */
80int krb_get_lrealm P((char *, int ));
81
82/* get_phost.c */
83char *krb_get_phost P((char *));
84
85/* get_pw_tkt.c */
86int get_pw_tkt P((char *, char *, char *, char *));
87
88/* get_request.c */
89int get_request P((KTEXT , int , char **, char **));
90
91/* get_svc_in_tkt.c */
92int krb_get_svc_in_tkt P((char *, char *, char *, char *, char *, int , char *));
93
94/* get_tf_fullname.c */
95int krb_get_tf_fullname P((char *, char *, char *, char *));
96
97/* get_tf_realm.c */
98int krb_get_tf_realm P((char *, char *));
99
100/* getopt.c */
101int getopt P((int , char **, char *));
102
103/* getrealm.c */
104char *krb_realmofhost P((char *));
105
106/* getst.c */
107int getst P((int , char *, int ));
108
109/* in_tkt.c */
110int in_tkt P((char *, char *));
111
112/* k_gethostname.c */
113int k_gethostname P((char *, int ));
114
115/* klog.c */
116char *klog P((int , char *, int , int , int , int , int , int , int , int , int , int ));
117int kset_logfile P((char *));
118
119/* kname_parse.c */
120int kname_parse P((char *, char *, char *, char *));
121int k_isname P((char *));
122int k_isinst P((char *));
123int k_isrealm P((char *));
124
125/* kntoln.c */
126int krb_kntoln P((AUTH_DAT *, char *));
127
128/* krb_err_txt.c */
129
130/* krb_get_in_tkt.c */
131int krb_get_in_tkt P((char *, char *, char *, char *, char *, int , int (*key_proc )(), int (*decrypt_proc )(), char *));
132
133/* kuserok.c */
134int kuserok P((AUTH_DAT *, char *));
135
136/* log.c */
137void log P((char *, int , int , int , int , int , int , int , int , int , int ));
138int set_logfile P((char *));
139int new_log P((long , char *));
140
141/* mk_err.c */
142long krb_mk_err P((u_char *, long , char *));
143
144/* mk_priv.c */
145long krb_mk_priv P((u_char *, u_char *, u_long , Key_schedule , C_Block , struct sockaddr_in *, struct sockaddr_in *));
146
147/* mk_req.c */
148int krb_mk_req P((KTEXT , char *, char *, char *, long ));
149int krb_set_lifetime P((int ));
150
151/* mk_safe.c */
152long krb_mk_safe P((u_char *, u_char *, u_long , C_Block *, struct sockaddr_in *, struct sockaddr_in *));
153
154/* month_sname.c */
155char *month_sname P((int ));
156
157/* netread.c */
158int krb_net_read P((int , char *, int ));
159
160/* netwrite.c */
161int krb_net_write P((int , char *, int ));
162
163/* one.c */
164
165/* pkt_cipher.c */
166KTEXT pkt_cipher P((KTEXT ));
167
168/* pkt_clen.c */
169int pkt_clen P((KTEXT ));
170
171/* rd_err.c */
172int krb_rd_err P((u_char *, u_long , long *, MSG_DAT *));
173
174/* rd_priv.c */
175long krb_rd_priv P((u_char *, u_long , Key_schedule , C_Block , struct sockaddr_in *, struct sockaddr_in *, MSG_DAT *));
176
177/* rd_req.c */
178int krb_set_key P((char *, int ));
179int krb_rd_req P((KTEXT , char *, char *, long , AUTH_DAT *, char *));
180
181/* rd_safe.c */
182long krb_rd_safe P((u_char *, u_long , C_Block *, struct sockaddr_in *, struct sockaddr_in *, MSG_DAT *));
183
184/* read_service_key.c */
185int read_service_key P((char *, char *, char *, int , char *, char *));
186
187/* recvauth.c */
188int krb_recvauth P((long , int , KTEXT , char *, char *, struct sockaddr_in *, struct sockaddr_in *, AUTH_DAT *, char *, Key_schedule , char *));
189
190/* save_credentials.c */
191int save_credentials P((char *, char *, char *, C_Block , int , int , KTEXT , long ));
192
193/* send_to_kdc.c */
194int send_to_kdc P((KTEXT , KTEXT , char *));
195
196/* sendauth.c */
197int krb_sendauth P((long , int , KTEXT , char *, char *, char *, u_long , MSG_DAT *, CREDENTIALS *, Key_schedule , struct sockaddr_in *, struct sockaddr_in *, char *));
198int krb_sendsvc P((int , char *));
199
200/* setenv.c */
201int setenv P((char *, char *, int ));
202void unsetenv P((char *));
203char *getenv P((char *));
204char *_findenv P((char *, int *));
205
206/* stime.c */
207char *stime P((long *));
208
209/* tf_shm.c */
210int krb_shm_create P((char *));
211int krb_is_diskless P((void ));
212int krb_shm_dest P((char *));
213
214/* tf_util.c */
215int tf_init P((char *, int ));
216int tf_get_pname P((char *));
217int tf_get_pinst P((char *));
218int tf_get_cred P((CREDENTIALS *));
219int tf_close P((void ));
220int tf_save_cred P((char *, char *, char *, C_Block , int , int , KTEXT , long ));
221
222/* tkt_string.c */
223char *tkt_string P((void ));
224void krb_set_tkt_string P((char *));
225
226/* util.c */
227int ad_print P((AUTH_DAT *));
228int placebo_cblock_print P((des_cblock ));
229
230#undef P