[CDRIVER-2429] Factor libbson and libmongoc base64 code Created: 14/Dec/17  Updated: 28/Oct/23  Resolved: 11/May/18

Status: Closed
Project: C Driver
Component/s: libbson, libmongoc
Affects Version/s: None
Fix Version/s: 1.10.0

Type: Improvement Priority: Minor - P4
Reporter: A. Jesse Jiryu Davis Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causes CDRIVER-2693 Segfault in bson_b64_pton parsing val... Closed
Related
is related to CDRIVER-508 Can't compile, static and non-static ... Closed
Epic Link: Merge libbson repository into mongo-c-driver

 Description   

mongoc-b64.c, b64_pton.h, and b64_ntop.h share a lot of code. Furthermore there are three identical declarations of the static "Base64" symbol. Data shouldn't be in a header, since then the header can't be included by more than on C file. Let's clean all this up and make libbson functions that do whatever we need with Base 64 encoding and decoding.



 Comments   
Comment by Githook User [ 11/May/18 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@10gen.com', 'username': 'kevinAlbs'}

Message: CDRIVER-2429 factor base64 code
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/e5fe2c7b7127ad394d63a536b72b9415951e22e3

Generated at Wed Feb 07 21:15:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.