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

Add a uint8_t type for expandable byte storage

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None

    Description

      Background & Motivation

      See this thread for context. The kms_request_str_t is used as byte storage in kms_kmip_response_parser_t. Using kms_request_str_t for arbitrary byte storage mixes intentions. It stores a char* but kms_kmip_response_parser requires casting to a uint8_t*. And kms_request_str_t NULL terminates the stored str, which does not apply to byte storage.

      Scope

      • Create a new kms_buffer_t which supports appending.
      • Replace the use of kms_request_str in kms_response_parser_t with kms_buffer_t

      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: