[CXX-2063] options::encrypt::key_id() should take a bson_value Created: 02/Jul/20  Updated: 28/Oct/23  Resolved: 08/Jul/20

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 3.6.0-rc0, 3.6.0

Type: Improvement Priority: Major - P3
Reporter: Samantha Ritter (Inactive) Assignee: Samantha Ritter (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Client Side Encryption (FLE)

 Description   

Currently, this method takes a bsoncxx::types::b_binary, which is a non-owning type.  The user is then responsible for managing the lifetime of the binary and ensuring that it outlives the options::encrypt instance.  Let's change this method to take a bson_value, which can own its own memory.



 Comments   
Comment by Githook User [ 08/Jul/20 ]

Author:

{'name': 'samantharitter', 'email': 'samantha.ritter@10gen.com', 'username': 'samantharitter'}

Message: CXX-2063 options::encrypt::key_id takes a bson_value::view_or_value
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/510d2b0c04d1103bd1252088cda78522346b1f25

Comment by Githook User [ 08/Jul/20 ]

Author:

{'name': 'samantharitter', 'email': 'samantha.ritter@10gen.com', 'username': 'samantharitter'}

Message: CXX-2063 implement bson_value::view_or_value
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/de8670605355dc750e74dc84a243c6db231cbff5

Comment by Samantha Ritter (Inactive) [ 08/Jul/20 ]

code review: https://github.com/mongodb/mongo-cxx-driver/pull/687

Generated at Wed Feb 07 22:04:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.