Skip to content

Conversation

@kevinAlbs
Copy link
Collaborator

@kevinAlbs kevinAlbs commented May 28, 2025

Cherry-pick of 1b0e008 to r2.0.

Only bug fixes are expected to be backported. This change is less of a bug fix, but is expected to be needed for CDRIVER-4269 (which is intended to be backported too).

Tested with this patch build: https://spruce.mongodb.com/version/6837729e811623000746ea1b

* add helper to convert Windows error to string: `mongoc_winerr_to_string`

* use SECURITY_STATUS for error message

Improves observed "Incorrect function" error with a more informative "The client and server cannot communicate, because they do not possess a common algorithm."

* use `bson_strerror_r` for consistency between Windows / non-Windows
@kevinAlbs kevinAlbs requested a review from mdb-ad May 28, 2025 19:50
@kevinAlbs kevinAlbs requested a review from a team as a code owner May 28, 2025 19:50
@kevinAlbs kevinAlbs merged commit 73b9009 into mongodb:r2.0 May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants