From b331e76dcf7b4fe58ba3821308f477297d73abd6 Mon Sep 17 00:00:00 2001 From: Francesco Chemolli Date: Sat, 1 Sep 2012 10:17:17 +0200 Subject: [PATCH] reverted kerberos-related functrions to C linkage --- src/peer_proxy_negotiate_auth.cc | 7 +++++++ src/peer_proxy_negotiate_auth.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/peer_proxy_negotiate_auth.cc b/src/peer_proxy_negotiate_auth.cc index 7988fb9bc1..1f926b4654 100644 --- a/src/peer_proxy_negotiate_auth.cc +++ b/src/peer_proxy_negotiate_auth.cc @@ -33,6 +33,10 @@ #include "Debug.h" #include "peer_proxy_negotiate_auth.h" +#ifdef __cplusplus +extern "C" { +#endif + #if HAVE_PROFILE_H #include #endif /* HAVE_PROFILE_H */ @@ -543,4 +547,7 @@ cleanup: return token; } +#ifdef __cplusplus +} +#endif #endif /* HAVE_KRB5 && HAVE_GSSAPI */ diff --git a/src/peer_proxy_negotiate_auth.h b/src/peer_proxy_negotiate_auth.h index c4cf633322..36c3a792cb 100644 --- a/src/peer_proxy_negotiate_auth.h +++ b/src/peer_proxy_negotiate_auth.h @@ -34,7 +34,7 @@ #if HAVE_AUTH_MODULE_NEGOTIATE && HAVE_KRB5 && HAVE_GSSAPI /* upstream proxy authentication */ -extern char *peer_proxy_negotiate_auth(char *principal_name, char *proxy); +SQUIDCEXTERN char *peer_proxy_negotiate_auth(char *principal_name, char *proxy); #endif -- 2.47.3