AFAICT, the default copy constructor should work and the removed
explicit constructor was not copying the staticContext member, for no
documented reason (that I could find). It was also unused [in my tests].
If the partial copy constructor was abused for something useful, then a
different approach should be found -- the one that does not violate the
standard copy constructor post-conditions.
#include <openssl/x509.h>
#endif
-Security::ServerOptions::ServerOptions(const Security::ServerOptions &s) :
- dh(s.dh),
- dhParamsFile(s.dhParamsFile),
- eecdhCurve(s.eecdhCurve),
- parsedDhParams(s.parsedDhParams)
-{
-}
-
void
Security::ServerOptions::parse(const char *token)
{
// is more secure to have only a small set of trusted CA.
flags.tlsDefaultCa.defaultTo(false);
}
- explicit ServerOptions(const Security::ServerOptions &);
virtual ~ServerOptions() = default;
/* Security::PeerOptions API */