SslErrorData.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 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 
16  values(o.values)
17 {}
18 
19 bool
21 {
22  for (const auto *err = toFind; err; err = err->next) {
23  if (values.count(err->element.code))
24  return true;
25  }
26  return false;
27 }
28 
31 {
32  SBufList sl;
33  for (const auto &e : values) {
34  sl.push_back(SBuf(Ssl::GetErrorName(e)));
35  }
36  return sl;
37 }
38 
39 void
41 {
42  while (char *t = ConfigParser::strtokFile()) {
44  }
45 }
46 
49 {
50  return new ACLSslErrorData(*this);
51 }
52 
virtual ACLSslErrorData * clone() const
Definition: SslErrorData.cc:48
virtual SBufList dump() const
Definition: SslErrorData.cc:30
const char * GetErrorName(Security::ErrorCode value)
The string representation of the TLS error "value".
Definition: ErrorDetail.cc:393
Definition: SBuf.h:86
CbDataList * next
Definition: CbDataList.h:31
Security::Errors values
Definition: SslErrorData.h:31
bool match(const Security::CertErrors *)
Definition: SslErrorData.cc:20
std::list< SBuf > SBufList
Definition: forward.h:22
ACLSslErrorData()=default
static char * strtokFile()
Definition: ConfigParser.cc:84
bool ParseErrorString(const char *name, Security::Errors &)
Definition: ErrorDetail.cc:357

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors