Project

General

Profile

« Previous | Next » 

Revision cb344e4e

Added by rhenium (Kazuki Yamaguchi) almost 2 years ago

[ruby/openssl] ssl: adjust "certificate verify failed" error on SSL_ERROR_SYSCALL

Enrich SSLError's message with the low-level certificate verification
result, even if SSL_get_error() returns SSL_ERROR_SYSCALL. This is
currently done on SSL_ERROR_SSL only.

According to the man page of SSL_get_error(), SSL_ERROR_SYSCALL may be
returned for "other errors, check the error queue for details". This
apparently means we have to treat SSL_ERROR_SYSCALL, if errno is not
set, as equivalent to SSL_ERROR_SSL.

https://github.com/ruby/openssl/commit/5113777e82