SslErrorData.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2022 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 
virtual SBufList dump() const
Definition: SslErrorData.cc:26
bool match(const Security::CertErrors *)
Definition: SslErrorData.cc:16
Security::Errors values
Definition: SslErrorData.h:28
CbDataList * next
Definition: CbDataList.h:31
static char * strtokFile()
Definition: ConfigParser.cc:64
Definition: SBuf.h:94
const char * GetErrorName(const Security::ErrorCode code, const bool prefixRawCode=false)
Definition: ErrorDetail.h:36
bool ParseErrorString(const char *name, Security::Errors &)
Definition: ErrorDetail.cc:110
std::list< SBuf > SBufList
Definition: forward.h:22

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors