gssapiP_generic.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 1993 by OpenVision Technologies, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appears in all copies and
* that both that copyright notice and this permission notice appear in
* supporting documentation, and that the name of OpenVision not be used
* in advertising or publicity pertaining to distribution of the software
* without specific, written prior permission. OpenVision makes no
* representations about the suitability of this software for any
* purpose. It is provided "as is" without express or implied warranty.
*
* OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
* EVENT SHALL OPENVISION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
* USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _GSSAPIP_GENERIC_H_
#define _GSSAPIP_GENERIC_H_
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* $Id: gssapiP_generic.h,v 1.24 1998/10/30 02:54:06 marc Exp $
*/
#ifdef __cplusplus
extern "C" {
#endif
#if !defined(PROTOTYPE)
#define PROTOTYPE(x) x
#endif
#include <k5-int.h>
#else
#ifdef HAVE_STDLIB_H
#ifndef _KERNEL
#include <stdlib.h>
#endif /* !_KERNEL */
#endif /* HAVE_STDLIB_H */
#endif
#include <mechglueP.h>
#include <gssapi/gssapi_ext.h>
#include "gssapi_generic.h"
#include "gssapi_err_generic.h"
#ifdef _KERNEL
#else
#include <errno.h>
#endif
/** helper macros **/
typedef uint64_t gssint_uint64;
#endif
/* this code knows that an int on the wire is 32 bits. The type of
num should be at least this big, or the extra shifts may do weird
things */
(ptr) += 4;
(ptr) += 2;
(ptr) += 4;
(ptr) += 2;
/** malloc wrappers; these may actually do something later */
#ifdef _KERNEL
#else
#endif
#ifdef xfree
#endif
#ifdef _KERNEL
#else
#endif
/** helper functions **/
int g_set_init (g_set *s);
int g_set_destroy (g_set *s);
unsigned int toksize_in,
int wrapper_required);
void g_order_free (void **queue);
char *g_local_host_name (void);
#ifdef __cplusplus
}
#endif
#endif /* _GSSAPIP_GENERIC_H_ */