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 5d548029c80..2a9090d4531 100644
--- a/src/mongo/util/net/ssl_options.cpp
+++ b/src/mongo/util/net/ssl_options.cpp
@@ -267,6 +267,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>();
}