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

Issue 1739403002: Cut down on usage of deprecated APIs in //crypto. (Closed)

Created:
4 years, 10 months ago by davidben
Modified:
4 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

Cut down on usage of deprecated APIs in //crypto. SSL_library_init is deprecated. It's CRYPTO_library_init. Switch from the legacy ASN.1 APIs to the new parsers where feasible. ECPrivateKey::CreateFromEncryptedPrivateKeyInfo is left alone for now as we still need a new version of those APIs. This also adds a scoper for CBB for use in later CLs. BUG=499653 Committed: https://crrev.com/7dad2a3ec1c5eada75bdd6af49a17c85113814e8 Cr-Commit-Position: refs/heads/master@{#378610}

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : grumble grumble string vector char uint8_t grumble #

Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -192 lines) Patch
M crypto/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
A crypto/auto_cbb.h View 1 chunk +35 lines, -0 lines 0 comments Download
M crypto/crypto.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M crypto/crypto.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M crypto/ec_private_key.h View 1 chunk +1 line, -2 lines 0 comments Download
M crypto/ec_private_key_nss.cc View 1 3 chunks +12 lines, -11 lines 0 comments Download
M crypto/ec_private_key_openssl.cc View 1 2 3 4 chunks +42 lines, -54 lines 0 comments Download
M crypto/ec_private_key_unittest.cc View 1 2 3 4 11 chunks +55 lines, -47 lines 0 comments Download
M crypto/ec_signature_creator_openssl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M crypto/openssl_util.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M crypto/rsa_private_key_openssl.cc View 3 chunks +31 lines, -54 lines 0 comments Download
M crypto/signature_verifier_openssl.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M net/socket/ssl_client_socket_openssl.cc View 1 3 chunks +2 lines, -13 lines 0 comments Download
M net/spdy/spdy_test_util_common.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (6 generated)
davidben
https://codereview.chromium.org/1739403002/diff/1/crypto/auto_cbb.h File crypto/auto_cbb.h (right): https://codereview.chromium.org/1739403002/diff/1/crypto/auto_cbb.h#newcode16 crypto/auto_cbb.h:16: class AutoCBB { I still very strongly think this ...
4 years, 10 months ago (2016-02-26 21:51:34 UTC) #2
Ryan Sleevi
lgtm https://codereview.chromium.org/1739403002/diff/20001/crypto/auto_cbb.h File crypto/auto_cbb.h (right): https://codereview.chromium.org/1739403002/diff/20001/crypto/auto_cbb.h#newcode29 crypto/auto_cbb.h:29: CBB cbb_; Grumble grumble on over-abbreviated type names ...
4 years, 10 months ago (2016-02-26 23:16:08 UTC) #4
davidben
https://codereview.chromium.org/1739403002/diff/20001/crypto/auto_cbb.h File crypto/auto_cbb.h (right): https://codereview.chromium.org/1739403002/diff/20001/crypto/auto_cbb.h#newcode29 crypto/auto_cbb.h:29: CBB cbb_; On 2016/02/26 23:16:08, Ryan Sleevi wrote: > ...
4 years, 10 months ago (2016-02-26 23:45:35 UTC) #5
davidben
Apparently I had a typo that was only caught by higher-level tests. In penance, I've ...
4 years, 9 months ago (2016-03-01 21:39:43 UTC) #6
Ryan Sleevi
LGTM % bug https://codereview.chromium.org/1739403002/diff/60001/crypto/ec_private_key_unittest.cc File crypto/ec_private_key_unittest.cc (right): https://codereview.chromium.org/1739403002/diff/60001/crypto/ec_private_key_unittest.cc#newcode189 crypto/ec_private_key_unittest.cc:189: static const char kOpenSSLRawPublicKey[] = { ...
4 years, 9 months ago (2016-03-01 22:05:27 UTC) #7
davidben
https://codereview.chromium.org/1739403002/diff/60001/crypto/ec_private_key_unittest.cc File crypto/ec_private_key_unittest.cc (right): https://codereview.chromium.org/1739403002/diff/60001/crypto/ec_private_key_unittest.cc#newcode189 crypto/ec_private_key_unittest.cc:189: static const char kOpenSSLRawPublicKey[] = { On 2016/03/01 22:05:27, ...
4 years, 9 months ago (2016-03-01 22:10:08 UTC) #8
davidben
https://codereview.chromium.org/1739403002/diff/60001/crypto/ec_private_key_unittest.cc File crypto/ec_private_key_unittest.cc (right): https://codereview.chromium.org/1739403002/diff/60001/crypto/ec_private_key_unittest.cc#newcode189 crypto/ec_private_key_unittest.cc:189: static const char kOpenSSLRawPublicKey[] = { On 2016/03/01 22:10:08, ...
4 years, 9 months ago (2016-03-01 22:10:48 UTC) #9
Ryan Sleevi
On 2016/03/01 22:10:08, davidben wrote: > https://codereview.chromium.org/1739403002/diff/60001/crypto/ec_private_key_unittest.cc > File crypto/ec_private_key_unittest.cc (right): > > https://codereview.chromium.org/1739403002/diff/60001/crypto/ec_private_key_unittest.cc#newcode189 > ...
4 years, 9 months ago (2016-03-01 22:10:59 UTC) #10
davidben
https://codereview.chromium.org/1739403002/diff/60001/crypto/ec_private_key_unittest.cc File crypto/ec_private_key_unittest.cc (right): https://codereview.chromium.org/1739403002/diff/60001/crypto/ec_private_key_unittest.cc#newcode189 crypto/ec_private_key_unittest.cc:189: static const char kOpenSSLRawPublicKey[] = { On 2016/03/01 22:10:47, ...
4 years, 9 months ago (2016-03-01 22:18:43 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1739403002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1739403002/80001
4 years, 9 months ago (2016-03-01 22:20:08 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-01 23:47:57 UTC) #16
commit-bot: I haz the power
4 years, 9 months ago (2016-03-01 23:48:47 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7dad2a3ec1c5eada75bdd6af49a17c85113814e8
Cr-Commit-Position: refs/heads/master@{#378610}

Powered by Google App Engine
This is Rietveld 408576698