]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/acl/SslErrorData.h
Source Format Enforcement (#763)
[thirdparty/squid.git] / src / acl / SslErrorData.h
index 1f21a7ceae0fe94b48d1f94b0ff162ecf45b72d1..f7534f9846f2504e534b729ed41e7183fed46fe3 100644 (file)
@@ -1,35 +1,35 @@
-
 /*
- * $Id$
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
  */
 
 #ifndef SQUID_ACLSSL_ERRORDATA_H
 #define SQUID_ACLSSL_ERRORDATA_H
+
 #include "acl/Acl.h"
 #include "acl/Data.h"
-#include "CbDataList.h"
-#include "ssl/support.h"
-#include "ssl/ErrorDetail.h"
+#include "security/forward.h"
 
-class ACLSslErrorData : public ACLData<Ssl::ssl_error_t>
+class ACLSslErrorData : public ACLData<const Security::CertErrors *>
 {
-
-public:
     MEMPROXY_CLASS(ACLSslErrorData);
 
-    ACLSslErrorData();
+public:
+    ACLSslErrorData() = default;
     ACLSslErrorData(ACLSslErrorData const &);
     ACLSslErrorData &operator= (ACLSslErrorData const &);
-    virtual ~ACLSslErrorData();
-    bool match(Ssl::ssl_error_t);
-    wordlist *dump();
+    virtual ~ACLSslErrorData() {}
+    bool match(const Security::CertErrors *);
+    virtual SBufList dump() const;
     void parse();
-    bool empty() const;
-    virtual ACLData<Ssl::ssl_error_t> *clone() const;
+    bool empty() const { return values.empty(); }
+    virtual  ACLSslErrorData *clone() const;
 
-    CbDataList<Ssl::ssl_error_t> *values;
+    Security::Errors values;
 };
 
-MEMPROXY_CLASS_INLINE(ACLSslErrorData);
-
 #endif /* SQUID_ACLSSL_ERRORDATA_H */
+