Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-2108

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

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: 1.7.0
    • Component/s: 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 Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: