]> git.saurik.com Git - apple/network_cmds.git/blob - telnet.tproj/krb4-proto.h
network_cmds-76.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 * "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.
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,
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."
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 */
31 int add_ticket P((KTEXT , int , char *, int , char *, char *, char *, int , KTEXT ));
32
33 /* cr_err_reply.c */
34 void cr_err_reply P((KTEXT , char *, char *, char *, u_long , u_long , char *));
35
36 /* create_auth_reply.c */
37 KTEXT create_auth_reply P((char *, char *, char *, long , int , unsigned long , int , KTEXT ));
38
39 /* create_ciph.c */
40 int create_ciph P((KTEXT , C_Block , char *, char *, char *, unsigned long , int , KTEXT , unsigned long , C_Block ));
41
42 /* create_death_packet.c */
43 KTEXT krb_create_death_packet P((char *));
44
45 /* create_ticket.c */
46 int 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 */
51 int 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 */
54 int dest_tkt P((void ));
55
56 /* extract_ticket.c */
57 int extract_ticket P((KTEXT , int , char *, int *, int *, char *, KTEXT ));
58
59 /* fgetst.c */
60 int fgetst P((FILE *, char *, int ));
61
62 /* get_ad_tkt.c */
63 int get_ad_tkt P((char *, char *, char *, int ));
64
65 /* get_admhst.c */
66 int krb_get_admhst P((char *, char *, int ));
67
68 /* get_cred.c */
69 int krb_get_cred P((char *, char *, char *, CREDENTIALS *));
70
71 /* get_in_tkt.c */
72 int krb_get_pw_in_tkt P((char *, char *, char *, char *, char *, int , char *));
73 int placebo_read_password P((des_cblock *, char *, int ));
74 int placebo_read_pw_string P((char *, int , char *, int ));
75
76 /* get_krbhst.c */
77 int krb_get_krbhst P((char *, char *, int ));
78
79 /* get_krbrlm.c */
80 int krb_get_lrealm P((char *, int ));
81
82 /* get_phost.c */
83 char *krb_get_phost P((char *));
84
85 /* get_pw_tkt.c */
86 int get_pw_tkt P((char *, char *, char *, char *));
87
88 /* get_request.c */
89 int get_request P((KTEXT , int , char **, char **));
90
91 /* get_svc_in_tkt.c */
92 int krb_get_svc_in_tkt P((char *, char *, char *, char *, char *, int , char *));
93
94 /* get_tf_fullname.c */
95 int krb_get_tf_fullname P((char *, char *, char *, char *));
96
97 /* get_tf_realm.c */
98 int krb_get_tf_realm P((char *, char *));
99
100 /* getopt.c */
101 int getopt P((int , char **, char *));
102
103 /* getrealm.c */
104 char *krb_realmofhost P((char *));
105
106 /* getst.c */
107 int getst P((int , char *, int ));
108
109 /* in_tkt.c */
110 int in_tkt P((char *, char *));
111
112 /* k_gethostname.c */
113 int k_gethostname P((char *, int ));
114
115 /* klog.c */
116 char *klog P((int , char *, int , int , int , int , int , int , int , int , int , int ));
117 int kset_logfile P((char *));
118
119 /* kname_parse.c */
120 int kname_parse P((char *, char *, char *, char *));
121 int k_isname P((char *));
122 int k_isinst P((char *));
123 int k_isrealm P((char *));
124
125 /* kntoln.c */
126 int krb_kntoln P((AUTH_DAT *, char *));
127
128 /* krb_err_txt.c */
129
130 /* krb_get_in_tkt.c */
131 int krb_get_in_tkt P((char *, char *, char *, char *, char *, int , int (*key_proc )(), int (*decrypt_proc )(), char *));
132
133 /* kuserok.c */
134 int kuserok P((AUTH_DAT *, char *));
135
136 /* log.c */
137 void log P((char *, int , int , int , int , int , int , int , int , int , int ));
138 int set_logfile P((char *));
139 int new_log P((long , char *));
140
141 /* mk_err.c */
142 long krb_mk_err P((u_char *, long , char *));
143
144 /* mk_priv.c */
145 long 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 */
148 int krb_mk_req P((KTEXT , char *, char *, char *, long ));
149 int krb_set_lifetime P((int ));
150
151 /* mk_safe.c */
152 long krb_mk_safe P((u_char *, u_char *, u_long , C_Block *, struct sockaddr_in *, struct sockaddr_in *));
153
154 /* month_sname.c */
155 char *month_sname P((int ));
156
157 /* netread.c */
158 int krb_net_read P((int , char *, int ));
159
160 /* netwrite.c */
161 int krb_net_write P((int , char *, int ));
162
163 /* one.c */
164
165 /* pkt_cipher.c */
166 KTEXT pkt_cipher P((KTEXT ));
167
168 /* pkt_clen.c */
169 int pkt_clen P((KTEXT ));
170
171 /* rd_err.c */
172 int krb_rd_err P((u_char *, u_long , long *, MSG_DAT *));
173
174 /* rd_priv.c */
175 long 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 */
178 int krb_set_key P((char *, int ));
179 int krb_rd_req P((KTEXT , char *, char *, long , AUTH_DAT *, char *));
180
181 /* rd_safe.c */
182 long krb_rd_safe P((u_char *, u_long , C_Block *, struct sockaddr_in *, struct sockaddr_in *, MSG_DAT *));
183
184 /* read_service_key.c */
185 int read_service_key P((char *, char *, char *, int , char *, char *));
186
187 /* recvauth.c */
188 int 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 */
191 int save_credentials P((char *, char *, char *, C_Block , int , int , KTEXT , long ));
192
193 /* send_to_kdc.c */
194 int send_to_kdc P((KTEXT , KTEXT , char *));
195
196 /* sendauth.c */
197 int krb_sendauth P((long , int , KTEXT , char *, char *, char *, u_long , MSG_DAT *, CREDENTIALS *, Key_schedule , struct sockaddr_in *, struct sockaddr_in *, char *));
198 int krb_sendsvc P((int , char *));
199
200 /* setenv.c */
201 int setenv P((char *, char *, int ));
202 void unsetenv P((char *));
203 char *getenv P((char *));
204 char *_findenv P((char *, int *));
205
206 /* stime.c */
207 char *stime P((long *));
208
209 /* tf_shm.c */
210 int krb_shm_create P((char *));
211 int krb_is_diskless P((void ));
212 int krb_shm_dest P((char *));
213
214 /* tf_util.c */
215 int tf_init P((char *, int ));
216 int tf_get_pname P((char *));
217 int tf_get_pinst P((char *));
218 int tf_get_cred P((CREDENTIALS *));
219 int tf_close P((void ));
220 int tf_save_cred P((char *, char *, char *, C_Block , int , int , KTEXT , long ));
221
222 /* tkt_string.c */
223 char *tkt_string P((void ));
224 void krb_set_tkt_string P((char *));
225
226 /* util.c */
227 int ad_print P((AUTH_DAT *));
228 int placebo_cblock_print P((des_cblock ));
229
230 #undef P