[MONGOCRYPT-338] Add a status in KMS message Created: 06/Oct/21  Updated: 18/Oct/21  Resolved: 18/Oct/21

Status: Closed
Project: Libmongocrypt
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Motivation & Background

An error in constructing or modifying a kms_request_t can be obtained by calling:

KMS_MSG_EXPORT (const char *)
kms_request_get_error (kms_request_t *request);

An error in constructing or using a kms_response_parser_t can be obtained by calling:

KMS_MSG_EXPORT (const char *)
kms_response_parser_error (kms_response_parser_t *parser);

There is no API to obtain error messages from a kms_response_t.

Error reporting is currently limited to a string. An opaque error type, similar to libmongocrypt's mongocrypt_status_t, permits future extension.

Scope
Add an opaque error type, similar to libmongocrypt's mongocrypt_status_t. It will be used in new API introduced in KMIP support.


Generated at Thu Feb 08 09:08:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.