KeyData.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2018 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 loadX509CertFromFile();
39  void loadX509ChainFromFile();
41 };
42 
43 } // namespace Security
44 
45 #endif /* SQUID_SRC_SECURITY_KEYDATA_H */
46 
SBuf certFile
path of file containing PEM format X.509 certificate
Definition: KeyData.h:27
Security::CertPointer cert
public X.509 certificate from certFile
Definition: KeyData.h:31
Definition: SBuf.h:86
std::list< Security::CertPointer > CertList
Definition: forward.h:80
void loadFromFiles(const AnyP::PortCfg &, const char *portType)
load the contents of certFile and privateKeyFile into memory cert, pkey and chain ...
Definition: KeyData.cc:191
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
void loadX509ChainFromFile()
Definition: KeyData.cc:86
Network/connection security abstraction layer.
Definition: Connection.h:31
TLS certificate and private key details from squid.conf.
Definition: KeyData.h:20
bool loadX509CertFromFile()
Definition: KeyData.cc:21
bool loadX509PrivateKeyFromFile()
Definition: KeyData.cc:148
Security::PrivateKeyPointer pkey
private key from privateKeyFile
Definition: KeyData.h:33

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors