cpp-httplib icon indicating copy to clipboard operation
cpp-httplib copied to clipboard

Cannot access SSL Error

Open bartols opened this issue 2 years ago • 1 comments

Is not possibile to access to the SSL error in Connect or in Accept, the error is local to template <typename U> bool ssl_connect_or_accept_nonblocking. Solutions could be have a "last_res" in client/server class so will be possible to retrieve the ssl error with SSL_get_error(ssl, res), or save a last_ssl_err or expand enum class Error to every possible SSL connect/accept error

bartols avatar Nov 02 '22 10:11 bartols

@bartols, since I don't have any necessity to see errors on OpenSSL level and don't have an environment to reproduce your problem, could you send me a pull request to resolve this? Then, I'll review it. Thanks for your help!

yhirose avatar Nov 11 '22 13:11 yhirose