aboutsummaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2023-06-07 16:01:01 +0900
committerKazuki Yamaguchi <k@rhe.jp>2023-08-16 14:48:39 +0900
commitcb344e4e25c0979e2dfd1492fb91eef137bf059f (patch)
tree1c32b9e8e64522a185b54e43122e114014d609cb /error.c
parent66a70582f4d7fea5dffac5925484640337d15e7f (diff)
downloadruby-cb344e4e25c0979e2dfd1492fb91eef137bf059f.tar.gz
[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
Diffstat (limited to 'error.c')
0 files changed, 0 insertions, 0 deletions