summaryrefslogtreecommitdiff
path: root/src/mongo/util/net/ssl_options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/net/ssl_options.cpp')
-rw-r--r--src/mongo/util/net/ssl_options.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/util/net/ssl_options.cpp b/src/mongo/util/net/ssl_options.cpp
index 2d29e4704f2..a29b2d1805c 100644
--- a/src/mongo/util/net/ssl_options.cpp
+++ b/src/mongo/util/net/ssl_options.cpp
@@ -257,6 +257,13 @@ Status storeSSLServerOptions(const moe::Environment& params) {
}
if (params.count("net.ssl.sslCipherConfig")) {
+ warning()
+ << "net.ssl.sslCipherConfig is deprecated. It will be removed in a future release.";
+ if (!sslGlobalParams.sslCipherConfig.empty()) {
+ return Status(ErrorCodes::BadValue,
+ "net.ssl.sslCipherConfig is incompatible with the openSSLCipherConfig "
+ "setParameter");
+ }
sslGlobalParams.sslCipherConfig = params["net.ssl.sslCipherConfig"].as<string>();
}