Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-97541

Change _new_from_buffer* calling arguments to const

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security

      MONGOCRYPT-705 changes `mc_#Token_new_from_buffer()` and `mc_#Token_new_from_buffer_copy` to take in a const argument as the implementations only use the argument as const.

      For correctness, we should change calls to these functions in the server code to pass through const buffers as well. This is blocked by updating libmongocrypt to the next minor version (after function argument changes are made). The attached patch should be all that's needed in the server.

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

              Created:
              Updated: