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