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

Issue 12221136: Add CLIENT_CERT_TYPE_DSS_SIGN to net::SSLClientCertType (Closed)

Created:
7 years, 10 months ago by digit1
Modified:
7 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add CLIENT_CERT_TYPE_DSS_SIGN to net::SSLClientCertType This patch adds a new value to the net::SSLClientCertType that matches DSA-based client certificates. This will be used by Android's client certificate support code. For an example, see https://chromiumcodereview.appspot.com/12220104/ More specifically: - It modifies <net/base/ssl_client_cert_type.h> to add the new enum value. - It adds a corresponding non-translatable string ID to chrome/app/generated_resources.grd, and ensures that the ClientCertTypeToString() function in cookies_tree_model_util.cc returns it appropriately. - It adds SpdyCredentialBuilderTest.MAYBE_FailedWithDSACert unit test, similar to the MAYBE_FailedWithRSACert. This is based on the assumption that SPDY uses ECDSA certificates exclusively (no code supporting RSA-based ones was found under net/spdy). Note that server-bound certificate unit tests have not been modified (some of them handle both RSA and ECDSA certificates), given that none of the production support code for this feature seems to care about the certificate type, and that DSA-based certificates are extremely rare in practice, and disappearing. BUG=165668 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182119

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -0 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/cookies_tree_model_util.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M net/base/ssl_client_cert_type.h View 1 chunk +1 line, -0 lines 2 comments Download
M net/spdy/spdy_credential_builder_unittest.cc View 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
digit1
Dear reviewers, here's a patch to add CLIENT_CERT_TYPE_DSS_SIGN. This new value is used by the ...
7 years, 10 months ago (2013-02-12 13:16:32 UTC) #1
Ryan Sleevi
lgtm
7 years, 10 months ago (2013-02-12 18:18:35 UTC) #2
digit1
fyi, I've just added arv@ and estade@ as reviewers so they can review the chrome/browser/ui/webui/ ...
7 years, 10 months ago (2013-02-12 20:58:15 UTC) #3
Evan Stade
lgtm
7 years, 10 months ago (2013-02-12 21:35:06 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/digit@chromium.org/12221136/1
7 years, 10 months ago (2013-02-12 21:45:26 UTC) #5
commit-bot: I haz the power
Change committed as 182119
7 years, 10 months ago (2013-02-13 04:43:31 UTC) #6
wtc
Patch set 1 LGTM. https://chromiumcodereview.appspot.com/12221136/diff/1/net/base/ssl_client_cert_type.h File net/base/ssl_client_cert_type.h (right): https://chromiumcodereview.appspot.com/12221136/diff/1/net/base/ssl_client_cert_type.h#newcode14 net/base/ssl_client_cert_type.h:14: CLIENT_CERT_DSS_SIGN = 2, I verified ...
7 years, 10 months ago (2013-02-13 22:11:54 UTC) #7
digit1
7 years, 10 months ago (2013-02-14 06:29:05 UTC) #8
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/12221136/diff/1/net/base/ssl_client_ce...
File net/base/ssl_client_cert_type.h (right):

https://chromiumcodereview.appspot.com/12221136/diff/1/net/base/ssl_client_ce...
net/base/ssl_client_cert_type.h:14: CLIENT_CERT_DSS_SIGN = 2,
On 2013/02/13 22:11:54, wtc wrote:
> 
> I verified this matches the value of dss_sign(2) in TLS.
> 
Indeed, that's why I selected this value. I should have been clearer in my
commit message about this. Thanks for double checking :-)

Powered by Google App Engine
This is Rietveld 408576698