web
Last change
on this file since f6f3e91 was
f6f3e91,
checked in by Jessica B. Hamrick <jhamrick@…>, 15 years ago
|
Preserve directory hierarchy (not sure what happened to it)
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /* |
---|
2 | * Portability wrapper around <gssapi.h>. |
---|
3 | * |
---|
4 | * This header tries to encapsulate the differences between the MIT and |
---|
5 | * Heimdal GSS-API implementations and the differences between various |
---|
6 | * versions. |
---|
7 | */ |
---|
8 | |
---|
9 | #ifndef PORTABLE_GSSAPI_H |
---|
10 | #define PORTABLE_GSSAPI_H 1 |
---|
11 | |
---|
12 | #include <config.h> |
---|
13 | |
---|
14 | #ifdef HAVE_GSSAPI_H |
---|
15 | # include <gssapi.h> |
---|
16 | #else |
---|
17 | # include <gssapi/gssapi.h> |
---|
18 | #endif |
---|
19 | |
---|
20 | /* Handle compatibility to older versions of MIT Kerberos. */ |
---|
21 | #ifndef HAVE_GSS_RFC_OIDS |
---|
22 | # include <gssapi/gssapi_generic.h> |
---|
23 | # define GSS_C_NT_USER_NAME gss_nt_user_name |
---|
24 | # define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name |
---|
25 | #endif |
---|
26 | |
---|
27 | /* |
---|
28 | * Heimdal provides a nice #define for this. Sun, on the other hand, |
---|
29 | * provides no standard define at all, so configure has to add gssapi-mech.c |
---|
30 | * to the build and we declare the external symbol that will point to a |
---|
31 | * hard-coded GSS-API OID struct. |
---|
32 | */ |
---|
33 | #if !HAVE_DECL_GSS_KRB5_MECHANISM |
---|
34 | # if HAVE_DECL_GSS_MECH_KRB5 |
---|
35 | # include <gssapi/gssapi_krb5.h> |
---|
36 | # else |
---|
37 | extern const gss_OID_desc * const gss_mech_krb5; |
---|
38 | # endif |
---|
39 | # define GSS_KRB5_MECHANISM gss_mech_krb5 |
---|
40 | #endif |
---|
41 | |
---|
42 | #endif /* PORTABLE_GSSAPI_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.