Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bindings/python/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ python scripts/update_binding.py
To update the bundled version of libmongocrypt, run the following script:

```bash
bash script/update-version.sh <new-version>
bash scripts/update-version.sh <new-version>
```

This will set the version in `scripts/libmongocrypt-version.sh` and update `sbom.json` to reflect
Expand Down
20 changes: 19 additions & 1 deletion bindings/python/pymongocrypt/binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ def _parse_version(version):
MONGOCRYPT_LOG_LEVEL_ERROR = 1,
MONGOCRYPT_LOG_LEVEL_WARNING = 2,
MONGOCRYPT_LOG_LEVEL_INFO = 3,
MONGOCRYPT_LOG_LEVEL_TRACE = 4
} mongocrypt_log_level_t;

/**
Expand Down Expand Up @@ -1133,7 +1134,24 @@ def _parse_version(version):
bool mongocrypt_kms_ctx_feed(mongocrypt_kms_ctx_t *kms, mongocrypt_binary_t *bytes);

/**
* Indicate a network-level failure.
* Feed bytes from the KMS response.
*
* Feeding more bytes than what has been returned in @ref
* mongocrypt_kms_ctx_bytes_needed is an error.
*
* @param[in] kms The @ref mongocrypt_kms_ctx_t.
* @param[in] bytes The bytes to feed. The viewed data is copied. It is valid to
* destroy @p bytes with @ref mongocrypt_binary_destroy immediately after.
* @param[out] should_retry Whether the KMS request should be retried. Retry in-place
* without calling @ref mongocrypt_kms_ctx_fail.
* @returns A boolean indicating success. If false, an error status is set.
* Retrieve it with @ref mongocrypt_kms_ctx_status
*/
bool mongocrypt_kms_ctx_feed_with_retry(mongocrypt_kms_ctx_t *kms, mongocrypt_binary_t *bytes, bool *should_retry);

/**
* Indicate a network error. Discards all data fed to this KMS context with @ref mongocrypt_kms_ctx_feed.
* The @ref mongocrypt_kms_ctx_t may be reused.
*
* @param[in] kms The @ref mongocrypt_kms_ctx_t.
* @return A boolean indicating whether the failed request may be retried.
Expand Down
16 changes: 8 additions & 8 deletions bindings/python/sbom.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
{
"components": [
{
"bom-ref": "pkg:github/mongodb/libmongocrypt@1.15.1",
"bom-ref": "pkg:github/mongodb/libmongocrypt@1.17.0",
"externalReferences": [
{
"type": "distribution",
"url": "https://github.com/mongodb/libmongocrypt/archive/1.15.1.tar.gz"
"url": "https://github.com/mongodb/libmongocrypt/archive/refs/tags/1.17.0.tar.gz"
},
{
"type": "website",
"url": "https://github.com/mongodb/libmongocrypt/tree/1.15.1"
"url": "https://github.com/mongodb/libmongocrypt/tree/1.17.0"
}
],
"group": "mongodb",
"name": "libmongocrypt",
"purl": "pkg:github/mongodb/libmongocrypt@1.15.1",
"purl": "pkg:github/mongodb/libmongocrypt@1.17.0",
"type": "library",
"version": "1.15.1"
"version": "1.17.0"
}
],
"dependencies": [
{
"ref": "pkg:github/mongodb/libmongocrypt@1.15.1"
"ref": "pkg:github/mongodb/libmongocrypt@1.17.0"
}
],
"metadata": {
"timestamp": "2025-08-20T16:31:16.275568+00:00",
"timestamp": "2025-11-18T15:04:33.207498+00:00",
"tools": [
{
"externalReferences": [
Expand Down Expand Up @@ -68,7 +68,7 @@
}
]
},
"serialNumber": "urn:uuid:198741f4-51bf-4d57-a447-fc3217294b87",
"serialNumber": "urn:uuid:4884d162-e375-43fe-898f-2e743c74d1d3",
"version": 1,
"$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
"bomFormat": "CycloneDX",
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/scripts/libmongocrypt-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.15.1
1.17.0
Loading