Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SSL_pending() and SSL_has_pending() with DTLS (1.1.1) #18976

Commits on Aug 10, 2022

  1. Fix SSL_pending() and SSL_has_pending() with DTLS

    If app data is received before a Finished message in DTLS then we buffer
    it to return later. The function SSL_pending() is supposed to tell you
    how much processed app data we have already buffered, and SSL_has_pending()
    is supposed to tell you if we have any data buffered (whether processed or
    not, and whether app data or not).
    
    Neither SSL_pending() or SSL_has_pending() were taking account of this
    DTLS specific app data buffer.
    mattcaswell committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    0c0f998 View commit details
    Browse the repository at this point in the history
  2. Test that swapping the first app data record with Finished msg works

    If the first app data record arrives before the Finished message we should
    be able to buffer it and move on to the Finished message.
    mattcaswell committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    94ed370 View commit details
    Browse the repository at this point in the history