Improve TLS error messages
Bug #1952607 reported by
eMTee
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DC++ |
Confirmed
|
Low
|
Unassigned |
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 post a comment you must log in.
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.