Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing ACCESS_SESSION_ESTABLISH failure event
When the handshake failure event fails it should fire an audit event for ACCESS_SESSION_ESTABLISH with the details (IPs, outcome, description, ...). These event were never fired because in case of handshake error the input stream is unwrapped until the end and output stream is wrapped and data sent to the peer, then closed together. All this without checking if TLS event were present in the stream. The code is fixed and now the check for event is done on any error and the first one is reported.
- Loading branch information