xref: /illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/include/gssapi_generic.h (revision 55fea89dcaa64928bed4327112404dcb3e07b79f)
1 /*
2  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 /*
7  * Copyright 1993 by OpenVision Technologies, Inc.
8  *
9  * Permission to use, copy, modify, distribute, and sell this software
10  * and its documentation for any purpose is hereby granted without fee,
11  * provided that the above copyright notice appears in all copies and
12  * that both that copyright notice and this permission notice appear in
13  * supporting documentation, and that the name of OpenVision not be used
14  * in advertising or publicity pertaining to distribution of the software
15  * without specific, written prior permission. OpenVision makes no
16  * representations about the suitability of this software for any
17  * purpose.  It is provided "as is" without express or implied warranty.
18  *
19  * OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
20  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
21  * EVENT SHALL OPENVISION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
22  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
23  * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
24  * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
25  * PERFORMANCE OF THIS SOFTWARE.
26  */
27 
28 #ifndef _GSSAPI_GENERIC_H_
29 #define _GSSAPI_GENERIC_H_
30 
31 /*
32  * $Id: gssapi_generic.h 15252 2003-03-06 20:26:39Z lxs $
33  */
34 
35 #include <gssapi/gssapi.h>
36 
37 #if defined(__cplusplus) && !defined(GSSAPIGENERIC_BEGIN_DECLS)
38 #define GSSAPIGENERIC_BEGIN_DECLS	extern "C" {
39 #define GSSAPIGENERIC_END_DECLS	}
40 #else
41 #define GSSAPIGENERIC_BEGIN_DECLS
42 #define GSSAPIGENERIC_END_DECLS
43 #endif
44 
45 GSSAPIGENERIC_BEGIN_DECLS
46 
47 /* SUNW14resync */
48 #ifndef GSS_DLLIMP
49 #define GSS_DLLIMP
50 #endif
51 
52 /* Deprecated MIT krb5 oid names provided for compatibility.
53  * The correct oids (GSS_C_NT_USER_NAME, etc) from rfc 2744
54  * are defined in gssapi.h. */
55 
56 GSS_DLLIMP extern gss_OID gss_nt_user_name;
57 GSS_DLLIMP extern gss_OID gss_nt_machine_uid_name;
58 GSS_DLLIMP extern gss_OID gss_nt_string_uid_name;
59 extern gss_OID gss_nt_service_name_v2;
60 GSS_DLLIMP extern gss_OID gss_nt_service_name;
61 extern gss_OID gss_nt_exported_name;
62 
63 GSSAPIGENERIC_END_DECLS
64 
65 #endif /* _GSSAPI_GENERIC_H_ */
66