rpcsec_defs.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1996,1997-1998 by Sun Microsystems, Inc.
* All rights reserved.
*/
#ifndef _RPCSEC_DEFS_H
#define _RPCSEC_DEFS_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved.
*
* $Id: auth_gssapi.h,v 1.11 1994/10/27 12:39:14 jik Exp $
*/
#ifndef _KERNEL
#include <libintl.h>
#include <locale.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _KERNEL
#if defined(DEBUG) && !defined(RPCGSS_DEBUG)
#define RPCGSS_DEBUG
#endif
#ifdef RPCGSS_DEBUG
extern uint_t rpcgss_log;
#define RPCGSS_LOG1(A, B, C, D) \
(C), (D)), TRUE)))
#define RPCGSS_LOG(A, B, C) \
#define RPCGSS_LOG0(A, B) \
#else
#define RPCGSS_LOG1(A, B, C, D)
#define RPCGSS_LOG(A, B, C)
#define RPCGSS_LOG0(A, B)
#endif
#else /* _KERNEL */
extern bool_t locale_set;
#if !defined(TEXT_DOMAIN)
#define TEXT_DOMAIN "SUNW_OST_OSCMD"
#endif
#endif /* _KERNEL */
typedef struct _rpc_gss_creds {
typedef gss_buffer_desc rpc_gss_init_arg;
typedef struct _rpc_gss_init_res {
/*
* Convenience macros.
*/
#define MAX_GSS_NAME 128
/*
* Private interfaces for user and kernel space.
*/
#ifdef _KERNEL
/*
* kernel-level RPCSEC_GSS definitions.
*/
char *function_name);
#else
/*
* user-level RPCSEC_GSS definitions.
*/
#define MAX_MECH_OID_PAIRS 32
typedef struct _rpc_gss_name {
char *name;
} rpc_gss_name;
#ifdef _REENTRANT
extern rpc_gss_error_t *__rpc_gss_err();
#define rpc_gss_err (*(__rpc_gss_err()))
#else
extern rpc_gss_error_t rpc_gss_err;
#endif /* _REENTRANT */
/*
* Private interfaces in user space.
*/
char *__rpc_gss_num_to_qop();
char *__rpc_gss_oid_to_mech();
char *__rpc_gss_num_to_svc();
void __rpc_gss_xdrdynamic_create();
void __rpc_gss_bind_error();
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _RPCSEC_DEFS_H */