SslErrorData.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3  *
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.
7  */
8 
9 #include "squid.h"
10 #include "acl/Checklist.h"
11 #include "acl/SslErrorData.h"
12 #include "security/CertError.h"
13 #include "ssl/ErrorDetail.h"
14 
15 bool
17 {
18  for (const auto *err = toFind; err; err = err->next) {
19  if (values.count(err->element.code))
20  return true;
21  }
22  return false;
23 }
24 
27 {
28  SBufList sl;
29  for (const auto &e : values) {
30  sl.push_back(SBuf(Ssl::GetErrorName(e)));
31  }
32  return sl;
33 }
34 
35 void
37 {
38  while (char *t = ConfigParser::strtokFile()) {
40  }
41 }
42 
static char * strtokFile()
Definition: ConfigParser.cc:65
const char * GetErrorName(const Security::ErrorCode code, const bool prefixRawCode=false)
Definition: ErrorDetail.h:38
std::list< SBuf > SBufList
Definition: forward.h:22
Definition: SBuf.h:93
CbDataList * next
Definition: CbDataList.h:31
SBufList dump() const override
Definition: SslErrorData.cc:26
void parse() override
Definition: SslErrorData.cc:36
bool ParseErrorString(const char *name, Security::Errors &)
Definition: ErrorDetail.cc:111
Security::Errors values
Definition: SslErrorData.h:28
bool match(const Security::CertErrors *) override
Definition: SslErrorData.cc:16

 

Introduction

Documentation

Support

Miscellaneous