]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/security/KeyData.h
2 * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_SRC_SECURITY_KEYDATA_H
10 #define SQUID_SRC_SECURITY_KEYDATA_H
12 #include "anyp/forward.h"
13 #include "sbuf/SBuf.h"
14 #include "security/forward.h"
19 /// TLS certificate and private key details from squid.conf
23 /// load the contents of certFile and privateKeyFile into memory cert, pkey and chain
24 void loadFromFiles(const AnyP::PortCfg
&, const char *portType
);
27 SBuf certFile
; ///< path of file containing PEM format X.509 certificate
28 SBuf privateKeyFile
; ///< path of file containing private key in PEM format
30 /// public X.509 certificate from certFile
31 Security::CertPointer cert
;
32 /// private key from privateKeyFile
33 Security::PrivateKeyPointer pkey
;
34 /// any certificates which must be chained from cert
35 Security::CertList chain
;
38 bool loadX509CertFromFile();
39 void loadX509ChainFromFile();
40 bool loadX509PrivateKeyFromFile();
43 } // namespace Security
45 #endif /* SQUID_SRC_SECURITY_KEYDATA_H */