ClientEncryption::decrypt() should expect Binary parameter instead of BinaryInterface

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Unknown
    • None
    • Affects Version/s: 1.7.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This ClientEncryption::decrypt method expects a BinaryInterface, although the documentation has only ever stated that a Binary is expected. BinaryInterface doesn't actually make sense, as the internal code doesn't call any of its methods and instead relies on the object converting to a binary bson_value_t. That is problematic as there is no guarantee that a BinaryInterface will serialize as such.

      This dates back to f0372a5 for PHPC-1499.

            Assignee:
            Unassigned
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: