David Benjamin fa65113400 Push an error if custom private keys fail.
The private key callback may not push one of its own (it's possible to
register a custom error library and whatnot, but this is tedious). If
the callback does not push any, we report SSL_ERROR_SYSCALL. This is not
completely wrong, as "syscall" really means "I don't know, something you
gave me, probably the BIO, failed so I assume you know what happened",
but most callers just check errno. And indeed cert_cb pushes its own
error, so this probably should as well.

Update-Note: Custom private key callbacks which push an error code on
    failure will report both that error followed by
    SSL_R_PRIVATE_KEY_OPERATION_FAILED. Callbacks which did not push any
    error will switch from SSL_ERROR_SYSCALL to SSL_ERROR_SSL with
    SSL_R_PRIVATE_KEY_OPERATION_FAILED.

Change-Id: I7e90cd327fe0cbcff395470381a3591364a82c74
Reviewed-on: https://boringssl-review.googlesource.com/25544
Reviewed-by: Adam Langley <agl@google.com>
2018-02-01 21:43:42 +00:00
..
2018-01-31 22:57:51 +00:00
2017-07-12 20:54:02 +00:00
2017-10-25 03:23:26 +00:00
2017-10-25 03:23:26 +00:00
2017-10-24 17:32:45 +00:00
2017-09-22 15:15:48 +00:00
2017-11-01 16:44:46 +00:00
2017-10-25 03:23:26 +00:00
2018-01-31 22:33:42 +00:00
2018-01-31 18:07:53 +00:00
2017-10-24 17:50:05 +00:00
2017-10-24 17:50:05 +00:00
2018-01-31 22:33:42 +00:00
2018-01-31 18:07:53 +00:00
2018-01-31 18:07:53 +00:00
2017-11-01 16:44:46 +00:00
2018-01-31 18:07:53 +00:00