xref: /onnv-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/os-proto.h (revision 7934:6aeeafc994de)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * lib/krb5/os/os-proto.h
30Sstevel@tonic-gate  *
40Sstevel@tonic-gate  * Copyright 1990,1991 by the Massachusetts Institute of Technology.
50Sstevel@tonic-gate  * All Rights Reserved.
60Sstevel@tonic-gate  *
70Sstevel@tonic-gate  * Export of this software from the United States of America may
80Sstevel@tonic-gate  *   require a specific license from the United States Government.
90Sstevel@tonic-gate  *   It is the responsibility of any person or organization contemplating
100Sstevel@tonic-gate  *   export to obtain such a license before exporting.
110Sstevel@tonic-gate  *
120Sstevel@tonic-gate  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
130Sstevel@tonic-gate  * distribute this software and its documentation for any purpose and
140Sstevel@tonic-gate  * without fee is hereby granted, provided that the above copyright
150Sstevel@tonic-gate  * notice appear in all copies and that both that copyright notice and
160Sstevel@tonic-gate  * this permission notice appear in supporting documentation, and that
170Sstevel@tonic-gate  * the name of M.I.T. not be used in advertising or publicity pertaining
180Sstevel@tonic-gate  * to distribution of the software without specific, written prior
190Sstevel@tonic-gate  * permission.  Furthermore if you modify this software you must label
200Sstevel@tonic-gate  * your software as modified software and not distribute it in such a
210Sstevel@tonic-gate  * fashion that it might be confused with the original M.I.T. software.
220Sstevel@tonic-gate  * M.I.T. makes no representations about the suitability of
230Sstevel@tonic-gate  * this software for any purpose.  It is provided "as is" without express
240Sstevel@tonic-gate  * or implied warranty.
250Sstevel@tonic-gate  *
260Sstevel@tonic-gate  *
270Sstevel@tonic-gate  * LIBOS internal function prototypes.
280Sstevel@tonic-gate  */
290Sstevel@tonic-gate 
300Sstevel@tonic-gate #ifndef KRB5_LIBOS_INT_PROTO__
310Sstevel@tonic-gate #define KRB5_LIBOS_INT_PROTO__
320Sstevel@tonic-gate 
33781Sgtb struct addrlist;
340Sstevel@tonic-gate krb5_error_code krb5_locate_kdc
35781Sgtb     (krb5_context, const krb5_data *, struct addrlist *, int, int, int);
360Sstevel@tonic-gate 
37*7934SMark.Phalan@Sun.COM /* Solaris Kerberos */
38781Sgtb krb5_error_code krb5_get_servername
39781Sgtb 	(krb5_context,
40781Sgtb 	const krb5_data *,
41781Sgtb 	const char *, const char *,
42781Sgtb 	char *,
43781Sgtb 	unsigned short *);
44781Sgtb 
450Sstevel@tonic-gate 
460Sstevel@tonic-gate #ifdef HAVE_NETINET_IN_H
470Sstevel@tonic-gate krb5_error_code krb5_unpack_full_ipaddr
48781Sgtb 	      (krb5_context,
490Sstevel@tonic-gate 	       const krb5_address *,
500Sstevel@tonic-gate 	       krb5_int32 *,
51781Sgtb 	       krb5_int16 *);
520Sstevel@tonic-gate 
530Sstevel@tonic-gate krb5_error_code krb5_make_full_ipaddr
54781Sgtb               (krb5_context,
550Sstevel@tonic-gate 	       krb5_int32,
560Sstevel@tonic-gate 	       int,			/* unsigned short promotes to signed
570Sstevel@tonic-gate 					   int */
58781Sgtb 	       krb5_address **);
590Sstevel@tonic-gate 
600Sstevel@tonic-gate #endif /* HAVE_NETINET_IN_H */
610Sstevel@tonic-gate 
620Sstevel@tonic-gate krb5_error_code krb5_try_realm_txt_rr(const char *, const char *,
630Sstevel@tonic-gate 				      char **realm);
640Sstevel@tonic-gate 
65781Sgtb /* Obsolete interface - leave prototype here until code removed */
66781Sgtb krb5_error_code krb5_secure_config_files(krb5_context ctx);
67781Sgtb 
68*7934SMark.Phalan@Sun.COM void krb5int_debug_fprint (const char *fmt, ...);
69*7934SMark.Phalan@Sun.COM 
70781Sgtb int _krb5_use_dns_realm (krb5_context);
71781Sgtb int _krb5_use_dns_kdc (krb5_context);
72781Sgtb int _krb5_conf_boolean (const char *);
73781Sgtb 
74781Sgtb #include "k5-thread.h"
75781Sgtb extern k5_mutex_t krb5int_us_time_mutex;
76781Sgtb 
77781Sgtb extern unsigned int krb5_max_skdc_timeout;
78781Sgtb extern unsigned int krb5_skdc_timeout_shift;
79781Sgtb extern unsigned int krb5_skdc_timeout_1;
800Sstevel@tonic-gate extern unsigned int krb5_max_dgram_size;
810Sstevel@tonic-gate 
82781Sgtb 
830Sstevel@tonic-gate #endif /* KRB5_LIBOS_INT_PROTO__ */
84