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

Issue 994373004: Properly handle alerts from the peer in SSL_read. (Closed)

Created:
5 years, 9 months ago by davidben
Modified:
5 years, 9 months ago
Reviewers:
Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Properly handle alerts from the peer in SSL_read. We currently return 0 on them because OpenSSL returns 0 with an entry in the error queue. (See bug.) This is completely insane, but it's how the API works for now. Add a test which causes the peer to return a fatal error. Extend SSLClientSocketTest.Read to assert on the final exit code. This gives test coverage for when the peer cleanly shuts down the connection. BUG=466303 Committed: https://crrev.com/e74aabdb96a388dd0f11c60552710fcfc6b86649 Cr-Commit-Position: refs/heads/master@{#321040}

Patch Set 1 #

Total comments: 3

Patch Set 2 : rebase #

Patch Set 3 : fix CrOS tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -11 lines) Patch
M net/socket/ssl_client_socket_openssl.cc View 1 1 chunk +15 lines, -4 lines 0 comments Download
M net/socket/ssl_client_socket_unittest.cc View 1 4 chunks +29 lines, -2 lines 0 comments Download
M net/ssl/openssl_ssl_util.h View 1 chunk +2 lines, -1 line 0 comments Download
M net/test/spawned_test_server/base_test_server.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M net/test/spawned_test_server/base_test_server.cc View 1 3 chunks +6 lines, -2 lines 0 comments Download
M net/tools/testserver/testserver.py View 1 4 chunks +11 lines, -2 lines 0 comments Download
M third_party/tlslite/README.chromium View 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/tlslite/patches/alert_after_handshake.patch View 1 2 1 chunk +46 lines, -0 lines 0 comments Download
M third_party/tlslite/tlslite/handshakesettings.py View 3 chunks +6 lines, -0 lines 0 comments Download
M third_party/tlslite/tlslite/tlsconnection.py View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
davidben
IMPORTANT: When reviewing this, do not look at OpenSSL's documentation. OpenSSL's documentation on this front ...
5 years, 9 months ago (2015-03-11 21:47:19 UTC) #2
Ryan Sleevi
Submit patches to fix the documentation too? LGTM https://codereview.chromium.org/994373004/diff/1/net/socket/ssl_client_socket_openssl.cc File net/socket/ssl_client_socket_openssl.cc (right): https://codereview.chromium.org/994373004/diff/1/net/socket/ssl_client_socket_openssl.cc#newcode1574 net/socket/ssl_client_socket_openssl.cc:1574: // ...
5 years, 9 months ago (2015-03-17 01:01:28 UTC) #3
davidben
On 2015/03/17 01:01:28, Ryan Sleevi wrote: > Submit patches to fix the documentation too? I'll ...
5 years, 9 months ago (2015-03-17 01:18:51 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/994373004/20001
5 years, 9 months ago (2015-03-17 16:12:45 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/36933)
5 years, 9 months ago (2015-03-17 21:46:46 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/994373004/40001
5 years, 9 months ago (2015-03-17 23:51:12 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-18 01:04:37 UTC) #13
commit-bot: I haz the power
5 years, 9 months ago (2015-03-18 01:05:09 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e74aabdb96a388dd0f11c60552710fcfc6b86649
Cr-Commit-Position: refs/heads/master@{#321040}

Powered by Google App Engine
This is Rietveld 408576698