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

Issue 1810153002: Adding iOS OpenSSL Implementation (Closed)

Created:
4 years, 9 months ago by svaldez
Modified:
4 years, 8 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, chromoting-reviews_chromium.org, kapishnikov, sdefresne+watch_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This adds the OpenSSL-specific implementations for iOS, using SecTrustEvaluate in order to determine the validity of the certificate chain. BUG=591545 Committed: https://crrev.com/864f9468ae2a8d1ba95c64824ef2caf05b7121fc Cr-Commit-Position: refs/heads/master@{#383297}

Patch Set 1 #

Patch Set 2 : Fix upstream. #

Patch Set 3 : Rebase. #

Patch Set 4 : Fixing typoes. #

Patch Set 5 : Merging in other CL and using ScopedX509. #

Patch Set 6 : Remove unused accessor. #

Patch Set 7 : Removing remoting_nacl #

Patch Set 8 : Fixes. #

Patch Set 9 : Fix chain 0. #

Patch Set 10 : Fix build. #

Patch Set 11 : Rebase on master. #

Total comments: 2

Patch Set 12 : Fixing build files. #

Patch Set 13 : Fix dumb typo. #

Patch Set 14 : Add missing test files. #

Patch Set 15 : Fix duplicate. #

Patch Set 16 : Simplifying logic for first iteration. #

Total comments: 20

Patch Set 17 : Fix removed dup. #

Patch Set 18 : Fixing nits. #

Total comments: 24

Patch Set 19 : Fixing more comments. #

Patch Set 20 : Fixing ref counting. #

Total comments: 14

Patch Set 21 : Fixing nits. #

Patch Set 22 : Fix syntax. #

Total comments: 28

