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

Issue 303933002: WTC: Started port of patch (Closed)

Created:
6 years, 6 months ago by wtc
Modified:
6 years, 6 months ago
Reviewers:
CC:
chromium-reviews, cbentzel+watch_chromium.org, mmenke
Visibility:
Public.

Description

[This CL has been abandoned.] WTC: Started port of patch

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -132 lines) Patch
M net/base/net_error_list.h View 1 chunk +3 lines, -0 lines 0 comments Download
M net/quic/crypto/channel_id.h View 1 chunk +22 lines, -13 lines 0 comments Download
M net/quic/crypto/channel_id_test.cc View 1 chunk +7 lines, -5 lines 0 comments Download
M net/quic/crypto/quic_crypto_client_config.h View 3 chunks +8 lines, -7 lines 0 comments Download
M net/quic/crypto/quic_crypto_client_config.cc View 3 chunks +14 lines, -8 lines 0 comments Download
M net/quic/test_tools/crypto_test_utils.h View 3 chunks +5 lines, -6 lines 0 comments Download
M net/quic/test_tools/crypto_test_utils.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M net/quic/test_tools/crypto_test_utils_nss.cc View 3 chunks +41 lines, -44 lines 1 comment Download
M net/quic/test_tools/crypto_test_utils_openssl.cc View 3 chunks +42 lines, -40 lines 0 comments Download
M net/socket/nss_ssl_util.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M net/tools/quic/quic_client.h View 1 chunk +6 lines, -5 lines 0 comments Download

Messages

Total messages: 1 (0 generated)
wtc
6 years, 6 months ago (2014-05-28 22:02:00 UTC) #1
https://codereview.chromium.org/303933002/diff/1/net/quic/test_tools/crypto_t...
File net/quic/test_tools/crypto_test_utils_nss.cc (right):

https://codereview.chromium.org/303933002/diff/1/net/quic/test_tools/crypto_t...
net/quic/test_tools/crypto_test_utils_nss.cc:91: crypto::ECPrivateKey*
ec_private_key_;

Note that the destructor of this class does not delete ec_private_key_. This is
not ideal, but is necessary. The reason is that the HostnameToKey() method
returns a cached copy of crypto::ECPrivateKey. So objects of this class cannot
outlive the ChannelIDSource.

It is possible to eliminate this restriction by having HostnameToKey() return a
duplicate copy of crypto::ECPrivateKey. That requires adding a Copy() method to
the crypto::ECPrivateKey class.

Powered by Google App Engine
This is Rietveld 408576698