1 #pragma ident	"%Z%%M%	%I%	%E% SMI"
2 /*
3  * lib/krb5/os/os-proto.h
4  *
5  * Copyright 1990,1991 by the Massachusetts Institute of Technology.
6  * All Rights Reserved.
7  *
8  * Export of this software from the United States of America may
9  *   require a specific license from the United States Government.
10  *   It is the responsibility of any person or organization contemplating
11  *   export to obtain such a license before exporting.
12  *
13  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
14  * distribute this software and its documentation for any purpose and
15  * without fee is hereby granted, provided that the above copyright
16  * notice appear in all copies and that both that copyright notice and
17  * this permission notice appear in supporting documentation, and that
18  * the name of M.I.T. not be used in advertising or publicity pertaining
19  * to distribution of the software without specific, written prior
20  * permission.  Furthermore if you modify this software you must label
21  * your software as modified software and not distribute it in such a
22  * fashion that it might be confused with the original M.I.T. software.
23  * M.I.T. makes no representations about the suitability of
24  * this software for any purpose.  It is provided "as is" without express
25  * or implied warranty.
26  *
27  *
28  * LIBOS internal function prototypes.
29  */
30 
31 #ifndef KRB5_LIBOS_INT_PROTO__
32 #define KRB5_LIBOS_INT_PROTO__
33 
34 struct addrlist;
35 krb5_error_code krb5_locate_kdc
36     (krb5_context, const krb5_data *, struct addrlist *, int, int, int);
37 
38 /* Solaris/SUNW14resync */
39 krb5_error_code krb5_get_servername
40 	(krb5_context,
41 	const krb5_data *,
42 	const char *, const char *,
43 	char *,
44 	unsigned short *);
45 
46 
47 #ifdef HAVE_NETINET_IN_H
48 krb5_error_code krb5_unpack_full_ipaddr
49 	      (krb5_context,
50 	       const krb5_address *,
51 	       krb5_int32 *,
52 	       krb5_int16 *);
53 
54 krb5_error_code krb5_make_full_ipaddr
55               (krb5_context,
56 	       krb5_int32,
57 	       int,			/* unsigned short promotes to signed
58 					   int */
59 	       krb5_address **);
60 
61 #endif /* HAVE_NETINET_IN_H */
62 
63 krb5_error_code krb5_try_realm_txt_rr(const char *, const char *,
64 				      char **realm);
65 
66 /* Obsolete interface - leave prototype here until code removed */
67 krb5_error_code krb5_secure_config_files(krb5_context ctx);
68 
69 int _krb5_use_dns_realm (krb5_context);
70 int _krb5_use_dns_kdc (krb5_context);
71 int _krb5_conf_boolean (const char *);
72 
73 #include "k5-thread.h"
74 extern k5_mutex_t krb5int_us_time_mutex;
75 
76 extern unsigned int krb5_max_skdc_timeout;
77 extern unsigned int krb5_skdc_timeout_shift;
78 extern unsigned int krb5_skdc_timeout_1;
79 extern unsigned int krb5_max_dgram_size;
80 
81 
82 #endif /* KRB5_LIBOS_INT_PROTO__ */
83