Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2429

Factor libbson and libmongoc base64 code

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.10.0
    • Affects Version/s: None
    • Component/s: libbson, libmongoc
    • None

      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.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: