]> git.ipfire.org Git - thirdparty/squid.git/blob - tools/squidclient/gssapi_support.h
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / tools / squidclient / gssapi_support.h
1 /*
2 * Copyright (C) 1996-2018 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
9 #ifndef _SQUID_TOOLS_SQUIDCLIENT_GSSAPI_H
10 #define _SQUID_TOOLS_SQUIDCLIENT_GSSAPI_H
11
12 #if HAVE_GSSAPI
13 #if USE_APPLE_KRB5
14 #define GSSKRB_APPLE_DEPRECATED(x)
15 #endif
16
17 #if USE_HEIMDAL_KRB5
18 #if HAVE_GSSAPI_GSSAPI_H
19 #include <gssapi/gssapi.h>
20 #elif HAVE_GSSAPI_H
21 #include <gssapi.h>
22 #endif /* HAVE_GSSAPI_GSSAPI_H/HAVE_GSSAPI_H */
23 #elif USE_GNUGSS
24 #if HAVE_GSS_H
25 #include <gss.h>
26 #endif
27 #else
28 #if HAVE_GSSAPI_GSSAPI_H
29 #include <gssapi/gssapi.h>
30 #elif HAVE_GSSAPI_H
31 #include <gssapi.h>
32 #endif /* HAVE_GSSAPI_GSSAPI_H/HAVE_GSSAPI_H */
33 #if HAVE_GSSAPI_GSSAPI_KRB5_H
34 #include <gssapi/gssapi_krb5.h>
35 #endif
36 #if HAVE_GSSAPI_GSSAPI_GENERIC_H
37 #include <gssapi/gssapi_generic.h>
38 #endif
39 #if HAVE_GSSAPI_GSSAPI_EXT_H
40 #include <gssapi/gssapi_ext.h>
41 #endif
42 #endif
43
44 #ifndef gss_nt_service_name
45 #define gss_nt_service_name GSS_C_NT_HOSTBASED_SERVICE
46 #endif
47
48 bool check_gss_err(OM_uint32 major_status, OM_uint32 minor_status, const char *function);
49 char *GSSAPI_token(const char *server);
50
51 #endif /* HAVE_GSSAPI */
52 #endif /* _SQUID_TOOLS_SQUIDCLIENT_GSSAPI_H */
53