Patch Set 23 : Fixing more nits. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+442 lines, -153 lines) Patch
M net/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +13 lines, -1 line 2 comments Download
M net/cert/cert_verify_proc.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +4 lines, -0 lines 0 comments Download
A + net/cert/cert_verify_proc_ios.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +8 lines, -8 lines 0 comments Download
A net/cert/cert_verify_proc_ios.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +239 lines, -0 lines 0 comments Download
A + net/cert/x509_certificate_openssl_ios.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 17 chunks +155 lines, -144 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +8 lines, -0 lines 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +3 lines, -0 lines 0 comments Download
M net/net_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (10 generated)
svaldez
I'll fix the issue description tomorrow.
4 years, 9 months ago (2016-03-17 22:18:50 UTC) #2
commit-bot: I haz the power
This CL has an open dependency (Issue 1808963004 Patch 120001). Please resolve the dependency and ...
4 years, 9 months ago (2016-03-18 19:21:01 UTC) #5
svaldez
Should be mostly the final version, modulo none of the tests working.
4 years, 9 months ago (2016-03-18 21:29:21 UTC) #7
svaldez
As a FYI, this should be the only CL you need to patch in now ...
4 years, 9 months ago (2016-03-18 21:31:58 UTC) #8
Sergey Ulanov
https://codereview.chromium.org/1810153002/diff/190001/remoting/remoting_nacl.gyp File remoting/remoting_nacl.gyp (right): https://codereview.chromium.org/1810153002/diff/190001/remoting/remoting_nacl.gyp#newcode16 remoting/remoting_nacl.gyp:16: 'use_nss_verifier': 0, This parameter is not used in this ...
4 years, 9 months ago (2016-03-18 21:34:37 UTC) #9
svaldez
https://codereview.chromium.org/1810153002/diff/190001/remoting/remoting_nacl.gyp File remoting/remoting_nacl.gyp (right): https://codereview.chromium.org/1810153002/diff/190001/remoting/remoting_nacl.gyp#newcode16 remoting/remoting_nacl.gyp:16: 'use_nss_verifier': 0, On 2016/03/18 21:34:37, Sergey Ulanov wrote: > ...
4 years, 9 months ago (2016-03-21 13:57:40 UTC) #10
davidben
This is probably best reviewed by +rsleevi, but I did a pass over it. https://codereview.chromium.org/1810153002/diff/280001/net/BUILD.gn ...
4 years, 9 months ago (2016-03-21 19:46:47 UTC) #12
svaldez
https://codereview.chromium.org/1810153002/diff/280001/net/BUILD.gn File net/BUILD.gn (right): https://codereview.chromium.org/1810153002/diff/280001/net/BUILD.gn#newcode1451 net/BUILD.gn:1451: if (!is_ios || !use_nss_verifier) { On 2016/03/21 19:46:47, davidben ...
4 years, 9 months ago (2016-03-21 20:23:52 UTC) #13
Ryan Sleevi
https://codereview.chromium.org/1810153002/diff/320001/net/cert/cert_verify_proc_openssl_ios.cc File net/cert/cert_verify_proc_openssl_ios.cc (right): https://codereview.chromium.org/1810153002/diff/320001/net/cert/cert_verify_proc_openssl_ios.cc#newcode38 net/cert/cert_verify_proc_openssl_ios.cc:38: return ERR_ACCESS_DENIED; This doesn't seem right, because it means ...
4 years, 9 months ago (2016-03-21 20:49:56 UTC) #14
svaldez
https://codereview.chromium.org/1810153002/diff/320001/net/cert/cert_verify_proc_openssl_ios.cc File net/cert/cert_verify_proc_openssl_ios.cc (right): https://codereview.chromium.org/1810153002/diff/320001/net/cert/cert_verify_proc_openssl_ios.cc#newcode38 net/cert/cert_verify_proc_openssl_ios.cc:38: return ERR_ACCESS_DENIED; On 2016/03/21 20:49:55, Ryan Sleevi wrote: > ...
4 years, 9 months ago (2016-03-21 21:36:26 UTC) #15
Ryan Sleevi
https://codereview.chromium.org/1810153002/diff/320001/net/cert/cert_verify_proc_openssl_ios.cc File net/cert/cert_verify_proc_openssl_ios.cc (right): https://codereview.chromium.org/1810153002/diff/320001/net/cert/cert_verify_proc_openssl_ios.cc#newcode128 net/cert/cert_verify_proc_openssl_ios.cc:128: X509Certificate::DupOSCertHandle(reinterpret_cast<SecCertificateRef>( On 2016/03/21 21:36:26, svaldez wrote: > On 2016/03/21 ...
4 years, 9 months ago (2016-03-21 21:44:14 UTC) #16
svaldez
https://codereview.chromium.org/1810153002/diff/320001/net/cert/cert_verify_proc_openssl_ios.cc File net/cert/cert_verify_proc_openssl_ios.cc (right): https://codereview.chromium.org/1810153002/diff/320001/net/cert/cert_verify_proc_openssl_ios.cc#newcode128 net/cert/cert_verify_proc_openssl_ios.cc:128: X509Certificate::DupOSCertHandle(reinterpret_cast<SecCertificateRef>( On 2016/03/21 21:44:14, Ryan Sleevi wrote: > On ...
4 years, 9 months ago (2016-03-22 15:05:56 UTC) #17
mef
On 2016/03/22 15:05:56, svaldez wrote: > https://codereview.chromium.org/1810153002/diff/320001/net/cert/cert_verify_proc_openssl_ios.cc > File net/cert/cert_verify_proc_openssl_ios.cc (right): > > https://codereview.chromium.org/1810153002/diff/320001/net/cert/cert_verify_proc_openssl_ios.cc#newcode128 > ...
4 years, 9 months ago (2016-03-22 15:14:56 UTC) #18
davidben
On 2016/03/22 15:14:56, mef wrote: > On 2016/03/22 15:05:56, svaldez wrote: > > > https://codereview.chromium.org/1810153002/diff/320001/net/cert/cert_verify_proc_openssl_ios.cc ...
4 years, 9 months ago (2016-03-22 15:21:21 UTC) #19
Ryan Sleevi
> I've patched this CL into my iOS build, and basic cronet tests still work! ...
4 years, 9 months ago (2016-03-22 15:56:04 UTC) #20
svaldez
On 2016/03/22 15:56:04, Ryan Sleevi wrote: > > I've patched this CL into my iOS ...
4 years, 9 months ago (2016-03-24 16:20:19 UTC) #21
Ryan Sleevi
Sorry, I didn't realize you were waiting for review feedback, I thought you were still ...
4 years, 9 months ago (2016-03-24 18:50:24 UTC) #22
svaldez
https://codereview.chromium.org/1810153002/diff/360001/net/cert/cert_verify_proc_openssl_ios.cc File net/cert/cert_verify_proc_openssl_ios.cc (right): https://codereview.chromium.org/1810153002/diff/360001/net/cert/cert_verify_proc_openssl_ios.cc#newcode49 net/cert/cert_verify_proc_openssl_ios.cc:49: OSStatus CreateTrustPolicies(const std::string& hostname, On 2016/03/24 18:50:24, Ryan Sleevi ...
4 years, 9 months ago (2016-03-24 19:46:01 UTC) #23
Ryan Sleevi
LGTM % several nits https://codereview.chromium.org/1810153002/diff/400001/net/cert/cert_verify_proc_ios.cc File net/cert/cert_verify_proc_ios.cc (right): https://codereview.chromium.org/1810153002/diff/400001/net/cert/cert_verify_proc_ios.cc#newcode12 net/cert/cert_verify_proc_ios.cc:12: #include "base/strings/sys_string_conversions.h" Unused? https://codereview.chromium.org/1810153002/diff/400001/net/cert/cert_verify_proc_ios.cc#newcode17 net/cert/cert_verify_proc_ios.cc:17: ...
4 years, 9 months ago (2016-03-24 20:17:43 UTC) #24
svaldez
https://codereview.chromium.org/1810153002/diff/400001/net/cert/cert_verify_proc_ios.cc File net/cert/cert_verify_proc_ios.cc (right): https://codereview.chromium.org/1810153002/diff/400001/net/cert/cert_verify_proc_ios.cc#newcode12 net/cert/cert_verify_proc_ios.cc:12: #include "base/strings/sys_string_conversions.h" On 2016/03/24 20:17:42, Ryan Sleevi wrote: > ...
4 years, 9 months ago (2016-03-25 16:54:12 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1810153002/420001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1810153002/420001
4 years, 9 months ago (2016-03-25 16:54:30 UTC) #28
commit-bot: I haz the power
Committed patchset #23 (id:420001)
4 years, 9 months ago (2016-03-25 17:18:12 UTC) #30
commit-bot: I haz the power
Patchset 23 (id:??) landed as https://crrev.com/864f9468ae2a8d1ba95c64824ef2caf05b7121fc Cr-Commit-Position: refs/heads/master@{#383297}
4 years, 9 months ago (2016-03-25 17:19:17 UTC) #32
Ken Rockot(use gerrit already)
A revert of this CL (patchset #23 id:420001) has been created in https://codereview.chromium.org/1838513002/ by rockot@chromium.org. ...
4 years, 9 months ago (2016-03-25 18:00:56 UTC) #33
svaldez
A revert of this CL (patchset #23 id:420001) has been created in https://codereview.chromium.org/1838523002/ by svaldez@chromium.org. ...
4 years, 9 months ago (2016-03-25 18:01:10 UTC) #34
svaldez
On 2016/03/25 18:01:10, svaldez wrote: > A revert of this CL (patchset #23 id:420001) has ...
4 years, 9 months ago (2016-03-25 18:02:26 UTC) #35
sdefresne
https://codereview.chromium.org/1810153002/diff/420001/net/BUILD.gn File net/BUILD.gn (right): https://codereview.chromium.org/1810153002/diff/420001/net/BUILD.gn#newcode1396 net/BUILD.gn:1396: "data/verify_name_match_unittest/names", You need to add the following here too ...
4 years, 9 months ago (2016-03-25 21:46:36 UTC) #37
svaldez
https://codereview.chromium.org/1810153002/diff/420001/net/BUILD.gn File net/BUILD.gn (right): https://codereview.chromium.org/1810153002/diff/420001/net/BUILD.gn#newcode1396 net/BUILD.gn:1396: "data/verify_name_match_unittest/names", On 2016/03/25 21:46:36, sdefresne (OOO till 4th April) ...
4 years, 8 months ago (2016-03-28 14:19:50 UTC) #38
sdefresne
4 years, 8 months ago (2016-03-29 21:01:02 UTC) #39
Message was sent while issue was closed.
On 2016/03/28 at 14:19:50, svaldez wrote:
> https://codereview.chromium.org/1810153002/diff/420001/net/BUILD.gn
> File net/BUILD.gn (right):
> 
>
https://codereview.chromium.org/1810153002/diff/420001/net/BUILD.gn#newcode1396
> net/BUILD.gn:1396: "data/verify_name_match_unittest/names",
> On 2016/03/25 21:46:36, sdefresne (OOO till 4th April) wrote:
> > You need to add the following here too if you want the tests to eventually
work
> > on iOS when building with gn (without the trailing "/", sorry about that, I
have
> > a bug to address this):
> > 
> >   "third_party/nist-pkits",
> 
> Will fix that as well when re-adding the nist-pkits test files. For some
reason gyp builds fail only on the Waterfall when changing those dependencies.

This is probably because we do not run xcodebuild bots on the trybots (due to
lack of resources) but still run them on the waterfall :-(

Powered by Google App Engine
This is Rietveld 408576698