Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2622

TLS OpenSSL library: ensure capacity values match given capacity

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-c-0.38.0
    • proton-c-0.38.0
    • proton-c
    • None

    Description

       pn_tls_get_encrypt/decrypt_input_buffer_capacity() unconditionally return the number of empty buffer slots.

      However pn_tls_give_encrypt/decrypt_input_buffers() checks the state of the tls session and can take zero buffers even though get capacity returned > 0.

      In this case the application will have to "unwind" any buffer allocation/setup work it did expecting there was capacity available.

      Attachments

        Activity

          People

            cliffjansen Clifford Jansen
            kgiusti Ken Giusti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: