2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
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
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.
23 * @APPLE_LICENSE_HEADER_END@
32 int add_ticket
P((KTEXT
, int , char *, int , char *, char *, char *, int , KTEXT
));
35 void cr_err_reply
P((KTEXT
, char *, char *, char *, u_long
, u_long
, char *));
37 /* create_auth_reply.c */
38 KTEXT create_auth_reply
P((char *, char *, char *, long , int , unsigned long , int , KTEXT
));
41 int create_ciph
P((KTEXT
, C_Block
, char *, char *, char *, unsigned long , int , KTEXT
, unsigned long , C_Block
));
43 /* create_death_packet.c */
44 KTEXT krb_create_death_packet
P((char *));
47 int krb_create_ticket
P((KTEXT
, unsigned int , char *, char *, char *, long , char *, int , long , char *, char *, C_Block
));
52 int decomp_ticket
P((KTEXT
, unsigned char *, char *, char *, char *, unsigned long *, C_Block
, int *, unsigned long *, char *, char *, C_Block
, Key_schedule
));
55 int dest_tkt
P((void ));
57 /* extract_ticket.c */
58 int extract_ticket
P((KTEXT
, int , char *, int *, int *, char *, KTEXT
));
61 int fgetst
P((FILE *, char *, int ));
64 int get_ad_tkt
P((char *, char *, char *, int ));
67 int krb_get_admhst
P((char *, char *, int ));
70 int krb_get_cred
P((char *, char *, char *, CREDENTIALS
*));
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 ));
78 int krb_get_krbhst
P((char *, char *, int ));
81 int krb_get_lrealm
P((char *, int ));
84 char *krb_get_phost
P((char *));
87 int get_pw_tkt
P((char *, char *, char *, char *));
90 int get_request
P((KTEXT
, int , char **, char **));
92 /* get_svc_in_tkt.c */
93 int krb_get_svc_in_tkt
P((char *, char *, char *, char *, char *, int , char *));
95 /* get_tf_fullname.c */
96 int krb_get_tf_fullname
P((char *, char *, char *, char *));
99 int krb_get_tf_realm
P((char *, char *));
102 int getopt
P((int , char **, char *));
105 char *krb_realmofhost
P((char *));
108 int getst
P((int , char *, int ));
111 int in_tkt
P((char *, char *));
113 /* k_gethostname.c */
114 int k_gethostname
P((char *, int ));
117 char *klog
P((int , char *, int , int , int , int , int , int , int , int , int , int ));
118 int kset_logfile
P((char *));
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 *));
127 int krb_kntoln
P((AUTH_DAT
*, char *));
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 *));
135 int kuserok
P((AUTH_DAT
*, char *));
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 *));
143 long krb_mk_err
P((u_char
*, long , char *));
146 long krb_mk_priv
P((u_char
*, u_char
*, u_long
, Key_schedule
, C_Block
, struct sockaddr_in
*, struct sockaddr_in
*));
149 int krb_mk_req
P((KTEXT
, char *, char *, char *, long ));
150 int krb_set_lifetime
P((int ));
153 long krb_mk_safe
P((u_char
*, u_char
*, u_long
, C_Block
*, struct sockaddr_in
*, struct sockaddr_in
*));
156 char *month_sname
P((int ));
159 int krb_net_read
P((int , char *, int ));
162 int krb_net_write
P((int , char *, int ));
167 KTEXT pkt_cipher
P((KTEXT
));
170 int pkt_clen
P((KTEXT
));
173 int krb_rd_err
P((u_char
*, u_long
, long *, MSG_DAT
*));
176 long krb_rd_priv
P((u_char
*, u_long
, Key_schedule
, C_Block
, struct sockaddr_in
*, struct sockaddr_in
*, MSG_DAT
*));
179 int krb_set_key
P((char *, int ));
180 int krb_rd_req
P((KTEXT
, char *, char *, long , AUTH_DAT
*, char *));
183 long krb_rd_safe
P((u_char
*, u_long
, C_Block
*, struct sockaddr_in
*, struct sockaddr_in
*, MSG_DAT
*));
185 /* read_service_key.c */
186 int read_service_key
P((char *, char *, char *, int , char *, char *));
189 int krb_recvauth
P((long , int , KTEXT
, char *, char *, struct sockaddr_in
*, struct sockaddr_in
*, AUTH_DAT
*, char *, Key_schedule
, char *));
191 /* save_credentials.c */
192 int save_credentials
P((char *, char *, char *, C_Block
, int , int , KTEXT
, long ));
195 int send_to_kdc
P((KTEXT
, KTEXT
, char *));
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 *));
202 int setenv
P((char *, char *, int ));
203 void unsetenv
P((char *));
204 char *getenv
P((char *));
205 char *_findenv
P((char *, int *));
208 char *stime
P((long *));
211 int krb_shm_create
P((char *));
212 int krb_is_diskless
P((void ));
213 int krb_shm_dest
P((char *));
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 ));
224 char *tkt_string
P((void ));
225 void krb_set_tkt_string
P((char *));
228 int ad_print
P((AUTH_DAT
*));
229 int placebo_cblock_print
P((des_cblock
));