KeyData.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_SRC_SECURITY_KEYDATA_H
10#define SQUID_SRC_SECURITY_KEYDATA_H
11
12#include "anyp/forward.h"
13#include "sbuf/SBuf.h"
14#include "security/forward.h"
15
16namespace Security
17{
18
21{
22public:
24 void loadFromFiles(const AnyP::PortCfg &, const char *portType);
25
26public:
29
33 Security::PrivateKeyPointer pkey;
36
37private:
38 bool loadCertificates();
40};
41
42} // namespace Security
43
44#endif /* SQUID_SRC_SECURITY_KEYDATA_H */
45
Definition: SBuf.h:94
TLS certificate and private key details from squid.conf.
Definition: KeyData.h:21
Security::PrivateKeyPointer pkey
private key from privateKeyFile
Definition: KeyData.h:33
SBuf certFile
path of file containing PEM format X.509 certificate
Definition: KeyData.h:27
void loadFromFiles(const AnyP::PortCfg &, const char *portType)
load the contents of certFile and privateKeyFile into memory cert, pkey and chain
Definition: KeyData.cc:180
bool loadCertificates()
Definition: KeyData.cc:21
SBuf privateKeyFile
path of file containing private key in PEM format
Definition: KeyData.h:28
Security::CertPointer cert
public X.509 certificate from certFile
Definition: KeyData.h:31
Security::CertList chain
any certificates which must be chained from cert
Definition: KeyData.h:35
bool loadX509PrivateKeyFromFile()
Definition: KeyData.cc:137
Network/connection security abstraction layer.
Definition: Connection.h:34
std::list< Security::CertPointer > CertList
Definition: forward.h:103

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors