2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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
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
22 * @APPLE_LICENSE_HEADER_END@
31 int add_ticket
P((KTEXT
, int , char *, int , char *, char *, char *, int , KTEXT
));
34 void cr_err_reply
P((KTEXT
, char *, char *, char *, u_long
, u_long
, char *));
36 /* create_auth_reply.c */
37 KTEXT create_auth_reply
P((char *, char *, char *, long , int , unsigned long , int , KTEXT
));
40 int create_ciph
P((KTEXT
, C_Block
, char *, char *, char *, unsigned long , int , KTEXT
, unsigned long , C_Block
));
42 /* create_death_packet.c */
43 KTEXT krb_create_death_packet
P((char *));
46 int krb_create_ticket
P((KTEXT
, unsigned int , char *, char *, char *, long , char *, int , long , char *, char *, C_Block
));
51 int decomp_ticket
P((KTEXT
, unsigned char *, char *, char *, char *, unsigned long *, C_Block
, int *, unsigned long *, char *, char *, C_Block
, Key_schedule
));
54 int dest_tkt
P((void ));
56 /* extract_ticket.c */
57 int extract_ticket
P((KTEXT
, int , char *, int *, int *, char *, KTEXT
));
60 int fgetst
P((FILE *, char *, int ));
63 int get_ad_tkt
P((char *, char *, char *, int ));
66 int krb_get_admhst
P((char *, char *, int ));
69 int krb_get_cred
P((char *, char *, char *, CREDENTIALS
*));
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 ));
77 int krb_get_krbhst
P((char *, char *, int ));
80 int krb_get_lrealm
P((char *, int ));
83 char *krb_get_phost
P((char *));
86 int get_pw_tkt
P((char *, char *, char *, char *));
89 int get_request
P((KTEXT
, int , char **, char **));
91 /* get_svc_in_tkt.c */
92 int krb_get_svc_in_tkt
P((char *, char *, char *, char *, char *, int , char *));
94 /* get_tf_fullname.c */
95 int krb_get_tf_fullname
P((char *, char *, char *, char *));
98 int krb_get_tf_realm
P((char *, char *));
101 int getopt
P((int , char **, char *));
104 char *krb_realmofhost
P((char *));
107 int getst
P((int , char *, int ));
110 int in_tkt
P((char *, char *));
112 /* k_gethostname.c */
113 int k_gethostname
P((char *, int ));
116 char *klog
P((int , char *, int , int , int , int , int , int , int , int , int , int ));
117 int kset_logfile
P((char *));
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 *));
126 int krb_kntoln
P((AUTH_DAT
*, char *));
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 *));
134 int kuserok
P((AUTH_DAT
*, char *));
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 *));
142 long krb_mk_err
P((u_char
*, long , char *));
145 long krb_mk_priv
P((u_char
*, u_char
*, u_long
, Key_schedule
, C_Block
, struct sockaddr_in
*, struct sockaddr_in
*));
148 int krb_mk_req
P((KTEXT
, char *, char *, char *, long ));
149 int krb_set_lifetime
P((int ));
152 long krb_mk_safe
P((u_char
*, u_char
*, u_long
, C_Block
*, struct sockaddr_in
*, struct sockaddr_in
*));
155 char *month_sname
P((int ));
158 int krb_net_read
P((int , char *, int ));
161 int krb_net_write
P((int , char *, int ));
166 KTEXT pkt_cipher
P((KTEXT
));
169 int pkt_clen
P((KTEXT
));
172 int krb_rd_err
P((u_char
*, u_long
, long *, MSG_DAT
*));
175 long krb_rd_priv
P((u_char
*, u_long
, Key_schedule
, C_Block
, struct sockaddr_in
*, struct sockaddr_in
*, MSG_DAT
*));
178 int krb_set_key
P((char *, int ));
179 int krb_rd_req
P((KTEXT
, char *, char *, long , AUTH_DAT
*, char *));
182 long krb_rd_safe
P((u_char
*, u_long
, C_Block
*, struct sockaddr_in
*, struct sockaddr_in
*, MSG_DAT
*));
184 /* read_service_key.c */
185 int read_service_key
P((char *, char *, char *, int , char *, char *));
188 int krb_recvauth
P((long , int , KTEXT
, char *, char *, struct sockaddr_in
*, struct sockaddr_in
*, AUTH_DAT
*, char *, Key_schedule
, char *));
190 /* save_credentials.c */
191 int save_credentials
P((char *, char *, char *, C_Block
, int , int , KTEXT
, long ));
194 int send_to_kdc
P((KTEXT
, KTEXT
, char *));
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 *));
201 int setenv
P((char *, char *, int ));
202 void unsetenv
P((char *));
203 char *getenv
P((char *));
204 char *_findenv
P((char *, int *));
207 char *stime
P((long *));
210 int krb_shm_create
P((char *));
211 int krb_is_diskless
P((void ));
212 int krb_shm_dest
P((char *));
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 ));
223 char *tkt_string
P((void ));
224 void krb_set_tkt_string
P((char *));
227 int ad_print
P((AUTH_DAT
*));
228 int placebo_cblock_print
P((des_cblock
));