xref: /illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/krb5defs.h (revision 6dde88b51419b99fe0aab8e56184c693945826b8)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2002-2003 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_KRB5DEFS_H
28 #define	_KRB5DEFS_H
29 
30 #ifdef	__cplusplus
31 extern "C" {
32 #endif
33 
34 #include <libintl.h>
35 #include <locale.h>
36 #include <profile/prof_int.h>
37 #include <com_err.h>
38 #include <syslog.h>
39 #include <krb5.h>
40 #include <kcmd.h>
41 
42 #define	RDIST_BUFSIZ (50 * 1024)
43 
44 extern krb5_context bsd_context;
45 extern krb5_auth_context auth_context;
46 extern krb5_flags authopts;
47 extern char *krb_cache;
48 extern krb5_creds *cred;
49 extern krb5_error_code status;
50 extern char des_inbuf[2 * RDIST_BUFSIZ];  /* needs to be > largest read size */
51 extern char des_outbuf[2 * RDIST_BUFSIZ]; /* needs to be > largest write size */
52 extern krb5_data desinbuf, desoutbuf;
53 extern krb5_encrypt_block eblock;	/* eblock for encrypt/decrypt */
54 extern int encrypt_flag;	/* Flag set, when encryption is enabled */
55 extern int krb5auth_flag;	/* Flag set, when KERBEROS is enabled */
56 extern int debug_port;
57 extern enum kcmd_proto kcmd_proto;
58 extern int retval;
59 extern char *krb_realm;
60 
61 static krb5_keyblock *session_key;
62 
63 #ifdef	__cplusplus
64 }
65 #endif
66 
67 #endif /* _KRB5DEFS_H */
68