Skip to content

Commit 11075c0

Browse files
committed
Update binding + sbom
1 parent 0cfdf25 commit 11075c0

2 files changed

Lines changed: 22 additions & 16 deletions

File tree

bindings/python/pymongocrypt/binding.py

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _parse_version(version):
3131

3232
# Start embedding from update_binding.py
3333
ffi.cdef(
34-
"""
34+
"""
3535
/*
3636
* Copyright 2019-present MongoDB, Inc.
3737
*
@@ -431,6 +431,10 @@ def _parse_version(version):
431431
* the path string is literal "$SYSTEM", then libmongocrypt will defer to the
432432
* system's library resolution mechanism to find the crypt_shared library.
433433
*
434+
* @warning Use of "$SYSTEM" will search system directories for the
435+
* mongo_crypt_v1.(dll,so,dylib) following the search behavior of LoadLibrary
436+
* on Windows and dlopen on Unix. Ensure secure deployment of the library.
437+
*
434438
* @note If no crypt_shared dynamic library is found in any of the directories
435439
* specified by the search paths loaded here, @ref mongocrypt_init() will still
436440
* succeed and continue to operate without crypt_shared.
@@ -687,7 +691,8 @@ def _parse_version(version):
687691
/// String constant for setopt_algorithm "Indexed" explicit encryption
688692
/// String constant for setopt_algorithm "Unindexed" explicit encryption
689693
// DEPRECATED: support "RangePreview" has been removed in favor of "range".
690-
/// NOTE: "textPreview" is experimental only and may be removed in a future non-major release.
694+
/// DEPRECATED: "textPreview" has been removed. Use "string".
695+
// String constant for setopt_algorithm "string" explicit encryption.
691696
692697
/**
693698
* Identify the AWS KMS master key to use for creating a data key.
@@ -1485,9 +1490,8 @@ def _parse_version(version):
14851490
bool mongocrypt_ctx_setopt_algorithm_range(mongocrypt_ctx_t *ctx, mongocrypt_binary_t *opts);
14861491
14871492
/**
1488-
* Set options for explicit encryption with the "textPreview" algorithm.
1493+
* Set options for explicit encryption with the "string" algorithm.
14891494
*
1490-
* NOTE: "textPreview" is experimental only and may be removed in a future non-major release.
14911495
* @p opts is a BSON document of the form:
14921496
* {
14931497
* "caseSensitive": bool,
@@ -1508,6 +1512,8 @@ def _parse_version(version):
15081512
* }
15091513
*
15101514
* "prefix" and "suffix" can both be set.
1515+
*
1516+
* NOTE: Driver public APIs should use the name "string" rather than "text" to refer to options.
15111517
*/
15121518
bool mongocrypt_ctx_setopt_algorithm_text(mongocrypt_ctx_t *ctx, mongocrypt_binary_t *opts);
15131519
@@ -1522,9 +1528,9 @@ def _parse_version(version):
15221528
15231529
/// String constants for setopt_query_type
15241530
// DEPRECATED: Support "rangePreview" has been removed in favor of "range".
1525-
/// NOTE: "substringPreview" is experimental and may be removed in a future non-major release.
1526-
/// NOTE: "suffixPreview" is experimental and may be removed in a future non-major release.
1527-
/// NOTE: "prefixPreview" is experimental and may be removed in a future non-major release.
1531+
/// DEPRECATED: Support for "substringPreview" has been removed in favor of "substring"
1532+
/// DEPRECATED: Support for "suffixPreview" has been removed in favor of "suffix"
1533+
/// DEPRECATED: Support for "prefixPreview" has been removed in favor of "suffix"
15281534
15291535
"""
15301536
)
@@ -1587,4 +1593,4 @@ def __getattr__(self, name):
15871593
exc = RuntimeError(
15881594
f"Expected libmongocrypt version %s or greater, found {_MIN_LIBMONGOCRYPT_VERSION, libmongocrypt_version()}"
15891595
)
1590-
lib = _Library(exc)
1596+
lib = _Library(exc)

bindings/python/sbom.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
{
22
"components": [
33
{
4-
"bom-ref": "pkg:github/mongodb/libmongocrypt@1.18.2",
4+
"bom-ref": "pkg:github/mongodb/libmongocrypt@1.19.2",
55
"externalReferences": [
66
{
77
"type": "distribution",
8-
"url": "https://github.com/mongodb/libmongocrypt/archive/1.18.2.tar.gz"
8+
"url": "https://github.com/mongodb/libmongocrypt/archive/1.19.2.tar.gz"
99
},
1010
{
1111
"type": "website",
12-
"url": "https://github.com/mongodb/libmongocrypt/tree/1.18.2"
12+
"url": "https://github.com/mongodb/libmongocrypt/tree/1.19.2"
1313
}
1414
],
1515
"group": "mongodb",
1616
"name": "libmongocrypt",
17-
"purl": "pkg:github/mongodb/libmongocrypt@1.18.2",
17+
"purl": "pkg:github/mongodb/libmongocrypt@1.19.2",
1818
"type": "library",
19-
"version": "1.18.2"
19+
"version": "1.19.2"
2020
}
2121
],
2222
"dependencies": [
2323
{
24-
"ref": "pkg:github/mongodb/libmongocrypt@1.18.2"
24+
"ref": "pkg:github/mongodb/libmongocrypt@1.19.2"
2525
}
2626
],
2727
"metadata": {
28-
"timestamp": "2026-06-03T00:00:00.000000+00:00",
28+
"timestamp": "2026-06-29T17:46:51.730092+00:00",
2929
"tools": [
3030
{
3131
"externalReferences": [
@@ -68,7 +68,7 @@
6868
}
6969
]
7070
},
71-
"serialNumber": "urn:uuid:fb7d4662-fe2d-495c-944f-034982ccc517",
71+
"serialNumber": "urn:uuid:d882082d-f7f7-45a6-a098-89a7e390681e",
7272
"version": 1,
7373
"$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
7474
"bomFormat": "CycloneDX",

0 commit comments

Comments
 (0)