Skip to content

Commit b88cedc

Browse files
authored
CDRIVER-5696 deprecate ENABLE_SASL=CYRUS on Windows (#1729)
* CDRIVER-5696 deprecate `ENABLE_SASL=CYRUS` on Windows * and deprecate `CYRUS_PLUGIN_PATH_PREFIX`
1 parent 8321c13 commit b88cedc

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,20 @@ mongo_setting(
149149
if(ENABLE_SASL STREQUAL "SSPI" AND NOT WIN32)
150150
message(WARNING "ENABLE_SASL=SSPI is only supported on Windows platforms")
151151
endif()
152+
if(ENABLE_SASL STREQUAL "CYRUS" AND WIN32)
153+
message(DEPRECATION "ENABLE_SASL=CYRUS on Windows platforms is deprecated and may be removed in a future major release")
154+
endif()
152155
]]
153156
)
154157

155158
mongo_setting(CYRUS_PLUGIN_PATH_PREFIX "An absolute path prefix to enable loading Cyrus SASL plugins on Windows"
156159
TYPE STRING
157160
VISIBLE_IF [[ENABLE_SASL STREQUAL "CYRUS" AND WIN32]]
161+
VALIDATE CODE [[
162+
if (CYRUS_PLUGIN_PATH_PREFIX)
163+
message(DEPRECATION "CYRUS_PLUGIN_PATH_PREFIX is deprecated and may be removed in a future major release")
164+
endif ()
165+
]]
158166
)
159167

160168
mongo_setting(ENABLE_CLIENT_SIDE_ENCRYPTION "Enable In-Use Encryption support. Requires additional support libraries."

NEWS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ Deprecated:
3232
* `mongoc_cursor_get_hint` is deprecated for `mongoc_cursor_get_server_id`
3333

3434
* A future minor release plans to drop support for Visual Studio 2013.
35-
3635
* `ENABLE_SSL=LIBRESSL` is deprecated along with `mongoc_stream_tls_libressl_new`. Support for LibreSSL may be dropped in a future major release.
36+
* `ENABLE_SASL=CYRUS` on Windows platforms is deprecated. Support for `ENABLE_SASL=CYRUS` on Windows may be dropped in a future major release.
37+
* The associated Windows-only option `CYRUS_PLUGIN_PATH_PREFIX` is deprecated.
3738

3839
libmongoc 1.27.6
3940
================

0 commit comments

Comments
 (0)