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

Add _mongocrypt_buffer_from_value helper

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Certain tokens require data in the form of a `_mongocrypt_buffer_t` to be passed through upon initialization. As part of SERVER-96316, this is handled in the token refactor by using a `LibBSONValue` as an argument. However, `LibBSONValue` holds a `bson_value_t`, making it difficult to convert to `_mongocrypt_buffer_t` using current functions

      A helper function `_mongocrypt_buffer_from_value` will make this process easier for the server team. This function will be very similar to `_mongocrypt_buffer_from_iter`

            Assignee:
            josh.siegel@mongodb.com Josh Siegel
            Reporter:
            josh.siegel@mongodb.com Josh Siegel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: