Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-338

Add a status in KMS message

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: