]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Moved sslproxy cert types to own header in ssl/
authorFrancesco Chemolli <kinkie@squid-cache.org>
Sun, 23 Sep 2012 10:30:46 +0000 (12:30 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Sun, 23 Sep 2012 10:30:46 +0000 (12:30 +0200)
Added missing include in acl/FilledChecklist.h

src/SquidConfig.h
src/acl/FilledChecklist.h
src/cache_cf.cc
src/client_side.cc
src/ssl/Makefile.am
src/ssl/ProxyCerts.h [new file with mode: 0644]
src/structs.h
src/typedefs.h

index 131eb25c21568facdf8af2a6fe6cc5cc2e749234..bd3e9fbce8e9f81cd0f7ebf319e6272e7df7ca88 100644 (file)
@@ -41,6 +41,8 @@
 
 #if USE_SSL
 #include <openssl/ssl.h>
+class sslproxy_cert_sign;
+class sslproxy_cert_adapt;
 #endif
 
 class acl_access;
index 81e5c9d790a4392ce8120d3b9d3ec7d4699aff2b..d2697883de828ba05eec782fd76581f02a9777cb 100644 (file)
@@ -2,6 +2,7 @@
 #define SQUID_ACLFILLED_CHECKLIST_H
 
 #include "acl/Checklist.h"
+#include "ip/Address.h"
 #if USE_AUTH
 #include "auth/UserRequest.h"
 #endif
index 608541d16e55479c5d97a8b76f8b7d2eb8a418c7..3c4ee2c9d435a5ff2ec5ac4997ad89522bbb48dd 100644 (file)
@@ -70,6 +70,7 @@
 #include "rfc1738.h"
 #include "SquidConfig.h"
 #include "SquidString.h"
+#include "ssl/ProxyCerts.h"
 #include "Store.h"
 #include "StoreFileSystem.h"
 #include "structs.h"
index e0a280230aee993b924880550f80e008eb740aa2..624d78c5dfbe23c97550d66b0f3ca9d415215fc1 100644 (file)
 #include "ClientInfo.h"
 #endif
 #if USE_SSL
+#include "ssl/ProxyCerts.h"
 #include "ssl/context_storage.h"
 #include "ssl/helper.h"
 #include "ssl/ServerBump.h"
index 1b47a484c98bd024c1d893c4f9582c562c5a0f9e..18b7a34b97bdb0e31618eb08af929bbe85d7e5fb 100644 (file)
@@ -29,6 +29,7 @@ libsslsquid_la_SOURCES = \
        ErrorDetail.h \
        ErrorDetailManager.cc \
        ErrorDetailManager.h \
+       ProxyCerts.h \
        ServerBump.cc \
        ServerBump.h \
        support.cc \
diff --git a/src/ssl/ProxyCerts.h b/src/ssl/ProxyCerts.h
new file mode 100644 (file)
index 0000000..22b4eda
--- /dev/null
@@ -0,0 +1,51 @@
+#ifndef SQUID_SSLPROXYCERTS_H_
+#define SQUID_SSLPROXYCERTS_H_
+/*
+ * 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 USE_SSL
+class ACLList;
+
+class sslproxy_cert_sign {
+public:
+    int alg;
+    ACLList *aclList;
+    sslproxy_cert_sign *next;
+};
+
+class sslproxy_cert_adapt {
+public:
+    int alg;
+    char *param;
+    ACLList *aclList;
+    sslproxy_cert_adapt *next;
+};
+#endif
+
+#endif /* SQUID_SSLPROXYCERTS_H_ */
index 3f4276bf1b85030578f35f83d769fd7c282e9c68..7b3011e45a32834423bceddfdca771a4af7b4311 100644 (file)
@@ -85,19 +85,4 @@ struct _fde_disk {
     off_t offset;
 };
 
-#if USE_SSL
-struct _sslproxy_cert_sign {
-    int alg;
-    ACLList *aclList;
-    sslproxy_cert_sign *next;
-};
-
-struct _sslproxy_cert_adapt {
-    int alg;
-    char *param;
-    ACLList *aclList;
-    sslproxy_cert_adapt *next;
-};
-#endif
-
 #endif /* SQUID_STRUCTS_H */
index 03329961efd4d8830d0deb84710dab6b72ba0f0d..488671adbc55d8c5865337c259c9f9c7e5ceddcb 100644 (file)
@@ -47,12 +47,6 @@ typedef struct {
 
 typedef struct _CommWriteStateData CommWriteStateData;
 
-#if USE_SSL
-typedef struct _sslproxy_cert_sign sslproxy_cert_sign;
-
-typedef struct _sslproxy_cert_adapt sslproxy_cert_adapt;
-#endif
-
 #if SQUID_SNMP
 #include "snmp_vars.h"
 #include "cache_snmp.h"