[MONGOCRYPT-349] Add a uint8_t type for expandable byte storage Created: 16/Oct/21  Updated: 25/Oct/22

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

Type: Improvement Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: techdebt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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

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