diff options
author | Andrew Morrow <acm@mongodb.com> | 2016-05-14 11:33:20 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2016-05-16 16:39:19 -0400 |
commit | 5b3e0cd4c4a5238efdf10c93359db37a25b4b139 (patch) | |
tree | 4ea1a3e4e539652b42bbca7507520ac5afd85697 | |
parent | 5ec034bbce9d2f0778b5c236d10b80a746356d6e (diff) | |
download | mongo-5b3e0cd4c4a5238efdf10c93359db37a25b4b139.tar.gz |
SERVER-23826 SERVER-24141 Initialize all fields of SSLParams
-rw-r--r-- | src/mongo/util/net/ssl_options.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/util/net/ssl_options.h b/src/mongo/util/net/ssl_options.h index e897656ed25..ef845c5207f 100644 --- a/src/mongo/util/net/ssl_options.h +++ b/src/mongo/util/net/ssl_options.h @@ -45,7 +45,6 @@ namespace moe = mongo::optionenvironment; struct SSLParams { enum class Protocols { TLS1_0, TLS1_1, TLS1_2 }; AtomicInt32 sslMode; // --sslMode - the SSL operation mode, see enum SSLModes - bool sslOnNormalPorts; // --sslOnNormalPorts (deprecated) std::string sslPEMKeyFile; // --sslPEMKeyFile std::string sslPEMKeyPassword; // --sslPEMKeyPassword std::string sslClusterFile; // --sslInternalKeyFile @@ -54,10 +53,10 @@ struct SSLParams { std::string sslCRLFile; // --sslCRLFile std::string sslCipherConfig; // --sslCipherConfig std::vector<Protocols> sslDisabledProtocols; // --sslDisabledProtocols - bool sslWeakCertificateValidation; // --sslWeakCertificateValidation - bool sslFIPSMode; // --sslFIPSMode - bool sslAllowInvalidCertificates; // --sslAllowInvalidCertificates - bool sslAllowInvalidHostnames; // --sslAllowInvalidHostnames + bool sslWeakCertificateValidation = false; // --sslWeakCertificateValidation + bool sslFIPSMode = false; // --sslFIPSMode + bool sslAllowInvalidCertificates = false; // --sslAllowInvalidCertificates + bool sslAllowInvalidHostnames = false; // --sslAllowInvalidHostnames SSLParams() { sslMode.store(SSLMode_disabled); |