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

Issue 494913002: Include better OpenSSL error information in NetLog. (Closed)

Created:
6 years, 4 months ago by davidben
Modified:
6 years, 3 months ago
Reviewers:
Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Include better OpenSSL error information in NetLog. The 'ssl_lib_error' value reported is rather uninteresting. OpenSSL is has two levels of errors. The one we were logging is almost always 1. Make the error callback SSL-implementation-specific and include the library code, reason code, file name, and line number, all of which OpenSSL already tracks. BUG=286480 Committed: https://crrev.com/a4409c633c6a0ffe91df8098705f99dbec4c4f5f Cr-Commit-Position: refs/heads/master@{#292173}

Patch Set 1 #

Total comments: 6

Patch Set 2 : rsleevi comments #

Total comments: 2

Patch Set 3 : inline pod ctor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -76 lines) Patch
M net/net.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M net/socket/nss_ssl_util.h View 2 chunks +6 lines, -0 lines 0 comments Download
M net/socket/nss_ssl_util.cc View 4 chunks +19 lines, -4 lines 0 comments Download
M net/socket/ssl_client_socket_nss.cc View 1 chunk +0 lines, -1 line 0 comments Download
M net/socket/ssl_client_socket_openssl.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
D net/socket/ssl_error_params.h View 1 chunk +0 lines, -18 lines 0 comments Download
D net/socket/ssl_error_params.cc View 1 chunk +0 lines, -31 lines 0 comments Download
M net/socket/ssl_server_socket_nss.cc View 1 chunk +0 lines, -1 line 0 comments Download
M net/socket/ssl_server_socket_openssl.cc View 1 5 chunks +17 lines, -10 lines 0 comments Download
M net/ssl/openssl_ssl_util.h View 1 2 2 chunks +34 lines, -3 lines 0 comments Download
M net/ssl/openssl_ssl_util.cc View 1 2 6 chunks +48 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
davidben
This stuff is basically free, so let's just report it all. This gives output that ...
6 years, 4 months ago (2014-08-20 23:10:50 UTC) #1
Ryan Sleevi
API wise, I think you're better off embracing a bit more C++-ishness here, as evidenced ...
6 years, 3 months ago (2014-08-25 06:24:35 UTC) #2
davidben
https://codereview.chromium.org/494913002/diff/1/net/socket/nss_ssl_util.cc File net/socket/nss_ssl_util.cc (right): https://codereview.chromium.org/494913002/diff/1/net/socket/nss_ssl_util.cc#newcode89 net/socket/nss_ssl_util.cc:89: return dict; On 2014/08/25 06:24:35, Ryan Sleevi wrote: > ...
6 years, 3 months ago (2014-08-26 22:13:51 UTC) #3
Ryan Sleevi
lgtm https://codereview.chromium.org/494913002/diff/20001/net/ssl/openssl_ssl_util.h File net/ssl/openssl_ssl_util.h (right): https://codereview.chromium.org/494913002/diff/20001/net/ssl/openssl_ssl_util.h#newcode44 net/ssl/openssl_ssl_util.h:44: OpenSSLErrorInfo(); An inline ctor is fine here, it's ...
6 years, 3 months ago (2014-08-26 22:38:02 UTC) #4
davidben
https://codereview.chromium.org/494913002/diff/20001/net/ssl/openssl_ssl_util.h File net/ssl/openssl_ssl_util.h (right): https://codereview.chromium.org/494913002/diff/20001/net/ssl/openssl_ssl_util.h#newcode44 net/ssl/openssl_ssl_util.h:44: OpenSSLErrorInfo(); On 2014/08/26 22:38:01, Ryan Sleevi wrote: > An ...
6 years, 3 months ago (2014-08-27 15:48:22 UTC) #5
davidben
The CQ bit was checked by davidben@chromium.org
6 years, 3 months ago (2014-08-27 15:48:29 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidben@chromium.org/494913002/40001
6 years, 3 months ago (2014-08-27 15:49:41 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 883822031ffc9f5e02304def921149f8b733530d
6 years, 3 months ago (2014-08-27 17:06:01 UTC) #8
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:52:23 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a4409c633c6a0ffe91df8098705f99dbec4c4f5f
Cr-Commit-Position: refs/heads/master@{#292173}

Powered by Google App Engine
This is Rietveld 408576698