CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]   2019/02/28 10:56:44

Modified files:
        lib/libssl     : tls13_handshake.c tls13_internal.h tls13_lib.c 

Log message:
Automatically complete the handshake from tls13_legacy_{read,write}_bytes()

If the TLS handshake has not been completed, automatically complete the
handshake as part of the read/write call, implementing the current
SSL_read()/SSL_write() behaviour.

Once the TLS handshake is completed we push a WANT_POLLIN or WANT_POLLOUT
back up to the caller, since some applications appear to incorrectly call
SSL_read() or SSL_write(), rather than repeating the previous call. This
can lead to attempts to read data that does not exist, since the
WANT_POLLIN was actually triggered as part of the handshake.

ok inoguchi@ tb@

Reply via email to