Blame src/lib/gssapi/generic/gssapi_generic.h

Packit fd8b60
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
Packit fd8b60
/*
Packit fd8b60
 * Copyright 1993 by OpenVision Technologies, Inc.
Packit fd8b60
 *
Packit fd8b60
 * Permission to use, copy, modify, distribute, and sell this software
Packit fd8b60
 * and its documentation for any purpose is hereby granted without fee,
Packit fd8b60
 * provided that the above copyright notice appears in all copies and
Packit fd8b60
 * that both that copyright notice and this permission notice appear in
Packit fd8b60
 * supporting documentation, and that the name of OpenVision not be used
Packit fd8b60
 * in advertising or publicity pertaining to distribution of the software
Packit fd8b60
 * without specific, written prior permission. OpenVision makes no
Packit fd8b60
 * representations about the suitability of this software for any
Packit fd8b60
 * purpose.  It is provided "as is" without express or implied warranty.
Packit fd8b60
 *
Packit fd8b60
 * OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit fd8b60
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit fd8b60
 * EVENT SHALL OPENVISION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit fd8b60
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
Packit fd8b60
 * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
Packit fd8b60
 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
Packit fd8b60
 * PERFORMANCE OF THIS SOFTWARE.
Packit fd8b60
 */
Packit fd8b60
Packit fd8b60
#ifndef _GSSAPI_GENERIC_H_
Packit fd8b60
#define _GSSAPI_GENERIC_H_
Packit fd8b60
Packit fd8b60
/*
Packit fd8b60
 * $Id$
Packit fd8b60
 */
Packit fd8b60
Packit fd8b60
#include <gssapi/gssapi.h>
Packit fd8b60
Packit fd8b60
#if defined(__cplusplus) && !defined(GSSAPIGENERIC_BEGIN_DECLS)
Packit fd8b60
#define GSSAPIGENERIC_BEGIN_DECLS       extern "C" {
Packit fd8b60
#define GSSAPIGENERIC_END_DECLS }
Packit fd8b60
#else
Packit fd8b60
#define GSSAPIGENERIC_BEGIN_DECLS
Packit fd8b60
#define GSSAPIGENERIC_END_DECLS
Packit fd8b60
#endif
Packit fd8b60
Packit fd8b60
#define GSS_EMPTY_BUFFER(buf)   ((buf) == NULL ||                       \
Packit fd8b60
                                 (buf)->value == NULL || (buf)->length == 0)
Packit fd8b60
Packit fd8b60
GSSAPIGENERIC_BEGIN_DECLS
Packit fd8b60
Packit fd8b60
/* Deprecated MIT krb5 oid names provided for compatibility.
Packit fd8b60
 * The correct oids (GSS_C_NT_USER_NAME, etc) from rfc 2744
Packit fd8b60
 * are defined in gssapi.h. */
Packit fd8b60
Packit fd8b60
GSS_DLLIMP extern gss_OID gss_nt_user_name;
Packit fd8b60
GSS_DLLIMP extern gss_OID gss_nt_machine_uid_name;
Packit fd8b60
GSS_DLLIMP extern gss_OID gss_nt_string_uid_name;
Packit fd8b60
extern gss_OID gss_nt_service_name_v2;
Packit fd8b60
GSS_DLLIMP extern gss_OID gss_nt_service_name;
Packit fd8b60
extern gss_OID gss_nt_exported_name;
Packit fd8b60
Packit fd8b60
GSSAPIGENERIC_END_DECLS
Packit fd8b60
Packit fd8b60
#endif /* _GSSAPI_GENERIC_H_ */