diff options
author | Shaun Verch <shaun.verch@10gen.com> | 2013-09-10 16:23:15 -0400 |
---|---|---|
committer | Shaun Verch <shaun.verch@10gen.com> | 2013-10-04 16:58:54 -0400 |
commit | d61cdb37d5fcc83f649c912df2c590649935eac1 (patch) | |
tree | 2bc0bd95df4e95de1fa205a71ebc21935e76b636 /src/mongo/db/server_options.cpp | |
parent | 05dd65e6a7718ce80e3f452d88fe5105a10e9247 (diff) | |
download | mongo-d61cdb37d5fcc83f649c912df2c590649935eac1.tar.gz |
SERVER-8510 Factored out ssl option registration and storage
Diffstat (limited to 'src/mongo/db/server_options.cpp')
-rw-r--r-- | src/mongo/db/server_options.cpp | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/mongo/db/server_options.cpp b/src/mongo/db/server_options.cpp index c3d2ecb0f9c..bbc4957ee66 100644 --- a/src/mongo/db/server_options.cpp +++ b/src/mongo/db/server_options.cpp @@ -252,54 +252,4 @@ namespace mongo { return Status::OK(); } - Status addSSLServerOptions(moe::OptionSection* options) { - Status ret = options->addOption(OD("ssl.sslOnNormalPorts", "sslOnNormalPorts", moe::Switch, - "use ssl on configured ports", true)); - if (!ret.isOK()) { - return ret; - } - ret = options->addOption(OD("ssl.PEMKeyFile", "sslPEMKeyFile", moe::String, - "PEM file for ssl" , true)); - if (!ret.isOK()) { - return ret; - } - ret = options->addOption(OD("ssl.PEMKeyPassword", "sslPEMKeyPassword", moe::String, - "PEM file password" , true, moe::Value(), moe::Value(std::string("")))); - if (!ret.isOK()) { - return ret; - } - ret = options->addOption(OD("ssl.clusterFile", "sslClusterFile", moe::String, - "Key file for internal SSL authentication" , true)); - if (!ret.isOK()) { - return ret; - } - ret = options->addOption(OD("ssl.clusterPassword", "sslClusterPassword", moe::String, - "Internal authentication key file password" , true, moe::Value(), moe::Value(std::string("")))); - if (!ret.isOK()) { - return ret; - } - ret = options->addOption(OD("ssl.CAFile", "sslCAFile", moe::String, - "Certificate Authority file for SSL", true)); - if (!ret.isOK()) { - return ret; - } - ret = options->addOption(OD("ssl.CRLFile", "sslCRLFile", moe::String, - "Certificate Revocation List file for SSL", true)); - if (!ret.isOK()) { - return ret; - } - ret = options->addOption(OD("ssl.weakCertificateValidation", "sslWeakCertificateValidation", - moe::Switch, "allow client to connect without presenting a certificate", true)); - if (!ret.isOK()) { - return ret; - } - ret = options->addOption(OD("ssl.FIPSMode", "sslFIPSMode", moe::Switch, - "activate FIPS 140-2 mode at startup", true)); - if (!ret.isOK()) { - return ret; - } - - return Status::OK(); - } - } // namespace mongo |