Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(744)

Issue 2342123002: Fix error-handling for non-SSL_get_error functions. (Closed)

Created:
4 years, 3 months ago by davidben
Modified:
4 years, 3 months ago
Reviewers:
svaldez
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix error-handling for non-SSL_get_error functions. Some functions (the ones that do I/O) use this crazy three-level error system (rv, SSL_get_error, and the error queue). Others are more straightforward and simply use the error queue. Using SSL_get_error here could result in state from other operations getting in the way of things. Since these don't actually do I/O and really can only fail on internal error, just map to ERR_FAILED rather than try to have so many MapOpenSSLError variants. Also treat SSL_export_key_material's return value as a boolean. In BoringSSL, the calling convention is simpler and documented as such. BUG=none Committed: https://crrev.com/f225b26378120e2c3dfd28f3e451ffb2d4e8c819 Cr-Commit-Position: refs/heads/master@{#419006}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -14 lines) Patch
M net/socket/ssl_client_socket_impl.cc View 2 chunks +9 lines, -14 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
davidben
4 years, 3 months ago (2016-09-15 21:04:30 UTC) #3
svaldez
lgtm
4 years, 3 months ago (2016-09-15 21:06:12 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2342123002/1
4 years, 3 months ago (2016-09-15 21:32:27 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-15 22:09:43 UTC) #11
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 22:14:29 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f225b26378120e2c3dfd28f3e451ffb2d4e8c819
Cr-Commit-Position: refs/heads/master@{#419006}

Powered by Google App Engine
This is Rietveld 408576698