CertificateData.h
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 #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);
28  virtual ~ACLCertificateData();
29  bool match(X509 *);
30  virtual SBufList dump() const;
31  void parse();
32  bool empty() const;
33  virtual ACLData<X509 *> *clone() const;
34 
39  const char *validAttributesStr;
41  std::list<std::string> validAttributes;
44  char *attribute;
46 
47 private:
50 };
51 
52 #endif /* SQUID_ACLCERTIFICATEDATA_H */
53 
ACLStringData values
char const * GETX509ATTRIBUTE(X509 *, const char *)
Definition: support.h:114
Ssl::GETX509ATTRIBUTE * sslAttributeCall
The callback used to retrieve the data from X509 cert.
virtual SBufList dump() const
bool attributeIsOptional
True if the attribute is optional (-xxx options)
Configured ACL parameter(s) (e.g., domain names in dstdomain ACL).
Definition: Data.h:17
virtual ~ACLCertificateData()
virtual ACLData< X509 * > * clone() const
ACLCertificateData(Ssl::GETX509ATTRIBUTE *, const char *attributes, bool optionalAttr=false)
std::list< SBuf > SBufList
Definition: forward.h:22
std::list< std::string > validAttributes
Parsed list of valid attribute names.
const char * validAttributesStr
ACLCertificateData & operator=(ACLCertificateData const &)
MEMPROXY_CLASS(ACLCertificateData)

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors