2 * Copyright (C) 1996-2015 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_SERVEROPTIONS_H
10 #define SQUID_SRC_SECURITY_SERVEROPTIONS_H
12 #include "security/PeerOptions.h"
17 /// TLS squid.conf settings for a listening port
18 class ServerOptions
: public PeerOptions
21 ServerOptions() : PeerOptions() {}
22 explicit ServerOptions(const Security::ServerOptions
&);
23 virtual ~ServerOptions() = default;
25 /* Security::PeerOptions API */
26 virtual void parse(const char *);
27 virtual void clear() {*this = ServerOptions();}
28 virtual void dumpCfg(Packable
*, const char *pfx
) const;
30 /// update the context with DH, EDH, EECDH settings
31 void updateContextEecdh(Security::ContextPtr
&);
37 SBuf dh
; ///< Diffi-Helman cipher config
40 SBuf dhParamsFile
; ///< Diffi-Helman ciphers parameter file
41 SBuf eecdhCurve
; ///< Elliptic curve for ephemeral EC-based DH key exchanges
43 Security::DhePointer parsedDhParams
; ///< DH parameters for temporary/ephemeral DH key exchanges
46 } // namespace Security
48 #endif /* SQUID_SRC_SECURITY_SERVEROPTIONS_H */