Home | History | Annotate | Download | only in rdist
      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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
     31 
     32 #ifdef	__cplusplus
     33 extern "C" {
     34 #endif
     35 
     36 #include <libintl.h>
     37 #include <locale.h>
     38 #include <profile/prof_int.h>
     39 #include <com_err.h>
     40 #include <syslog.h>
     41 #include <krb5.h>
     42 #include <kcmd.h>
     43 
     44 #define	RDIST_BUFSIZ (50 * 1024)
     45 
     46 extern krb5_context bsd_context;
     47 extern krb5_auth_context auth_context;
     48 extern krb5_flags authopts;
     49 extern char *krb_cache;
     50 extern krb5_creds *cred;
     51 extern krb5_error_code status;
     52 extern char des_inbuf[2 * RDIST_BUFSIZ];  /* needs to be > largest read size */
     53 extern char des_outbuf[2 * RDIST_BUFSIZ]; /* needs to be > largest write size */
     54 extern krb5_data desinbuf, desoutbuf;
     55 extern krb5_encrypt_block eblock;	/* eblock for encrypt/decrypt */
     56 extern int encrypt_flag;	/* Flag set, when encryption is enabled */
     57 extern int krb5auth_flag;	/* Flag set, when KERBEROS is enabled */
     58 extern int debug_port;
     59 extern enum kcmd_proto kcmd_proto;
     60 extern int retval;
     61 extern char *krb_realm;
     62 
     63 static krb5_keyblock *session_key;
     64 
     65 #ifdef	__cplusplus
     66 }
     67 #endif
     68 
     69 #endif /* _KRB5DEFS_H */
     70