Skip to content

Commit

Permalink
CDRIVER-5744 update required libmongocrypt to 1.12.0 (#1784)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinAlbs authored Nov 6, 2024
1 parent 8f24109 commit 3b0078e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
9 changes: 2 additions & 7 deletions .evergreen/scripts/compile-libmongocrypt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,14 @@ compile_libmongocrypt() {
# `.evergreen/scripts/kms-divergence-check.sh` to ensure that there is no
# divergence in the copied files.

# TODO: once 1.12.0 is released (containing de69cc91e1574e8861cd0ceb4bb866cc02a53d6b) replace the following with:
# git clone -q --depth=1 https://github.com/mongodb/libmongocrypt --branch 1.12.0 || return
{
git clone -q https://github.com/mongodb/libmongocrypt || return
git -C libmongocrypt checkout de69cc91e1574e8861cd0ceb4bb866cc02a53d6b
}
git clone -q --depth=1 https://github.com/mongodb/libmongocrypt --branch 1.12.0 || return

declare -a crypt_cmake_flags=(
"-DMONGOCRYPT_MONGOC_DIR=${mongoc_dir}"
"-DBUILD_TESTING=OFF"
"-DENABLE_ONLINE_TESTS=OFF"
"-DENABLE_MONGOC=OFF"
"-DBUILD_VERSION=1.11.0-pre"
"-DBUILD_VERSION=1.12.0"
)

env \
Expand Down
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Deprecated:
* `mongoc_database_command` is deprecated and planned for removal in a future release. Use `mongoc_database_command_simple` instead.
* `mongoc_collection_command` is deprecated and planned for removal in a future release. Use `mongoc_collection_command_simple` instead.

Notes:

* Raise required version of libmongocrypt to 1.12.0 to support In-Use Encryption (corresponds to the CMake option: `ENABLE_CLIENT_SIDE_ENCRYPTION`).

libmongoc 1.28.1
================

Expand Down
4 changes: 2 additions & 2 deletions src/libmongoc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,10 @@ elseif (NOT ENABLE_CLIENT_SIDE_ENCRYPTION STREQUAL OFF)
find_package (mongocrypt QUIET)
endif ()

if (mongocrypt_FOUND AND "${mongocrypt_VERSION}" VERSION_LESS 1.11.0)
if (mongocrypt_FOUND AND "${mongocrypt_VERSION}" VERSION_LESS 1.12.0)
message (STATUS " libmongocrypt found at ${mongocrypt_DIR}")
message (STATUS " libmongocrypt version ${mongocrypt_VERSION} found")
message (STATUS " libmongocrypt version 1.11.0 is required to enable In-Use Encryption Support.")
message (STATUS " libmongocrypt version 1.12.0 is required to enable In-Use Encryption Support.")
set (REQUIRED_MONGOCRYPT_VERSION_FOUND OFF)
elseif (mongocrypt_FOUND)
set (REQUIRED_MONGOCRYPT_VERSION_FOUND ON)
Expand Down

0 comments on commit 3b0078e

Please # to comment.