linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #09097
[Bug 1952607] Re: Improve TLS error messages
A combination of
https://www.openssl.org/docs/man1.1.1/man3/ERR_get_error.html (though
one has to ensure one picks whether one wants the most recent or least
recent still-known error per thread) and
https://www.openssl.org/docs/man1.1.1/man3/ERR_error_string.html ("Note
that this function is not thread-safe and does no checks on the size of
the buffer; use ERR_error_string_n() instead.") seems to be the most
straightforward ways of doing this.
--
You received this bug notification because you are a member of
Dcplusplus-team, which is subscribed to DC++.
https://bugs.launchpad.net/bugs/1952607
Title:
Improve TLS error messages
Status in DC++:
Confirmed
Bug description:
DC++ displays a vague "TLS Error" most of the time e.g. when connecting to a hub with kp check and the hub cert is expired.
At least printing some error strings OpenSSL likely has defined, in English, would be much more useful. Just like what we do with low level socket errors, where we print the error message what Windows offers, in the language of the current locale.
To manage notifications about this bug go to:
https://bugs.launchpad.net/dcplusplus/+bug/1952607/+subscriptions
References