Skip to content

Commit e7be836

Browse files
authored
PYTHON-5640 Bundle libmongocrypt 1.17.0 (#1096)
1 parent 65ebd4f commit e7be836

File tree

4 files changed

+29
-11
lines changed

4 files changed

+29
-11
lines changed

bindings/python/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ python scripts/update_binding.py
2222
To update the bundled version of libmongocrypt, run the following script:
2323

2424
```bash
25-
bash script/update-version.sh <new-version>
25+
bash scripts/update-version.sh <new-version>
2626
```
2727

2828
This will set the version in `scripts/libmongocrypt-version.sh` and update `sbom.json` to reflect

bindings/python/pymongocrypt/binding.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ def _parse_version(version):
260260
MONGOCRYPT_LOG_LEVEL_ERROR = 1,
261261
MONGOCRYPT_LOG_LEVEL_WARNING = 2,
262262
MONGOCRYPT_LOG_LEVEL_INFO = 3,
263+
MONGOCRYPT_LOG_LEVEL_TRACE = 4
263264
} mongocrypt_log_level_t;
264265
265266
/**
@@ -1133,7 +1134,24 @@ def _parse_version(version):
11331134
bool mongocrypt_kms_ctx_feed(mongocrypt_kms_ctx_t *kms, mongocrypt_binary_t *bytes);
11341135
11351136
/**
1136-
* Indicate a network-level failure.
1137+
* Feed bytes from the KMS response.
1138+
*
1139+
* Feeding more bytes than what has been returned in @ref
1140+
* mongocrypt_kms_ctx_bytes_needed is an error.
1141+
*
1142+
* @param[in] kms The @ref mongocrypt_kms_ctx_t.
1143+
* @param[in] bytes The bytes to feed. The viewed data is copied. It is valid to
1144+
* destroy @p bytes with @ref mongocrypt_binary_destroy immediately after.
1145+
* @param[out] should_retry Whether the KMS request should be retried. Retry in-place
1146+
* without calling @ref mongocrypt_kms_ctx_fail.
1147+
* @returns A boolean indicating success. If false, an error status is set.
1148+
* Retrieve it with @ref mongocrypt_kms_ctx_status
1149+
*/
1150+
bool mongocrypt_kms_ctx_feed_with_retry(mongocrypt_kms_ctx_t *kms, mongocrypt_binary_t *bytes, bool *should_retry);
1151+
1152+
/**
1153+
* Indicate a network error. Discards all data fed to this KMS context with @ref mongocrypt_kms_ctx_feed.
1154+
* The @ref mongocrypt_kms_ctx_t may be reused.
11371155
*
11381156
* @param[in] kms The @ref mongocrypt_kms_ctx_t.
11391157
* @return A boolean indicating whether the failed request may be retried.

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.15.1",
4+
"bom-ref": "pkg:github/mongodb/libmongocrypt@1.17.0",
55
"externalReferences": [
66
{
77
"type": "distribution",
8-
"url": "https://github.com/mongodb/libmongocrypt/archive/1.15.1.tar.gz"
8+
"url": "https://github.com/mongodb/libmongocrypt/archive/refs/tags/1.17.0.tar.gz"
99
},
1010
{
1111
"type": "website",
12-
"url": "https://github.com/mongodb/libmongocrypt/tree/1.15.1"
12+
"url": "https://github.com/mongodb/libmongocrypt/tree/1.17.0"
1313
}
1414
],
1515
"group": "mongodb",
1616
"name": "libmongocrypt",
17-
"purl": "pkg:github/mongodb/libmongocrypt@1.15.1",
17+
"purl": "pkg:github/mongodb/libmongocrypt@1.17.0",
1818
"type": "library",
19-
"version": "1.15.1"
19+
"version": "1.17.0"
2020
}
2121
],
2222
"dependencies": [
2323
{
24-
"ref": "pkg:github/mongodb/libmongocrypt@1.15.1"
24+
"ref": "pkg:github/mongodb/libmongocrypt@1.17.0"
2525
}
2626
],
2727
"metadata": {
28-
"timestamp": "2025-08-20T16:31:16.275568+00:00",
28+
"timestamp": "2025-11-18T15:04:33.207498+00:00",
2929
"tools": [
3030
{
3131
"externalReferences": [
@@ -68,7 +68,7 @@
6868
}
6969
]
7070
},
71-
"serialNumber": "urn:uuid:198741f4-51bf-4d57-a447-fc3217294b87",
71+
"serialNumber": "urn:uuid:4884d162-e375-43fe-898f-2e743c74d1d3",
7272
"version": 1,
7373
"$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
7474
"bomFormat": "CycloneDX",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.15.1
1+
1.17.0

0 commit comments

Comments
 (0)