]> granicus.if.org Git - curl/commit
openssl: fall back on SSL_ERROR_* string when no error detail
authorJay Satiro <raysatiro@yahoo.com>
Wed, 22 Mar 2017 18:39:41 +0000 (14:39 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Thu, 23 Mar 2017 20:48:29 +0000 (16:48 -0400)
commitb999d35c71904d72bd38b432cb9cc57898d32cbc
tree68fc1ac967cbafc78d5aaa4d85f7ae25a754dc85
parentae22034d0d711881b0cbf1e8be3090cad486bb97
openssl: fall back on SSL_ERROR_* string when no error detail

- If SSL_get_error is called but no extended error detail is available
  then show that SSL_ERROR_* as a string.

Prior to this change there was some inconsistency in that case: the
SSL_ERROR_* code may or may not have been shown, or may have been shown
as unknown even if it was known.

Ref: https://github.com/curl/curl/issues/1300

Closes https://github.com/curl/curl/pull/1348
lib/vtls/openssl.c