CertificateData.h
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#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
20class ACLCertificateData : public ACLData<X509 *>
21{
23
24public:
25 ACLCertificateData(Ssl::GETX509ATTRIBUTE *, const char *attributes, bool optionalAttr = false);
26 bool match(X509 *) override;
27 SBufList dump() const override;
28 void parse() override;
29 bool empty() const override;
30
35 const char *validAttributesStr;
37 std::list<std::string> validAttributes;
42
43private:
46};
47
48#endif /* SQUID_ACLCERTIFICATEDATA_H */
49
bool match(X509 *) override
bool empty() const override
bool attributeIsOptional
True if the attribute is optional (-xxx options)
Ssl::GETX509ATTRIBUTE * sslAttributeCall
The callback used to retrieve the data from X509 cert.
void parse() override
ACLCertificateData(Ssl::GETX509ATTRIBUTE *, const char *attributes, bool optionalAttr=false)
MEMPROXY_CLASS(ACLCertificateData)
ACLStringData values
const char * validAttributesStr
SBufList dump() const override
std::list< std::string > validAttributes
Parsed list of valid attribute names.
Configured ACL parameter(s) (e.g., domain names in dstdomain ACL).
Definition: Data.h:18
Definition: SBuf.h:94
char const * GETX509ATTRIBUTE(X509 *, const char *)
Definition: support.h:105
std::list< SBuf > SBufList
Definition: forward.h:23

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors