]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/SslErrorData.cc
2 * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
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.
10 #include "acl/Checklist.h"
11 #include "acl/SslErrorData.h"
12 #include "security/CertError.h"
13 #include "ssl/ErrorDetail.h"
15 ACLSslErrorData::ACLSslErrorData(ACLSslErrorData
const &o
) :
20 ACLSslErrorData::match(const Security::CertErrors
*toFind
)
22 for (const auto *err
= toFind
; err
; err
= err
->next
) {
23 if (values
.count(err
->element
.code
))
30 ACLSslErrorData::dump() const
33 for (const auto &e
: values
) {
34 sl
.push_back(SBuf(Ssl::GetErrorName(e
)));
40 ACLSslErrorData::parse()
42 while (char *t
= ConfigParser::strtokFile()) {
43 Ssl::ParseErrorString(t
, values
);
48 ACLSslErrorData::clone() const
50 return new ACLSslErrorData(*this);