Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:18:33

0001 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
0002 /*
0003  * Copyright 1993 by OpenVision Technologies, Inc.
0004  *
0005  * Permission to use, copy, modify, distribute, and sell this software
0006  * and its documentation for any purpose is hereby granted without fee,
0007  * provided that the above copyright notice appears in all copies and
0008  * that both that copyright notice and this permission notice appear in
0009  * supporting documentation, and that the name of OpenVision not be used
0010  * in advertising or publicity pertaining to distribution of the software
0011  * without specific, written prior permission. OpenVision makes no
0012  * representations about the suitability of this software for any
0013  * purpose.  It is provided "as is" without express or implied warranty.
0014  *
0015  * OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
0016  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
0017  * EVENT SHALL OPENVISION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
0018  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
0019  * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
0020  * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
0021  * PERFORMANCE OF THIS SOFTWARE.
0022  */
0023 
0024 #ifndef _GSSAPI_GENERIC_H_
0025 #define _GSSAPI_GENERIC_H_
0026 
0027 /*
0028  * $Id$
0029  */
0030 
0031 #include <gssapi/gssapi.h>
0032 
0033 #if defined(__cplusplus) && !defined(GSSAPIGENERIC_BEGIN_DECLS)
0034 #define GSSAPIGENERIC_BEGIN_DECLS       extern "C" {
0035 #define GSSAPIGENERIC_END_DECLS }
0036 #else
0037 #define GSSAPIGENERIC_BEGIN_DECLS
0038 #define GSSAPIGENERIC_END_DECLS
0039 #endif
0040 
0041 #define GSS_EMPTY_BUFFER(buf)   ((buf) == NULL ||                       \
0042                                  (buf)->value == NULL || (buf)->length == 0)
0043 
0044 GSSAPIGENERIC_BEGIN_DECLS
0045 
0046 /* Deprecated MIT krb5 oid names provided for compatibility.
0047  * The correct oids (GSS_C_NT_USER_NAME, etc) from rfc 2744
0048  * are defined in gssapi.h. */
0049 
0050 GSS_DLLIMP extern gss_OID gss_nt_user_name;
0051 GSS_DLLIMP extern gss_OID gss_nt_machine_uid_name;
0052 GSS_DLLIMP extern gss_OID gss_nt_string_uid_name;
0053 extern gss_OID gss_nt_service_name_v2;
0054 GSS_DLLIMP extern gss_OID gss_nt_service_name;
0055 extern gss_OID gss_nt_exported_name;
0056 
0057 GSSAPIGENERIC_END_DECLS
0058 
0059 #endif /* _GSSAPI_GENERIC_H_ */