CertificateData.h
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 #ifndef SQUID_ACLCERTIFICATEDATA_H
10 #define SQUID_ACLCERTIFICATEDATA_H
11 
12 #include "acl/Acl.h"
13 #include "acl/Data.h"
14 #include "acl/StringData.h"
15 #include "ssl/support.h"
16 #include <string>
17 #include <list>
18 
20 class ACLCertificateData : public ACLData<X509 *>
21 {
23 
24 public:
25  ACLCertificateData(Ssl::GETX509ATTRIBUTE *, const char *attributes, bool optionalAttr = false);
26  virtual ~ACLCertificateData();
27  bool match(X509 *);
28  virtual SBufList dump() const;
29  void parse();
30  bool empty() const;
31 
36  const char *validAttributesStr;
38  std::list<std::string> validAttributes;
41  char *attribute;
43 
44 private:
47 };
48 
49 #endif /* SQUID_ACLCERTIFICATEDATA_H */
50 
virtual SBufList dump() const
MEMPROXY_CLASS(ACLCertificateData)
std::list< SBuf > SBufList
Definition: forward.h:22
Configured ACL parameter(s) (e.g., domain names in dstdomain ACL).
Definition: Data.h:18
bool attributeIsOptional
True if the attribute is optional (-xxx options)
Ssl::GETX509ATTRIBUTE * sslAttributeCall
The callback used to retrieve the data from X509 cert.
ACLCertificateData(Ssl::GETX509ATTRIBUTE *, const char *attributes, bool optionalAttr=false)
std::list< std::string > validAttributes
Parsed list of valid attribute names.
char const * GETX509ATTRIBUTE(X509 *, const char *)
Definition: support.h:105
virtual ~ACLCertificateData()
const char * validAttributesStr
ACLStringData values

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors