Path: blob/main/crypto/krb5/src/lib/gssapi/generic/gssapi_generic.h
39563 views
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */1/*2* Copyright 1993 by OpenVision Technologies, Inc.3*4* Permission to use, copy, modify, distribute, and sell this software5* and its documentation for any purpose is hereby granted without fee,6* provided that the above copyright notice appears in all copies and7* that both that copyright notice and this permission notice appear in8* supporting documentation, and that the name of OpenVision not be used9* in advertising or publicity pertaining to distribution of the software10* without specific, written prior permission. OpenVision makes no11* representations about the suitability of this software for any12* purpose. It is provided "as is" without express or implied warranty.13*14* OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,15* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO16* EVENT SHALL OPENVISION BE LIABLE FOR ANY SPECIAL, INDIRECT OR17* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF18* USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR19* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR20* PERFORMANCE OF THIS SOFTWARE.21*/2223#ifndef _GSSAPI_GENERIC_H_24#define _GSSAPI_GENERIC_H_2526/*27* $Id$28*/2930#include <gssapi/gssapi.h>3132#if defined(__cplusplus) && !defined(GSSAPIGENERIC_BEGIN_DECLS)33#define GSSAPIGENERIC_BEGIN_DECLS extern "C" {34#define GSSAPIGENERIC_END_DECLS }35#else36#define GSSAPIGENERIC_BEGIN_DECLS37#define GSSAPIGENERIC_END_DECLS38#endif3940#define GSS_EMPTY_BUFFER(buf) ((buf) == NULL || \41(buf)->value == NULL || (buf)->length == 0)4243GSSAPIGENERIC_BEGIN_DECLS4445/* Deprecated MIT krb5 oid names provided for compatibility.46* The correct oids (GSS_C_NT_USER_NAME, etc) from rfc 274447* are defined in gssapi.h. */4849GSS_DLLIMP extern gss_OID gss_nt_user_name;50GSS_DLLIMP extern gss_OID gss_nt_machine_uid_name;51GSS_DLLIMP extern gss_OID gss_nt_string_uid_name;52extern gss_OID gss_nt_service_name_v2;53GSS_DLLIMP extern gss_OID gss_nt_service_name;54extern gss_OID gss_nt_exported_name;5556GSSAPIGENERIC_END_DECLS5758#endif /* _GSSAPI_GENERIC_H_ */596061