xref: /illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/include/gssapi_generic.h (revision 505d05c73a6e56769f263d4803b22eddd168ee24)
1 /*
2  * Copyright 2005 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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
32 
33 /*
34  * $Id: gssapi_generic.h,v 1.16 2003/03/06 20:26:35 lxs Exp $
35  */
36 
37 #include <gssapi/gssapi.h>
38 
39 #if defined(__cplusplus) && !defined(GSSAPIGENERIC_BEGIN_DECLS)
40 #define GSSAPIGENERIC_BEGIN_DECLS	extern "C" {
41 #define GSSAPIGENERIC_END_DECLS	}
42 #else
43 #define GSSAPIGENERIC_BEGIN_DECLS
44 #define GSSAPIGENERIC_END_DECLS
45 #endif
46 
47 GSSAPIGENERIC_BEGIN_DECLS
48 
49 /* SUNW14resync */
50 #ifndef GSS_DLLIMP
51 #define GSS_DLLIMP
52 #endif
53 
54 /* Deprecated MIT krb5 oid names provided for compatibility.
55  * The correct oids (GSS_C_NT_USER_NAME, etc) from rfc 2744
56  * are defined in gssapi.h. */
57 
58 GSS_DLLIMP extern gss_OID gss_nt_user_name;
59 GSS_DLLIMP extern gss_OID gss_nt_machine_uid_name;
60 GSS_DLLIMP extern gss_OID gss_nt_string_uid_name;
61 extern gss_OID gss_nt_service_name_v2;
62 GSS_DLLIMP extern gss_OID gss_nt_service_name;
63 extern gss_OID gss_nt_exported_name;
64 
65 GSSAPIGENERIC_END_DECLS
66 
67 #endif /* _GSSAPI_GENERIC_H_ */
68