Extend error reason in case of failed handshake
Fixes #336.
About the pipeline failures in OTP 27: they happen because ct_helper apparently uses file:pid2name/1, which has been deprecated and removed in OTP 27.
No it's erlang.mk, it'll work if you make erlang-mk and commit the updated file.
About the ssl_local_echo test currently failing for OTP 27, see https://github.com/erlang/otp/pull/8465
Added a test. Also made a change to obtain the peername early in the handshake, as it could happen that it is not available any more when an error happens.
I have updated the CI, please force push to run CI again.
Done. There is a failure in the shutdown suite (macOS, again :roll_eyes:) which seems to be a timing issue, in the test.
Merged, thanks!