libmongocrypt-helper 1.14.0.0.1001 → 1.19.0.0.1001
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/libmongocrypt/libmongocrypt/CHANGELOG.md +127 -2
- data/ext/libmongocrypt/libmongocrypt/CMakeLists.txt +35 -57
- data/ext/libmongocrypt/libmongocrypt/CODEOWNERS +3 -0
- data/ext/libmongocrypt/libmongocrypt/Earthfile +112 -114
- data/ext/libmongocrypt/libmongocrypt/README.md +23 -14
- data/ext/libmongocrypt/libmongocrypt/bindings/python/CHANGELOG.rst +44 -0
- data/ext/libmongocrypt/libmongocrypt/bindings/python/CONTRIBUTING.md +1 -1
- data/ext/libmongocrypt/libmongocrypt/bindings/python/README.rst +17 -26
- data/ext/libmongocrypt/libmongocrypt/bindings/python/pymongocrypt/asynchronous/explicit_encrypter.py +6 -0
- data/ext/libmongocrypt/libmongocrypt/bindings/python/pymongocrypt/binding.py +46 -1
- data/ext/libmongocrypt/libmongocrypt/bindings/python/pymongocrypt/mongocrypt.py +5 -0
- data/ext/libmongocrypt/libmongocrypt/bindings/python/pymongocrypt/options.py +10 -0
- data/ext/libmongocrypt/libmongocrypt/bindings/python/pymongocrypt/synchronous/explicit_encrypter.py +6 -0
- data/ext/libmongocrypt/libmongocrypt/bindings/python/pymongocrypt/version.py +1 -1
- data/ext/libmongocrypt/libmongocrypt/bindings/python/pyproject.toml +3 -3
- data/ext/libmongocrypt/libmongocrypt/bindings/python/requirements-test.txt +1 -1
- data/ext/libmongocrypt/libmongocrypt/bindings/python/requirements.txt +1 -1
- data/ext/libmongocrypt/libmongocrypt/bindings/python/sbom.json +8 -8
- data/ext/libmongocrypt/libmongocrypt/bindings/python/scripts/libmongocrypt-version.txt +1 -1
- data/ext/libmongocrypt/libmongocrypt/bindings/python/scripts/release.sh +18 -5
- data/ext/libmongocrypt/libmongocrypt/bindings/python/test/data/fle2-text-search/encrypted-payload.json +6 -0
- data/ext/libmongocrypt/libmongocrypt/bindings/python/test/data/fle2-text-search/textopts.json +8 -0
- data/ext/libmongocrypt/libmongocrypt/bindings/python/test/performance/perf_test.py +1 -2
- data/ext/libmongocrypt/libmongocrypt/bindings/python/test/test_mongocrypt.py +49 -0
- data/ext/libmongocrypt/libmongocrypt/cmake/FetchMongoC.cmake +9 -4
- data/ext/libmongocrypt/libmongocrypt/cmake/ImportBSON.cmake +5 -41
- data/ext/libmongocrypt/libmongocrypt/cmake/IntelDFP.cmake +7 -1
- data/ext/libmongocrypt/libmongocrypt/cmake/MongoC-Warnings.cmake +1 -8
- data/ext/libmongocrypt/libmongocrypt/doc/releasing.md +13 -7
- data/ext/libmongocrypt/libmongocrypt/etc/cyclonedx.sbom.json +8 -8
- data/ext/libmongocrypt/libmongocrypt/etc/debian/control +0 -2
- data/ext/libmongocrypt/libmongocrypt/etc/download-artifacts.py +63 -0
- data/ext/libmongocrypt/libmongocrypt/etc/format.sh +1 -9
- data/ext/libmongocrypt/libmongocrypt/etc/install-package.sh +8 -2
- data/ext/libmongocrypt/libmongocrypt/etc/libbson-remove-GCC-diagnostic-pragma.patch +93 -10
- data/ext/libmongocrypt/libmongocrypt/etc/mongo-common-test-harness.patch +13 -0
- data/ext/libmongocrypt/libmongocrypt/etc/packager.py +6 -1
- data/ext/libmongocrypt/libmongocrypt/etc/purls.txt +1 -1
- data/ext/libmongocrypt/libmongocrypt/etc/repo_config.yaml +31 -0
- data/ext/libmongocrypt/libmongocrypt/integrating.md +29 -19
- data/ext/libmongocrypt/libmongocrypt/kms-message/CMakeLists.txt +3 -4
- data/ext/libmongocrypt/libmongocrypt/kms-message/src/hexlify.c +10 -5
- data/ext/libmongocrypt/libmongocrypt/kms-message/src/kms_b64.c +3 -0
- data/ext/libmongocrypt/libmongocrypt/kms-message/src/kms_crypto.h +1 -0
- data/ext/libmongocrypt/libmongocrypt/kms-message/src/kms_crypto_apple.c +3 -0
- data/ext/libmongocrypt/libmongocrypt/kms-message/src/kms_crypto_libcrypto.c +2 -0
- data/ext/libmongocrypt/libmongocrypt/kms-message/src/kms_crypto_windows.c +5 -0
- data/ext/libmongocrypt/libmongocrypt/kms-message/src/kms_gcp_request.c +3 -3
- data/ext/libmongocrypt/libmongocrypt/kms-message/src/kms_kmip_reader_writer.c +8 -1
- data/ext/libmongocrypt/libmongocrypt/kms-message/src/kms_kmip_request.c +6 -0
- data/ext/libmongocrypt/libmongocrypt/kms-message/src/kms_kmip_response.c +3 -0
- data/ext/libmongocrypt/libmongocrypt/kms-message/src/kms_kmip_response_parser.c +8 -0
- data/ext/libmongocrypt/libmongocrypt/kms-message/src/kms_message/kms_response_parser.h +2 -0
- data/ext/libmongocrypt/libmongocrypt/kms-message/src/kms_message_private.h +4 -2
- data/ext/libmongocrypt/libmongocrypt/kms-message/src/kms_request_str.c +2 -1
- data/ext/libmongocrypt/libmongocrypt/kms-message/src/kms_request_str.h +8 -4
- data/ext/libmongocrypt/libmongocrypt/kms-message/src/kms_response_parser.c +11 -2
- data/ext/libmongocrypt/libmongocrypt/kms-message/test/test_kmip_reader_writer.c +20 -0
- data/ext/libmongocrypt/libmongocrypt/kms-message/test/test_kms_azure_online.c +2 -0
- data/ext/libmongocrypt/libmongocrypt/kms-message/test/test_kms_gcp_online.c +2 -0
- data/ext/libmongocrypt/libmongocrypt/kms-message/test/test_kms_kmip_response_parser.c +50 -0
- data/ext/libmongocrypt/libmongocrypt/kms-message/test/test_kms_request.c +12 -2
- data/ext/libmongocrypt/libmongocrypt/src/crypto/cng.c +7 -3
- data/ext/libmongocrypt/libmongocrypt/src/mc-dec128.h +3 -3
- data/ext/libmongocrypt/libmongocrypt/src/mc-dec128.test.cpp +1 -1
- data/ext/libmongocrypt/libmongocrypt/src/mc-efc-private.h +6 -2
- data/ext/libmongocrypt/libmongocrypt/src/mc-efc.c +78 -16
- data/ext/libmongocrypt/libmongocrypt/src/mc-fle-blob-subtype-private.h +2 -4
- data/ext/libmongocrypt/libmongocrypt/src/mc-fle2-find-equality-payload-v2.c +4 -0
- data/ext/libmongocrypt/libmongocrypt/src/mc-fle2-find-equality-payload.c +4 -0
- data/ext/libmongocrypt/libmongocrypt/src/mc-fle2-find-range-payload-private-v2.h +2 -2
- data/ext/libmongocrypt/libmongocrypt/src/mc-fle2-find-range-payload-v2.c +1 -1
- data/ext/libmongocrypt/libmongocrypt/src/mc-fle2-find-range-payload.c +1 -1
- data/ext/libmongocrypt/libmongocrypt/src/mc-fle2-find-text-payload.c +4 -0
- data/ext/libmongocrypt/libmongocrypt/src/mc-fle2-insert-update-payload-private-v2.h +20 -4
- data/ext/libmongocrypt/libmongocrypt/src/mc-fle2-insert-update-payload-v2.c +7 -4
- data/ext/libmongocrypt/libmongocrypt/src/mc-fle2-insert-update-payload.c +1 -1
- data/ext/libmongocrypt/libmongocrypt/src/mc-fle2-payload-iev-v2.c +13 -11
- data/ext/libmongocrypt/libmongocrypt/src/mc-fle2-rfds.c +6 -7
- data/ext/libmongocrypt/libmongocrypt/src/mc-fle2-tag-and-encrypted-metadata-block-private.h +7 -6
- data/ext/libmongocrypt/libmongocrypt/src/mc-fle2-tag-and-encrypted-metadata-block.c +11 -9
- data/ext/libmongocrypt/libmongocrypt/src/{mlib → mc-mlib}/str.h +1 -0
- data/ext/libmongocrypt/libmongocrypt/src/{mlib → mc-mlib}/thread.h +5 -5
- data/ext/libmongocrypt/libmongocrypt/src/{mlib → mc-mlib}/windows-lean.h +1 -1
- data/ext/libmongocrypt/libmongocrypt/src/mc-optional-private.h +1 -1
- data/ext/libmongocrypt/libmongocrypt/src/mc-range-edge-generation-private.h +1 -1
- data/ext/libmongocrypt/libmongocrypt/src/mc-range-edge-generation.c +0 -1
- data/ext/libmongocrypt/libmongocrypt/src/mc-range-encoding-private.h +1 -1
- data/ext/libmongocrypt/libmongocrypt/src/mc-range-encoding.c +0 -1
- data/ext/libmongocrypt/libmongocrypt/src/mc-range-mincover.c +0 -2
- data/ext/libmongocrypt/libmongocrypt/src/mc-rangeopts.c +4 -1
- data/ext/libmongocrypt/libmongocrypt/src/mc-schema-broker-private.h +25 -1
- data/ext/libmongocrypt/libmongocrypt/src/mc-schema-broker.c +225 -17
- data/ext/libmongocrypt/libmongocrypt/src/mc-text-search-str-encode-private.h +2 -0
- data/ext/libmongocrypt/libmongocrypt/src/mc-text-search-str-encode.c +23 -13
- data/ext/libmongocrypt/libmongocrypt/src/mc-textopts-private.h +86 -0
- data/ext/libmongocrypt/libmongocrypt/src/mc-textopts.c +387 -0
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-buffer-private.h +0 -2
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-buffer.c +0 -16
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-cache-key.c +0 -18
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-cache-private.h +0 -3
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-cache.c +0 -22
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-config.h.in +3 -7
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-ctx-datakey.c +1 -1
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-ctx-decrypt.c +0 -14
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-ctx-encrypt.c +360 -47
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-ctx-private.h +15 -9
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-ctx-rewrap-many-datakey.c +1 -1
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-ctx.c +55 -52
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-dll-private.h +2 -2
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-key-broker.c +9 -2
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-kms-ctx.c +42 -44
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-log-private.h +0 -32
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-log.c +1 -8
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-marking.c +86 -28
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-opts-private.h +10 -1
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-opts.c +6 -6
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-private.h +11 -3
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-traverse-util.c +1 -1
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-util-private.h +1 -1
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt-util.c +14 -4
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt.c +16 -92
- data/ext/libmongocrypt/libmongocrypt/src/mongocrypt.h +63 -5
- data/ext/libmongocrypt/libmongocrypt/src/os_win/os_dll.c +3 -3
- data/ext/libmongocrypt/libmongocrypt/test/data/cleanup/text-search/cmd.json +1 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/cleanup/text-search/collinfo.json +100 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/cleanup/text-search/encrypted-field-config-map.json +97 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/cleanup/text-search/encrypted-payload.json +51 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/compact/anchor-pad/encrypted-payload.json +101 -27
- data/ext/libmongocrypt/libmongocrypt/test/data/compact/text-search/cmd.json +1 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/compact/text-search/collinfo.json +100 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/compact/text-search/encrypted-field-config-map.json +97 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/compact/{anchor-pad/encrypted-payload-range-v2.json → text-search/encrypted-payload.json} +60 -8
- data/ext/libmongocrypt/libmongocrypt/test/data/efc/efc-duplicateKeyAltName.json +29 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/efc/efc-textSearchFields-badVersionSet.json +2 -2
- data/ext/libmongocrypt/libmongocrypt/test/data/efc/efc-textSearchFields-goodVersionSet.json +2 -2
- data/ext/libmongocrypt/libmongocrypt/test/data/efc/efc-textSearchFields.json +26 -2
- data/ext/libmongocrypt/libmongocrypt/test/data/fle2-duplicate-keyaltname/encrypted-field-config-map.json +27 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/fle2-explicit/find-prefix.json +8 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/fle2-explicit/find-substring.json +8 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/fle2-explicit/find-suffix.json +8 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/fle2-explicit/insert-casef-diacf.json +8 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/fle2-explicit/insert-prefix-suffix.json +8 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/fle2-explicit/insert-prefix.json +8 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/fle2-explicit/insert-substring.json +8 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/fle2-explicit/insert-suffix.json +8 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/fle2-insert-text-search/RNG_DATA.h +70 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/fle2-insert-text-search-preview/cmd.json +9 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/fle2-insert-text-search-preview/encrypted-field-map-prefixPreview.json +24 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/fle2-insert-text-search-preview/encrypted-field-map-suffixPreview.json +24 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/kms-aws/encrypt-response-partial.txt +7 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/kms-tests.json +44 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/lookup/mixed/qe/non-csfle-schema/cmd-to-mongocryptd.json +52 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/lookup/mixed/qe/non-csfle-schema/cmd-to-mongod.json +47 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/lookup/mixed/qe/non-csfle-schema/cmd.json +19 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/lookup/mixed/qe/non-csfle-schema/collInfo-c1.json +38 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/lookup/mixed/qe/non-csfle-schema/collInfo-c2.json +26 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/lookup/mixed/qe/non-csfle-schema/key-doc.json +30 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/lookup/mixed/qe/non-csfle-schema/reply-from-mongocryptd.json +54 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/mongocryptd-ismaster-27.json +12 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/qe_keyAltName/cleanup/cmd-to-mongod.json +12 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/qe_keyAltName/cleanup/cmd.json +4 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/qe_keyAltName/cleanup/key-document.json +34 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/qe_keyAltName/cmd-to-mongocryptd.json +31 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/qe_keyAltName/compact/cmd-to-mongod.json +11 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/qe_keyAltName/compact/cmd.json +3 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/qe_keyAltName/compact/key-document.json +33 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/qe_keyAltName/create/cmd-to-mongocryptd.json +38 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/qe_keyAltName/create/cmd-to-mongod.json +17 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/qe_keyAltName/create/cmd.json +12 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/qe_keyAltName/create/key-document.json +33 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/qe_keyAltName/create/reply-from-mongocryptd.json +24 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/qe_keyAltName/key-document-aws.json +38 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/qe_keyAltName/key-document.json +33 -0
- data/ext/libmongocrypt/libmongocrypt/test/data/qe_keyAltName/reply-from-mongocryptd.json +43 -0
- data/ext/libmongocrypt/libmongocrypt/test/example-state-machine.c +1 -1
- data/ext/libmongocrypt/libmongocrypt/test/test-mc-efc.c +20 -3
- data/ext/libmongocrypt/libmongocrypt/test/test-mc-fle2-find-equality-payload-v2.c +37 -15
- data/ext/libmongocrypt/libmongocrypt/test/test-mc-fle2-find-text-payload.c +6 -0
- data/ext/libmongocrypt/libmongocrypt/test/test-mc-fle2-payload-iev-v2.c +23 -0
- data/ext/libmongocrypt/libmongocrypt/test/test-mc-fle2-payload-iup-v2.c +58 -17
- data/ext/libmongocrypt/libmongocrypt/test/test-mc-fle2-rfds.c +1 -1
- data/ext/libmongocrypt/libmongocrypt/test/test-mc-range-edge-generation.c +0 -1
- data/ext/libmongocrypt/libmongocrypt/test/test-mc-range-encoding.c +0 -1
- data/ext/libmongocrypt/libmongocrypt/test/test-mc-range-mincover.c +0 -1
- data/ext/libmongocrypt/libmongocrypt/test/test-mc-rangeopts.c +3 -0
- data/ext/libmongocrypt/libmongocrypt/test/test-mc-schema-broker.c +109 -17
- data/ext/libmongocrypt/libmongocrypt/test/test-mc-text-search-str-encode.c +25 -2
- data/ext/libmongocrypt/libmongocrypt/test/test-mc-textopts.c +319 -0
- data/ext/libmongocrypt/libmongocrypt/test/test-mongocrypt-assert-match-bson.c +4 -4
- data/ext/libmongocrypt/libmongocrypt/test/test-mongocrypt-buffer.c +1 -1
- data/ext/libmongocrypt/libmongocrypt/test/test-mongocrypt-cleanup.c +67 -50
- data/ext/libmongocrypt/libmongocrypt/test/test-mongocrypt-compact.c +12 -10
- data/ext/libmongocrypt/libmongocrypt/test/test-mongocrypt-crypto-hooks.c +17 -1
- data/ext/libmongocrypt/libmongocrypt/test/test-mongocrypt-csfle-lib.c +27 -0
- data/ext/libmongocrypt/libmongocrypt/test/test-mongocrypt-ctx-encrypt.c +1058 -9
- data/ext/libmongocrypt/libmongocrypt/test/test-mongocrypt-ctx-setopt.c +143 -8
- data/ext/libmongocrypt/libmongocrypt/test/test-mongocrypt-datakey.c +162 -0
- data/ext/libmongocrypt/libmongocrypt/test/test-mongocrypt-dll.c +1 -1
- data/ext/libmongocrypt/libmongocrypt/test/test-mongocrypt-key-broker.c +2 -13
- data/ext/libmongocrypt/libmongocrypt/test/test-mongocrypt-key-cache.c +1 -1
- data/ext/libmongocrypt/libmongocrypt/test/test-mongocrypt-log.c +0 -31
- data/ext/libmongocrypt/libmongocrypt/test/test-mongocrypt-marking.c +66 -17
- data/ext/libmongocrypt/libmongocrypt/test/test-mongocrypt-traverse-util.c +2 -2
- data/ext/libmongocrypt/libmongocrypt/test/test-mongocrypt-util.c +2 -1
- data/ext/libmongocrypt/libmongocrypt/test/test-mongocrypt.c +1 -0
- data/ext/libmongocrypt/libmongocrypt/test/test-mongocrypt.h +3 -1
- data/ext/libmongocrypt/libmongocrypt/test/util/util.c +3 -3
- data/lib/libmongocrypt_helper/version.rb +2 -2
- metadata +71 -23
- data/ext/libmongocrypt/libmongocrypt/doc/Doxygen +0 -2474
- data/ext/libmongocrypt/libmongocrypt/etc/c6-vault.repo +0 -39
- data/ext/libmongocrypt/libmongocrypt/etc/libbson-remove-GCC-diagnostic-in-functions.patch +0 -158
- data/ext/libmongocrypt/libmongocrypt/src/mc-check-conversions-private.h +0 -32
- /data/ext/libmongocrypt/libmongocrypt/src/{mlib → mc-mlib}/check.hpp +0 -0
- /data/ext/libmongocrypt/libmongocrypt/src/{mlib → mc-mlib}/endian.h +0 -0
- /data/ext/libmongocrypt/libmongocrypt/src/{mlib → mc-mlib}/error.h +0 -0
- /data/ext/libmongocrypt/libmongocrypt/src/{mlib → mc-mlib}/int128.h +0 -0
- /data/ext/libmongocrypt/libmongocrypt/src/{mlib → mc-mlib}/int128.test.c +0 -0
- /data/ext/libmongocrypt/libmongocrypt/src/{mlib → mc-mlib}/int128.test.cpp +0 -0
- /data/ext/libmongocrypt/libmongocrypt/src/{mlib → mc-mlib}/macros.h +0 -0
- /data/ext/libmongocrypt/libmongocrypt/src/{mlib → mc-mlib}/path.h +0 -0
- /data/ext/libmongocrypt/libmongocrypt/src/{mlib → mc-mlib}/path.test.c +0 -0
- /data/ext/libmongocrypt/libmongocrypt/src/{mlib → mc-mlib}/str.test.c +0 -0
- /data/ext/libmongocrypt/libmongocrypt/src/{mlib → mc-mlib}/user-check.h +0 -0
- /data/ext/libmongocrypt/libmongocrypt/test/data/cleanup/success/{encrypted-payload-range-v2.json → encrypted-payload.json} +0 -0
- /data/ext/libmongocrypt/libmongocrypt/test/data/compact/success/{encrypted-payload-range-v2.json → encrypted-payload.json} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b049e3785ef7124bc0172a97aca5a01ac2c883998bf066bd399b23aaa6f7ab29
|
|
4
|
+
data.tar.gz: b993577d300b0aafe7bd074774829edbe4a54425a1bbe631cdfa6424d73abba7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7effe0b13cb6bdea52e7ae92e8ae7fb3ca8230936d95e128d5e11ee35964ec848e46691fd8342e594918915f268ff3b6fa9a924f65d3015c1c25b17e22fc6e6b
|
|
7
|
+
data.tar.gz: 4ee52e78b00238026409e733f629ab1067179909d20605c981cd7ce4229ed976ece08fd7f8b4db68645d33cbb571c3a04054e604d9ffbe7e7c5752a8bd98b23b
|
|
@@ -1,4 +1,127 @@
|
|
|
1
1
|
# ChangeLog
|
|
2
|
+
|
|
3
|
+
## 1.19.0
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- Stable support for prefix and suffix queries:
|
|
7
|
+
- The `prefixPreview` query type is replaced with `prefix`.
|
|
8
|
+
- The `suffixPreview` query type is replaced with `suffix`.
|
|
9
|
+
- Use the `string` algorithm (formerly `textPreview`) for `prefix`, `suffix`, and `substringPreview` query types.
|
|
10
|
+
|
|
11
|
+
### Removed
|
|
12
|
+
- Support for the experimental `prefixPreview` and `suffixPreview` query types.
|
|
13
|
+
|
|
14
|
+
## 1.18.1
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
- Fix QE text explicit encryption handling of `caseSensitive` and `diacriticSensitive` options.
|
|
18
|
+
- This is a backwards breaking bug fix, but only applies to the experimental QE text algorithm "TextPreview".
|
|
19
|
+
- Fix handling of malformed KMS replies.
|
|
20
|
+
|
|
21
|
+
## 1.18.0
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
- Signed binaries for macOS and Linux are now available on the GitHub release.
|
|
25
|
+
- Linux binaries including `nocrypto` in the name have no dependency on OpenSSL. Drivers using the `nocrypto` variant are expected to set crypto callbacks (e.g. call `mongocrypt_setopt_crypto_hooks`) to do operations requiring crypto to avoid an error.
|
|
26
|
+
- Drivers that package libmongocrypt binaries are encouraged to migrate release scripts to use these binaries.
|
|
27
|
+
- No reduction in platform support is expected. glibc dependencies were checked against existing builds on RHEL 6.2 and Ubuntu 16.04.
|
|
28
|
+
- Support referencing keys by `keyAltName` in `encryptedFieldsMap`.
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
|
|
32
|
+
- Final release packages in the PPA are now available by specifying `release` in the repository configuration in place of the major/minor version (e.g., `1.17`). Details in `README.md`.
|
|
33
|
+
- Bump downloaded libbson version from 2.1.0 to 2.3.0.
|
|
34
|
+
|
|
35
|
+
### Deprecated
|
|
36
|
+
- RHEL 6.2 builds are deprecated and may be removed in the future. The `linux-x86_64-glibc_2_7-nocrypto` release build may be used instead and has equivalent glibc requirements.
|
|
37
|
+
|
|
38
|
+
### Removed
|
|
39
|
+
|
|
40
|
+
- The configure-time CMake parameter `ENABLE_WINDOWS_STATIC_RUNTIME` has been
|
|
41
|
+
removed. Users that need the static MSVCRT library should instead set the
|
|
42
|
+
[`CMAKE_MSVC_RUNTIME_LIBRARY`][msvcrt] built-in CMake parameter when
|
|
43
|
+
configuring libmongocrypt.
|
|
44
|
+
- Packages for Debian 9 and Debian 10.
|
|
45
|
+
|
|
46
|
+
[msvcrt]: https://cmake.org/cmake/help/latest/variable/CMAKE_MSVC_RUNTIME_LIBRARY.html
|
|
47
|
+
|
|
48
|
+
## 1.17.3
|
|
49
|
+
|
|
50
|
+
### Fixed
|
|
51
|
+
|
|
52
|
+
- Fix check in KMIP parser.
|
|
53
|
+
|
|
54
|
+
## 1.17.2
|
|
55
|
+
|
|
56
|
+
### Fixed
|
|
57
|
+
|
|
58
|
+
- Fix build warning with GCC 16
|
|
59
|
+
|
|
60
|
+
## 1.17.1
|
|
61
|
+
|
|
62
|
+
Add package for Debian Trixie.
|
|
63
|
+
|
|
64
|
+
## 1.17.0
|
|
65
|
+
|
|
66
|
+
### New features
|
|
67
|
+
|
|
68
|
+
- Support mixing QE and unencrypted JSON schemas.
|
|
69
|
+
|
|
70
|
+
### Fixed
|
|
71
|
+
|
|
72
|
+
- Comply with CMake policy CMP0148 (use `FindPython` instead of `FindPythonInterp` and `FindPythonLibs`).
|
|
73
|
+
- Fix possible resource leak in Queryable Encryption.
|
|
74
|
+
|
|
75
|
+
## 1.16.0
|
|
76
|
+
|
|
77
|
+
### Changed
|
|
78
|
+
|
|
79
|
+
- Set CMake minimum required version to `3.15...4.0` (with maximum policy version set to `4.0`).
|
|
80
|
+
- `FetchContent_MakeAvailable()` is used to populate dependencies instead of `FetchContent_Populate()`.
|
|
81
|
+
- This applies to MongoDB C Driver when `MONGOCRYPT_MONGOC_DIR` is not set to `USE-SYSTEM`.
|
|
82
|
+
- This applies to IntelDFP when `MONGOCRYPT_DFP_DIR` is not set to `USE-SYSTEM`.
|
|
83
|
+
- Note: `FetchContent_Populate()` is still used for CMake versions prior to 3.18 to avoid `add_subdirectory()` behavior.
|
|
84
|
+
- Bump downloaded libbson version from 1.30.3 to 2.1.0.
|
|
85
|
+
|
|
86
|
+
### New features
|
|
87
|
+
- Support in-place retry on KMS requests.
|
|
88
|
+
|
|
89
|
+
### Fixed
|
|
90
|
+
- Do not propagate `-fPIC` in CMake targets.
|
|
91
|
+
|
|
92
|
+
## 1.15.2
|
|
93
|
+
|
|
94
|
+
### Fixed
|
|
95
|
+
- Rename internal headers to avoid conflicts building libmongocrypt and C driver together.
|
|
96
|
+
|
|
97
|
+
## 1.15.1
|
|
98
|
+
|
|
99
|
+
### Fixed
|
|
100
|
+
- Fix possible error when text options include multiple query types and are used for a find payload: `Text search query specification cannot contain multiple query type specifications`.
|
|
101
|
+
- Require setting contention for text options.
|
|
102
|
+
- Improve error message if text options are unset when using text algorithm.
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
## 1.15.0
|
|
106
|
+
|
|
107
|
+
### New features
|
|
108
|
+
- Support experimental Queryable Encryption text indexes with `cleanupStructuredEncryptionData` and `compactStructuredEncryptionData`.
|
|
109
|
+
- Support experimental explicit encryption for algorithm type: `textPreview` and query types: `prefixPreview`, `suffixPreview` and `substringPreview`
|
|
110
|
+
- Add `mongocrypt_setopt_algorithm_text` to apply options for explicit encryption.
|
|
111
|
+
|
|
112
|
+
### Fixed
|
|
113
|
+
- Bypass command `buildinfo` (previously only `buildInfo` was bypassed).
|
|
114
|
+
- Bypass command `serverStatus`.
|
|
115
|
+
|
|
116
|
+
### Removed
|
|
117
|
+
- Support for building with Visual Studio 2015. Use Visual Studio 2017 or newer.
|
|
118
|
+
|
|
119
|
+
## 1.14.1
|
|
120
|
+
### Fixed
|
|
121
|
+
- Fix possible missing error state on `mongocrypt_ctx_finalize`.
|
|
122
|
+
### Improvements
|
|
123
|
+
- Add Ubuntu 24.04 package.
|
|
124
|
+
|
|
2
125
|
## 1.14.0
|
|
3
126
|
### Fixed
|
|
4
127
|
- Fix building against libbson with extra alignment enabled (`ENABLE_EXTRA_ALIGNMENT=ON`).
|
|
@@ -6,6 +129,8 @@
|
|
|
6
129
|
### Improvements
|
|
7
130
|
- Improve performance of OpenSSL crypto operations.
|
|
8
131
|
- Improve error for incorrect path to crypt_shared library.
|
|
132
|
+
### New features
|
|
133
|
+
- Support experimental Queryable Encryption text indexes for automatic encryption.
|
|
9
134
|
|
|
10
135
|
## 1.13.2
|
|
11
136
|
### Notes
|
|
@@ -134,7 +259,7 @@ This release makes backwards breaking changes to Queryable Encryption (QE) behav
|
|
|
134
259
|
## Warnings
|
|
135
260
|
- This release has a severe bug in the context returned by `mongocrypt_ctx_rewrap_many_datakey_init` that may result in data corruption. Please upgrade to 1.5.2 before using `mongocrypt_ctx_rewrap_many_datakey_init`.
|
|
136
261
|
## Fixed
|
|
137
|
-
- Update to use new payload for FLE 2.0 find.
|
|
262
|
+
- Update to use new payload for FLE 2.0 find.
|
|
138
263
|
- Require contention factor.
|
|
139
264
|
## 1.5.0-rc2
|
|
140
265
|
### Fixed
|
|
@@ -154,7 +279,7 @@ This release makes backwards breaking changes to Queryable Encryption (QE) behav
|
|
|
154
279
|
## 1.5.0-rc0
|
|
155
280
|
## Fixed
|
|
156
281
|
- Account for shared library rename.
|
|
157
|
-
- Update to use new payload for FLE 2.0 find.
|
|
282
|
+
- Update to use new payload for FLE 2.0 find.
|
|
158
283
|
|
|
159
284
|
## 1.5.0-alpha2
|
|
160
285
|
## New Features
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
cmake_minimum_required (VERSION 3.
|
|
2
|
-
|
|
3
|
-
# Preempt the MSVC_RUNTIME_LIBRARY properties
|
|
4
|
-
if (POLICY CMP0091)
|
|
5
|
-
cmake_policy (SET CMP0091 NEW)
|
|
6
|
-
elseif (DEFINED CMAKE_MSVC_RUNTIME_LIBRARY)
|
|
7
|
-
message (WARNING "The CMAKE_MSVC_RUNTIME_LIBRARY variable is set, but CMake is too old to understand it")
|
|
8
|
-
endif ()
|
|
9
|
-
|
|
10
|
-
if (POLICY CMP0135)
|
|
11
|
-
cmake_policy (SET CMP0135 NEW)
|
|
12
|
-
endif ()
|
|
1
|
+
cmake_minimum_required (VERSION 3.15...4.0)
|
|
13
2
|
|
|
14
3
|
project (mongocrypt C)
|
|
15
4
|
|
|
@@ -26,21 +15,10 @@ option (ENABLE_PIC
|
|
|
26
15
|
option (ENABLE_BUILD_FOR_PPA "Maintainer-only option for preparing PPA build" OFF)
|
|
27
16
|
option (ENABLE_ONLINE_TESTS "Enable online tests and the csfle utility. Requires libmongoc." ON)
|
|
28
17
|
|
|
29
|
-
if (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
else ()
|
|
34
|
-
# Fix it up the old-fashioned way
|
|
35
|
-
string (REPLACE "/MDd" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
|
|
36
|
-
string (REPLACE "/MD" "" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
|
|
37
|
-
string (REPLACE "/MDd" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
|
38
|
-
string (REPLACE "/MD" "" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
|
|
39
|
-
string (APPEND CMAKE_C_FLAGS_DEBUG " /MTd")
|
|
40
|
-
string (APPEND CMAKE_CXX_FLAGS_DEBUG " /MTd")
|
|
41
|
-
string (APPEND CMAKE_C_FLAGS_RELEASE " /MT")
|
|
42
|
-
string (APPEND CMAKE_CXX_FLAGS_RELEASE " /MT")
|
|
43
|
-
endif ()
|
|
18
|
+
if (MINGW)
|
|
19
|
+
# MSVCRT-based mingw-w64 GCC requires this macro to enable C99 format specifiers. This does not apply to UCRT-based
|
|
20
|
+
# mingw-w64 GCC, but apply the workaround anyways until bson-compat.h no longer requires this.
|
|
21
|
+
add_compile_definitions ("__USE_MINGW_ANSI_STDIO=1")
|
|
44
22
|
endif ()
|
|
45
23
|
|
|
46
24
|
list (APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
|
|
@@ -121,6 +99,7 @@ set (MONGOCRYPT_SOURCES
|
|
|
121
99
|
src/mc-range-mincover.c
|
|
122
100
|
src/mc-range-encoding.c
|
|
123
101
|
src/mc-rangeopts.c
|
|
102
|
+
src/mc-textopts.c
|
|
124
103
|
src/mc-reader.c
|
|
125
104
|
src/mc-schema-broker.c
|
|
126
105
|
src/mc-str-encode-string-sets.c
|
|
@@ -201,12 +180,6 @@ else ()
|
|
|
201
180
|
message (FATAL_ERROR "Unknown crypto provider ${MONGOCRYPT_CRYPTO}")
|
|
202
181
|
endif ()
|
|
203
182
|
|
|
204
|
-
set (MONGOCRYPT_ENABLE_TRACE 0)
|
|
205
|
-
if (ENABLE_TRACE)
|
|
206
|
-
message (WARNING "Building with trace logging. This is highly insecure. Do not use in a production environment")
|
|
207
|
-
set (MONGOCRYPT_ENABLE_TRACE 1)
|
|
208
|
-
endif ()
|
|
209
|
-
|
|
210
183
|
set (BUILD_VERSION "0.0.0" CACHE STRING "Library version")
|
|
211
184
|
if (BUILD_VERSION STREQUAL "0.0.0")
|
|
212
185
|
if (EXISTS ${CMAKE_BINARY_DIR}/VERSION_CURRENT)
|
|
@@ -215,10 +188,10 @@ if (BUILD_VERSION STREQUAL "0.0.0")
|
|
|
215
188
|
file (STRINGS ${PROJECT_SOURCE_DIR}/VERSION_CURRENT BUILD_VERSION)
|
|
216
189
|
message (STATUS "File VERSION_CURRENT contained BUILD_VERSION ${BUILD_VERSION}")
|
|
217
190
|
else ()
|
|
218
|
-
find_package (
|
|
219
|
-
if (
|
|
191
|
+
find_package (Python COMPONENTS Interpreter)
|
|
192
|
+
if (TARGET Python::Interpreter)
|
|
220
193
|
execute_process (
|
|
221
|
-
COMMAND ${
|
|
194
|
+
COMMAND "${Python_EXECUTABLE}" etc/calc_release_version.py
|
|
222
195
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
|
223
196
|
OUTPUT_VARIABLE CALC_RELEASE_VERSION
|
|
224
197
|
RESULT_VARIABLE CALC_RELEASE_VERSION_RESULT
|
|
@@ -256,22 +229,22 @@ configure_file (
|
|
|
256
229
|
"${PROJECT_BINARY_DIR}/src/mongocrypt-config.h"
|
|
257
230
|
)
|
|
258
231
|
|
|
259
|
-
# Define the mlib target, which is private and header-only. It is not exported
|
|
232
|
+
# Define the mc-mlib target, which is private and header-only. It is not exported
|
|
260
233
|
# nor are its headers installed.
|
|
261
|
-
add_library (_mongo-mlib INTERFACE)
|
|
262
|
-
add_library (mongo::mlib ALIAS _mongo-mlib)
|
|
263
|
-
list (APPEND
|
|
234
|
+
add_library (_mongo-mc-mlib INTERFACE)
|
|
235
|
+
add_library (mongo::mc-mlib ALIAS _mongo-mc-mlib)
|
|
236
|
+
list (APPEND MCMLIB_DEFINITIONS MLIB_USER)
|
|
264
237
|
CHECK_INCLUDE_FILE (strings.h HAVE_STRINGS_H)
|
|
265
238
|
if (HAVE_STRINGS_H)
|
|
266
|
-
list (APPEND
|
|
239
|
+
list (APPEND MCMLIB_DEFINITIONS MLIB_HAVE_STRINGS_H)
|
|
267
240
|
endif ()
|
|
268
241
|
set_property(
|
|
269
|
-
TARGET _mongo-mlib
|
|
242
|
+
TARGET _mongo-mc-mlib
|
|
270
243
|
APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS
|
|
271
|
-
${
|
|
244
|
+
${MCMLIB_DEFINITIONS}
|
|
272
245
|
)
|
|
273
246
|
set_property(
|
|
274
|
-
TARGET _mongo-mlib
|
|
247
|
+
TARGET _mongo-mc-mlib
|
|
275
248
|
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
|
276
249
|
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>"
|
|
277
250
|
)
|
|
@@ -294,7 +267,7 @@ target_link_libraries (
|
|
|
294
267
|
PRIVATE
|
|
295
268
|
_mongocrypt::libbson_for_shared
|
|
296
269
|
kms_message_static
|
|
297
|
-
$<BUILD_INTERFACE:mongo::mlib>
|
|
270
|
+
$<BUILD_INTERFACE:mongo::mc-mlib>
|
|
298
271
|
PUBLIC
|
|
299
272
|
mongocrypt::platform
|
|
300
273
|
${maybe_dfp_library}
|
|
@@ -328,7 +301,7 @@ add_library (mongocrypt_static STATIC ${MONGOCRYPT_SOURCES})
|
|
|
328
301
|
# the common case that users are setting -DCMAKE_C_FLAGS='-fPIC'
|
|
329
302
|
string (FIND "${CMAKE_C_FLAGS}" "-fPIC" FPIC_LOCATION)
|
|
330
303
|
if (NOT WIN32 AND ENABLE_PIC AND "${FPIC_LOCATION}" EQUAL "-1")
|
|
331
|
-
|
|
304
|
+
set_property (TARGET mongocrypt_static PROPERTY POSITION_INDEPENDENT_CODE TRUE)
|
|
332
305
|
message ("Adding -fPIC to compilation of mongocrypt_static components")
|
|
333
306
|
endif ()
|
|
334
307
|
target_include_directories (
|
|
@@ -350,7 +323,7 @@ target_link_libraries (
|
|
|
350
323
|
PRIVATE
|
|
351
324
|
_mongocrypt::libbson_for_static
|
|
352
325
|
kms_message_static
|
|
353
|
-
$<BUILD_INTERFACE:mongo::mlib>
|
|
326
|
+
$<BUILD_INTERFACE:mongo::mc-mlib>
|
|
354
327
|
PUBLIC
|
|
355
328
|
mongocrypt::platform
|
|
356
329
|
${maybe_dfp_library}
|
|
@@ -483,6 +456,7 @@ set (TEST_MONGOCRYPT_SOURCES
|
|
|
483
456
|
test/test-mc-range-edge-generation.c
|
|
484
457
|
test/test-mc-range-mincover.c
|
|
485
458
|
test/test-mc-rangeopts.c
|
|
459
|
+
test/test-mc-textopts.c
|
|
486
460
|
test/test-mc-reader.c
|
|
487
461
|
test/test-mc-text-search-str-encode.c
|
|
488
462
|
test/test-mc-schema-broker.c
|
|
@@ -525,11 +499,13 @@ set (TEST_MONGOCRYPT_SOURCES
|
|
|
525
499
|
test/test-unicode-fold.c
|
|
526
500
|
)
|
|
527
501
|
|
|
502
|
+
if (BUILD_TESTING)
|
|
503
|
+
|
|
528
504
|
# Define test-mongocrypt
|
|
529
505
|
add_executable (test-mongocrypt ${TEST_MONGOCRYPT_SOURCES})
|
|
530
506
|
# Use the static version since it allows the test binary to use private symbols
|
|
531
507
|
target_include_directories (test-mongocrypt PRIVATE ./src "${CMAKE_CURRENT_SOURCE_DIR}/kms-message/src")
|
|
532
|
-
target_link_libraries (test-mongocrypt PRIVATE _mongocrypt::libbson_for_static mongocrypt_static mongo::mlib)
|
|
508
|
+
target_link_libraries (test-mongocrypt PRIVATE _mongocrypt::libbson_for_static mongocrypt_static mongo::mc-mlib)
|
|
533
509
|
target_include_directories (test-mongocrypt PRIVATE "${CMAKE_CURRENT_LIST_DIR}/test")
|
|
534
510
|
target_compile_definitions (test-mongocrypt PRIVATE
|
|
535
511
|
# Set a definition so that testcases can know where test-mongocrypt.exe was written to
|
|
@@ -547,9 +523,9 @@ add_test (
|
|
|
547
523
|
)
|
|
548
524
|
|
|
549
525
|
foreach (test IN ITEMS path str)
|
|
550
|
-
add_executable (mlib.${test}.test src/mlib/${test}.test.c)
|
|
526
|
+
add_executable (mlib.${test}.test src/mc-mlib/${test}.test.c)
|
|
551
527
|
add_test (mlib.${test} mlib.${test}.test)
|
|
552
|
-
target_link_libraries (mlib.${test}.test PRIVATE mongo::mlib)
|
|
528
|
+
target_link_libraries (mlib.${test}.test PRIVATE mongo::mc-mlib)
|
|
553
529
|
endforeach ()
|
|
554
530
|
|
|
555
531
|
if ("cxx_relaxed_constexpr" IN_LIST CMAKE_CXX_COMPILE_FEATURES)
|
|
@@ -567,7 +543,7 @@ if ("cxx_relaxed_constexpr" IN_LIST CMAKE_CXX_COMPILE_FEATURES)
|
|
|
567
543
|
target_compile_features ("${exe_name}" PRIVATE cxx_relaxed_constexpr)
|
|
568
544
|
target_link_libraries ("${exe_name}" PRIVATE
|
|
569
545
|
mongocrypt
|
|
570
|
-
mongo::mlib
|
|
546
|
+
mongo::mc-mlib
|
|
571
547
|
${maybe_dfp_library}
|
|
572
548
|
_mongocrypt::libbson_for_static
|
|
573
549
|
)
|
|
@@ -575,9 +551,11 @@ if ("cxx_relaxed_constexpr" IN_LIST CMAKE_CXX_COMPILE_FEATURES)
|
|
|
575
551
|
endforeach ()
|
|
576
552
|
endif ()
|
|
577
553
|
|
|
554
|
+
endif () # BUILD_TESTING
|
|
555
|
+
|
|
578
556
|
if ("cxx_std_20" IN_LIST CMAKE_CXX_COMPILE_FEATURES)
|
|
579
557
|
add_executable (csfle-markup src/csfle-markup.cpp)
|
|
580
|
-
target_link_libraries (csfle-markup PRIVATE mongocrypt_static _mongocrypt::libbson_for_static mongo::mlib)
|
|
558
|
+
target_link_libraries (csfle-markup PRIVATE mongocrypt_static _mongocrypt::libbson_for_static mongo::mc-mlib)
|
|
581
559
|
target_compile_features (csfle-markup PRIVATE cxx_std_20)
|
|
582
560
|
endif ()
|
|
583
561
|
|
|
@@ -628,8 +606,8 @@ install (
|
|
|
628
606
|
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
|
629
607
|
)
|
|
630
608
|
|
|
631
|
-
# This export set is not installed, and is only to allow export() of the mlib-using targets
|
|
632
|
-
install (TARGETS _mongo-mlib EXPORT _exports_for_export)
|
|
609
|
+
# This export set is not installed, and is only to allow export() of the mc-mlib-using targets
|
|
610
|
+
install (TARGETS _mongo-mc-mlib EXPORT _exports_for_export)
|
|
633
611
|
export (EXPORT _exports_for_export)
|
|
634
612
|
|
|
635
613
|
install (
|
|
@@ -644,11 +622,11 @@ install (
|
|
|
644
622
|
set (PROJECT_VERSION "${BUILD_VERSION}")
|
|
645
623
|
set (PROJECT_DESCRIPTION "The libmongocrypt client-side field level encryption library.")
|
|
646
624
|
if (NOT ENABLE_BUILD_FOR_PPA)
|
|
647
|
-
set (PKG_CONFIG_STATIC_REQUIRES "
|
|
625
|
+
set (PKG_CONFIG_STATIC_REQUIRES "bson2-static")
|
|
648
626
|
endif ()
|
|
649
627
|
if (USE_SHARED_LIBBSON)
|
|
650
|
-
set (PKG_CONFIG_REQUIRES "
|
|
651
|
-
set (PKG_CONFIG_STATIC_REQUIRES "
|
|
628
|
+
set (PKG_CONFIG_REQUIRES "bson2")
|
|
629
|
+
set (PKG_CONFIG_STATIC_REQUIRES "bson2")
|
|
652
630
|
endif ()
|
|
653
631
|
set (PKG_CONFIG_LIBDIR "\${prefix}/${CMAKE_INSTALL_LIBDIR}")
|
|
654
632
|
set (PKG_CONFIG_INCLUDEDIR "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}/mongocrypt")
|