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

Issue 206453002: Introduce USE_OPENSSL_CERTS for certificate handling. (Closed)

Created:
6 years, 9 months ago by haavardm
Modified:
6 years, 8 months ago
Reviewers:
wtc, Ryan Sleevi, mattm
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Introduce USE_OPENSSL_CERTS for certificate handling. See discussion at chromium issue 338885. When USE_OPENSSL_CERTS is defined, X509::OSCertHandle is now typedef'ed to struct X509*. When USE_OPENSSL is defined, USE_OPENSSL_CERTS will now be defined for linux and Android, while being off for Mac and Windows. This allows OpenSSL to be used while leaving certificate handling to the OS. OpenSSL cert verifying code will only be used on Linux. This patch does not change any default behavior. Bug=none Test=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260152

Patch Set 1 #

Total comments: 40

Patch Set 2 : Changed meaning of USE_OPENSSL_CERTS #

Total comments: 19

Patch Set 3 : Address wtc's comments. #

Patch Set 4 : Put back nss and nspr dependencies for crypto_unittests. #

Total comments: 9

Patch Set 5 : Final fixes and nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -68 lines) Patch
M build/common.gypi View 1 2 7 chunks +29 lines, -2 lines 0 comments Download
M crypto/crypto.gyp View 1 2 3 4 2 chunks +2 lines, -7 lines 0 comments Download
M crypto/encryptor.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M crypto/symmetric_key.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M net/cert/cert_verify_proc.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/cert/cert_verify_proc_unittest.cc View 1 8 chunks +8 lines, -8 lines 0 comments Download
M net/cert/test_root_certs.h View 1 4 chunks +4 lines, -4 lines 0 comments Download
M net/cert/test_root_certs_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/cert/x509_certificate.h View 1 4 chunks +4 lines, -4 lines 0 comments Download
M net/net.gyp View 1 2 3 4 6 chunks +34 lines, -22 lines 0 comments Download
M net/socket/ssl_client_socket_openssl.cc View 1 6 chunks +10 lines, -4 lines 0 comments Download
M net/ssl/server_bound_cert_service_unittest.cc View 1 2 4 chunks +0 lines, -8 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
haavardm
This patch introduces USE_OPENSSL_CERTS as discussed in https://code.google.com/p/chromium/issues/detail?id=338885 . With a small patch in src/third_party/openssl ...
6 years, 9 months ago (2014-03-20 15:15:41 UTC) #1
wtc
Review comments on patch set 1: This seems correct, but I'd like to take another ...
6 years, 9 months ago (2014-03-20 21:14:55 UTC) #2
mattm
drive by comments https://codereview.chromium.org/206453002/diff/1/DEPS File DEPS (right): https://codereview.chromium.org/206453002/diff/1/DEPS#newcode452 DEPS:452: "/trunk/deps/third_party/openssl@" + Var("openssl_revision"), Is this necessary? ...
6 years, 9 months ago (2014-03-20 23:40:23 UTC) #3
haavardm
Thanks for a lot of good comments. The USE_OPENSSL_CERTS define means that the certificate implementation ...
6 years, 9 months ago (2014-03-21 13:08:20 UTC) #4
haavardm
https://codereview.chromium.org/206453002/diff/1/crypto/crypto.gyp File crypto/crypto.gyp (right): https://codereview.chromium.org/206453002/diff/1/crypto/crypto.gyp#newcode43 crypto/crypto.gyp:43: [ 'use_openssl == 1', { On 2014/03/20 23:40:24, mattm ...
6 years, 9 months ago (2014-03-21 18:48:15 UTC) #5
mattm
https://codereview.chromium.org/206453002/diff/1/DEPS File DEPS (right): https://codereview.chromium.org/206453002/diff/1/DEPS#newcode452 DEPS:452: "/trunk/deps/third_party/openssl@" + Var("openssl_revision"), On 2014/03/21 13:08:21, Håvard Molland wrote: ...
6 years, 9 months ago (2014-03-21 19:35:22 UTC) #6
Ryan Sleevi
Having read through this patch a few times, I'm still a bit confused about USE_OPENSSL_CERTS ...
6 years, 9 months ago (2014-03-21 19:47:50 UTC) #7
mattm
On 2014/03/21 19:47:50, Ryan Sleevi wrote: > Having read through this patch a few times, ...
6 years, 9 months ago (2014-03-21 22:37:40 UTC) #8
Ryan Sleevi
On 2014/03/21 22:37:40, mattm wrote: > On 2014/03/21 19:47:50, Ryan Sleevi wrote: > > Having ...
6 years, 9 months ago (2014-03-21 22:43:02 UTC) #9
wtc
On 2014/03/21 19:47:50, Ryan Sleevi wrote: > Having read through this patch a few times, ...
6 years, 9 months ago (2014-03-22 16:09:51 UTC) #10
haavardm
As WTC suggested, I've changed the meaning of USE_OPENSSL_CERTS. When USE_OPENSSL_CERTS is defined, X509::OsCertHandle is ...
6 years, 9 months ago (2014-03-24 18:48:52 UTC) #11
wtc
Patch set 2 LGTM. IMPORTANT: please update the CL's description to match the new meaning ...
6 years, 9 months ago (2014-03-25 17:18:27 UTC) #12
wtc
On 2014/03/24 18:48:52, Håvard Molland wrote: > > When USE_OPENSSL_CERTS is defined, X509::OsCertHandle is now ...
6 years, 9 months ago (2014-03-25 17:23:12 UTC) #13
haavardm
https://codereview.chromium.org/206453002/diff/20001/net/cert/cert_verify_proc.cc File net/cert/cert_verify_proc.cc (right): https://codereview.chromium.org/206453002/diff/20001/net/cert/cert_verify_proc.cc#newcode26 net/cert/cert_verify_proc.cc:26: #include "net/cert/cert_verify_proc_android.h" The current expression keeps the USE_FOOs, and ...
6 years, 9 months ago (2014-03-25 17:43:03 UTC) #14
haavardm
Ryan, does this also look OK for you also? https://codereview.chromium.org/206453002/diff/20001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/206453002/diff/20001/build/common.gypi#newcode50 build/common.gypi:50: ...
6 years, 9 months ago (2014-03-26 12:25:17 UTC) #15
haavardm
Since this patch affects many profiles, I did a test compile using "git cl try". ...
6 years, 9 months ago (2014-03-26 15:32:35 UTC) #16
haavardm
Since I couldn't reproduce the link error locally, I created a test CL at https://codereview.chromium.org/214523002/#ps40001 ...
6 years, 9 months ago (2014-03-27 14:19:04 UTC) #17
wtc
Patch set 4 LGTM. I carefully reviewed latest patch set today, so you can go ...
6 years, 9 months ago (2014-03-27 17:40:18 UTC) #18
wtc
https://codereview.chromium.org/206453002/diff/190001/crypto/crypto.gyp File crypto/crypto.gyp (right): https://codereview.chromium.org/206453002/diff/190001/crypto/crypto.gyp#newcode201 crypto/crypto.gyp:201: 'openpgp_symmetric_encryption_unittest.cc', On 2014/03/27 17:40:18, wtc wrote: > > I ...
6 years, 9 months ago (2014-03-27 18:26:25 UTC) #19
haavardm
Thanks for the lgtm. When this is in, src/net and src/crypto will compile for mac ...
6 years, 9 months ago (2014-03-27 21:10:57 UTC) #20
haavardm
The CQ bit was checked by haavardm@opera.com
6 years, 9 months ago (2014-03-27 21:11:22 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haavardm@opera.com/206453002/210001
6 years, 9 months ago (2014-03-27 21:13:33 UTC) #22
wtc
Patch set 5 LGTM. https://codereview.chromium.org/206453002/diff/190001/crypto/crypto.gyp File crypto/crypto.gyp (right): https://codereview.chromium.org/206453002/diff/190001/crypto/crypto.gyp#newcode206 crypto/crypto.gyp:206: '../third_party/nss/nss.gyp:nss', On 2014/03/27 21:10:58, Håvard ...
6 years, 9 months ago (2014-03-27 21:16:02 UTC) #23
haavardm
The CQ bit was unchecked by haavardm@opera.com
6 years, 9 months ago (2014-03-28 12:27:32 UTC) #24
haavardm
The CQ bit was checked by haavardm@opera.com
6 years, 9 months ago (2014-03-28 12:27:48 UTC) #25
haavardm
The CQ bit was unchecked by haavardm@opera.com
6 years, 9 months ago (2014-03-28 13:27:37 UTC) #26
haavardm
The CQ bit was checked by haavardm@opera.com
6 years, 9 months ago (2014-03-28 14:09:51 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haavardm@opera.com/206453002/210001
6 years, 9 months ago (2014-03-28 14:11:07 UTC) #28
commit-bot: I haz the power
Change committed as 260152
6 years, 8 months ago (2014-03-28 16:20:34 UTC) #29
wtc
6 years, 8 months ago (2014-03-28 16:58:41 UTC) #30
Message was sent while issue was closed.
On 2014/03/27 21:10:57, Håvard Molland wrote:
> Thanks for the lgtm. When this is in, src/net and src/crypto will compile for
> mac with openssl on (when thirdpary/openssl also is patched). 

You can have me review your third_party/openssl for Mac CL. I am good at
porting.

Powered by Google App Engine
This is Rietveld 408576698