]>
Commit | Line | Data |
---|---|---|
5f623035 AJ |
1 | /* |
2 | * Copyright (C) 1996-2014 The Squid Software Foundation and contributors | |
3 | * | |
4 | * Squid software is distributed under GPLv2+ license and includes | |
5 | * contributions from numerous individuals and organizations. | |
6 | * Please see the COPYING and CONTRIBUTORS files for details. | |
7 | */ | |
8 | ||
b2050d4d AJ |
9 | #ifndef _SQUID_TOOLS_SQUIDCLIENT_GSSAPI_H |
10 | #define _SQUID_TOOLS_SQUIDCLIENT_GSSAPI_H | |
11 | ||
12 | #if HAVE_GSSAPI | |
13 | ||
1a22a39e MM |
14 | #if USE_HEIMDAL_KRB5 |
15 | #if HAVE_GSSAPI_GSSAPI_H | |
16 | #include <gssapi/gssapi.h> | |
17 | #elif HAVE_GSSAPI_H | |
18 | #include <gssapi.h> | |
19 | #endif /* HAVE_GSSAPI_GSSAPI_H/HAVE_GSSAPI_H */ | |
20 | #elif USE_GNUGSS | |
21 | #if HAVE_GSS_H | |
22 | #include <gss.h> | |
23 | #endif | |
24 | #else | |
b2050d4d AJ |
25 | #if HAVE_GSSAPI_GSSAPI_H |
26 | #include <gssapi/gssapi.h> | |
27 | #elif HAVE_GSSAPI_H | |
28 | #include <gssapi.h> | |
29 | #endif /* HAVE_GSSAPI_GSSAPI_H/HAVE_GSSAPI_H */ | |
b2050d4d AJ |
30 | #if HAVE_GSSAPI_GSSAPI_KRB5_H |
31 | #include <gssapi/gssapi_krb5.h> | |
32 | #endif | |
33 | #if HAVE_GSSAPI_GSSAPI_GENERIC_H | |
34 | #include <gssapi/gssapi_generic.h> | |
35 | #endif | |
36 | #if HAVE_GSSAPI_GSSAPI_EXT_H | |
37 | #include <gssapi/gssapi_ext.h> | |
38 | #endif | |
39 | #endif | |
40 | ||
41 | #ifndef gss_nt_service_name | |
42 | #define gss_nt_service_name GSS_C_NT_HOSTBASED_SERVICE | |
43 | #endif | |
44 | ||
45 | bool check_gss_err(OM_uint32 major_status, OM_uint32 minor_status, const char *function); | |
46 | char *GSSAPI_token(const char *server); | |
47 | ||
48 | #endif /* HAVE_GSSAPI */ | |
49 | #endif /* _SQUID_TOOLS_SQUIDCLIENT_GSSAPI_H */ |