]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Moved peer_proxy_negotiate_auth prototype to new peer_proxy_negotiate_auth.hi
authorFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 31 Aug 2012 14:15:27 +0000 (16:15 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 31 Aug 2012 14:15:27 +0000 (16:15 +0200)
src/Makefile.am
src/http.cc
src/peer_proxy_negotiate_auth.cc
src/peer_proxy_negotiate_auth.h [new file with mode: 0644]
src/protos.h

index ee99ba0a3156ac1d7baf471e3c4aba23eaa8d882..6320bfa9947a2eb6a6184c89a1a48ec111461816 100644 (file)
@@ -430,6 +430,7 @@ squid_SOURCES = \
        pconn.h \
        PeerDigest.h \
        peer_digest.cc \
+       peer_proxy_negotiate_auth.h \
        peer_proxy_negotiate_auth.cc \
        peer_select.cc \
        peer_sourcehash.h \
@@ -1451,6 +1452,7 @@ tests_testCacheManager_SOURCES = \
        Parsing.cc \
        pconn.cc \
        peer_digest.cc \
+       peer_proxy_negotiate_auth.h \
        peer_proxy_negotiate_auth.cc \
        peer_select.cc \
        peer_sourcehash.h \
@@ -1841,6 +1843,7 @@ tests_testEvent_SOURCES = \
        Parsing.cc \
        pconn.cc \
        peer_digest.cc \
+       peer_proxy_negotiate_auth.h \
        peer_proxy_negotiate_auth.cc \
        peer_select.cc \
        peer_sourcehash.h \
@@ -2071,6 +2074,7 @@ tests_testEventLoop_SOURCES = \
        Parsing.cc \
        pconn.cc \
        peer_digest.cc \
+       peer_proxy_negotiate_auth.h \
        peer_proxy_negotiate_auth.cc \
        peer_select.cc \
        peer_sourcehash.h \
@@ -2297,6 +2301,7 @@ tests_test_http_range_SOURCES = \
        Packer.cc \
        Parsing.cc \
        peer_digest.cc \
+       peer_proxy_negotiate_auth.h \
        peer_proxy_negotiate_auth.cc \
        peer_select.cc \
        peer_sourcehash.h \
@@ -2567,6 +2572,7 @@ tests_testHttpRequest_SOURCES = \
        Parsing.cc \
        pconn.cc \
        peer_digest.cc \
+       peer_proxy_negotiate_auth.h \
        peer_proxy_negotiate_auth.cc \
        peer_select.cc \
        peer_sourcehash.h \
@@ -3614,6 +3620,7 @@ tests_testURL_SOURCES = \
        Parsing.cc \
        pconn.cc \
        peer_digest.cc \
+       peer_proxy_negotiate_auth.h \
        peer_proxy_negotiate_auth.cc \
        peer_select.cc \
        peer_sourcehash.h \
index a34be79e7f64d7b40e0baefa419c91f3205f0f8a..5de0168679445315928d749353e6ffc9e3eef0a0 100644 (file)
@@ -61,6 +61,7 @@
 #include "MemObject.h"
 #include "mime_header.h"
 #include "neighbors.h"
+#include "peer_proxy_negotiate_auth.h"
 #include "profiler/Profiler.h"
 #include "protos.h"
 #include "refresh.h"
index a5971b9d5a118e2b82742bb485aaa4623da261f6..1f926b4654080b9afcde0e1f76f367d39724900e 100644 (file)
  */
 
 #include "squid.h"
+
+#if HAVE_KRB5 && HAVE_GSSAPI
+
 #include "base64.h"
 #include "Debug.h"
+#include "peer_proxy_negotiate_auth.h"
 
-#if HAVE_KRB5 && HAVE_GSSAPI
 #ifdef __cplusplus
 extern "C" {
 #endif
diff --git a/src/peer_proxy_negotiate_auth.h b/src/peer_proxy_negotiate_auth.h
new file mode 100644 (file)
index 0000000..c4cf633
--- /dev/null
@@ -0,0 +1,41 @@
+#ifndef SQUID_PEER_PROXY_NEGOTIATE_AUTH_H_
+#define SQUID_PEER_PROXY_NEGOTIATE_AUTH_H_
+/*
+ * DEBUG: section 11    Hypertext Transfer Protocol (HTTP)
+ * AUTHOR: Markus Moeller (markus_moeller at compuserve.com)
+ *
+ * SQUID Web Proxy Cache          http://www.squid-cache.org/
+ * ----------------------------------------------------------
+ *
+ *  Squid is the result of efforts by numerous individuals from
+ *  the Internet community; see the CONTRIBUTORS file for full
+ *  details.   Many organizations have provided support for Squid's
+ *  development; see the SPONSORS file for full details.  Squid is
+ *  Copyrighted (C) 2001 by the Regents of the University of
+ *  California; see the COPYRIGHT file for full details.  Squid
+ *  incorporates software developed and/or copyrighted by other
+ *  sources; see the CREDITS file for full details.
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
+ *
+ */
+
+#if HAVE_AUTH_MODULE_NEGOTIATE && HAVE_KRB5 && HAVE_GSSAPI
+    /* upstream proxy authentication */
+extern char *peer_proxy_negotiate_auth(char *principal_name, char *proxy);
+#endif
+
+
+#endif /* SQUID_PEER_PROXY_NEGOTIATE_AUTH_H_ */
index ca349109814c037c59cc1c5f7d6a9bff0671eea5..c99fa1042f63641718c3e562c791a82a52d2b511 100644 (file)
@@ -97,10 +97,6 @@ extern void reconfigure(int);
 
 #if USE_AUTH
 
-#if HAVE_AUTH_MODULE_NEGOTIATE && HAVE_KRB5 && HAVE_GSSAPI
-    /* upstream proxy authentication */
-    SQUIDCEXTERN char *peer_proxy_negotiate_auth(char *principal_name, char *proxy);
-#endif
 
     namespace Auth {
     /* call to ensure the auth component schemes exist. */