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

 

Introduction

Documentation

Support

Miscellaneous