Factor libbson and libmongoc base64 code

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.10.0
    • Affects Version/s: None
    • Component/s: libbson, libmongoc
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: