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

Issue 17265013: Remove platform-specific implementations of RSAPrivateKey and SignatureCreator (Closed)

Created:
7 years, 6 months ago by Ryan Sleevi
Modified:
7 years, 5 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, cbentzel+watch_chromium.org, weitaosu+watch_chromium.org, nkostylev+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, dkrahn+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, oshima+watch_chromium.org, alexeypa+watch_chromium.org, stevenjb+watch_chromium.org, sergeyu+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Remove platform-specific implementations of RSAPrivateKey and SignatureCreator Use NSS/OpenSSL on all platforms, rather than deferring to the underlying OS routines. Because X509Certificate::CreateSelfSigned no longer relies on platform-native types for RSA keys or certificates, it has been moved to x509_util and simply returns a DER-encoded certificate as a string. BUG=none R=wtc Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=208870

Patch Set 1 #

Total comments: 1

Patch Set 2 : Update includes #

Total comments: 8

Patch Set 3 : Review feedback #

Total comments: 1

Patch Set 4 : Review feedback #

Patch Set 5 : Remove unused var #

Patch Set 6 : OpenSSL fix #

Total comments: 2

Patch Set 7 : Compile fix #

Patch Set 8 : Rebased #

Patch Set 9 : Fix colliding serial numbers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+338 lines, -1321 lines) Patch
M chrome/browser/chromeos/attestation/attestation_policy_observer_unittest.cc View 1 2 chunks +7 lines, -14 lines 0 comments Download
M crypto/crypto.gyp View 5 chunks +0 lines, -29 lines 0 comments Download
M crypto/rsa_private_key.h View 1 2 3 4 5 4 chunks +23 lines, -51 lines 0 comments Download
D crypto/rsa_private_key_ios.cc View 1 chunk +0 lines, -67 lines 0 comments Download
D crypto/rsa_private_key_mac.cc View 1 chunk +0 lines, -204 lines 0 comments Download
M crypto/rsa_private_key_nss.cc View 1 2 3 4 5 6 5 chunks +30 lines, -15 lines 0 comments Download
M crypto/rsa_private_key_openssl.cc View 1 2 3 4 5 2 chunks +0 lines, -20 lines 0 comments Download
D crypto/rsa_private_key_win.cc View 1 chunk +0 lines, -238 lines 0 comments Download
M crypto/signature_creator.h View 2 chunks +7 lines, -17 lines 0 comments Download
D crypto/signature_creator_mac.cc View 1 chunk +0 lines, -75 lines 0 comments Download
D crypto/signature_creator_win.cc View 1 chunk +0 lines, -61 lines 0 comments Download
M net/cert/x509_certificate.h View 2 chunks +0 lines, -27 lines 0 comments Download
M net/cert/x509_certificate_ios.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -12 lines 0 comments Download
M net/cert/x509_certificate_mac.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -139 lines 0 comments Download
M net/cert/x509_certificate_nss.cc View 2 chunks +0 lines, -25 lines 0 comments Download
M net/cert/x509_certificate_openssl.cc View 1 chunk +0 lines, -11 lines 0 comments Download
M net/cert/x509_certificate_unittest.cc View 1 2 1 chunk +0 lines, -126 lines 0 comments Download
M net/cert/x509_certificate_win.cc View 2 chunks +0 lines, -62 lines 0 comments Download
M net/cert/x509_util.h View 1 2 2 chunks +26 lines, -0 lines 0 comments Download
M net/cert/x509_util_nss.h View 1 1 chunk +0 lines, -14 lines 0 comments Download
M net/cert/x509_util_nss.cc View 1 2 4 chunks +89 lines, -100 lines 0 comments Download
M net/cert/x509_util_openssl.cc View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M net/cert/x509_util_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +136 lines, -0 lines 0 comments Download
M remoting/base/rsa_key_pair.cc View 1 2 3 4 2 chunks +10 lines, -14 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Ryan Sleevi
wtc: PTAL. The X509Certificate -> x509_util shuffling is to reflect the fact that there are ...
7 years, 6 months ago (2013-06-20 00:48:35 UTC) #1
dkrahn
https://codereview.chromium.org/17265013/diff/1/chrome/browser/chromeos/attestation/attestation_policy_observer_unittest.cc File chrome/browser/chromeos/attestation/attestation_policy_observer_unittest.cc (right): https://codereview.chromium.org/17265013/diff/1/chrome/browser/chromeos/attestation/attestation_policy_observer_unittest.cc#newcode22 chrome/browser/chromeos/attestation/attestation_policy_observer_unittest.cc:22: #include "net/cert/x509_util_nss.h" Should this now be x509_util.h?
7 years, 6 months ago (2013-06-20 16:37:24 UTC) #2
wtc
Patch set 2 LGTM. Note the IMPORTANT commet below about |permanent| not implemented for OS_WIN ...
7 years, 6 months ago (2013-06-20 21:35:56 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/17265013/11001
7 years, 6 months ago (2013-06-20 22:37:25 UTC) #4
Ryan Sleevi
wez: remoting/ stamp mnissler: chrome/browser/chromeos/attestation/ stamp
7 years, 6 months ago (2013-06-20 22:38:41 UTC) #5
Wez
lgtm https://codereview.chromium.org/17265013/diff/11001/remoting/base/rsa_key_pair.cc File remoting/base/rsa_key_pair.cc (right): https://codereview.chromium.org/17265013/diff/11001/remoting/base/rsa_key_pair.cc#newcode103 remoting/base/rsa_key_pair.cc:103: CHECK(result); This should probably be if (!result) return ...
7 years, 6 months ago (2013-06-20 23:30:47 UTC) #6
Mattias Nissler (ping if slow)
LGTM
7 years, 6 months ago (2013-06-21 00:32:38 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/17265013/19001
7 years, 6 months ago (2013-06-21 00:41:46 UTC) #8
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-21 01:07:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/17265013/15002
7 years, 6 months ago (2013-06-21 01:14:05 UTC) #10
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-21 01:33:40 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/17265013/28003
7 years, 6 months ago (2013-06-21 01:45:38 UTC) #12
wtc
https://codereview.chromium.org/17265013/diff/28003/remoting/base/rsa_key_pair.cc File remoting/base/rsa_key_pair.cc (right): https://codereview.chromium.org/17265013/diff/28003/remoting/base/rsa_key_pair.cc#newcode102 remoting/base/rsa_key_pair.cc:102: &der_cert); This requires the function to either leave der_cert ...
7 years, 6 months ago (2013-06-21 02:01:23 UTC) #13
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-21 02:05:09 UTC) #14
wtc
https://chromiumcodereview.appspot.com/17265013/diff/28003/net/cert/x509_util_openssl.cc File net/cert/x509_util_openssl.cc (right): https://chromiumcodereview.appspot.com/17265013/diff/28003/net/cert/x509_util_openssl.cc#newcode67 net/cert/x509_util_openssl.cc:67: std::string* der_encoded { This line is missing a closing ...
7 years, 6 months ago (2013-06-21 02:50:30 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/17265013/46001
7 years, 6 months ago (2013-06-24 17:00:41 UTC) #16
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) net_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=142268
7 years, 6 months ago (2013-06-24 17:53:16 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/17265013/71001
7 years, 5 months ago (2013-06-26 23:27:26 UTC) #18
commit-bot: I haz the power
7 years, 5 months ago (2013-06-27 09:18:44 UTC) #19
Message was sent while issue was closed.
Change committed as 208870

Powered by Google App Engine
This is Rietveld 408576698