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

Issue 8381017: net: retain leading zero bytes in X.509 serial numbers. (Closed)

Created:
9 years, 2 months ago by agl
Modified:
9 years, 1 month ago
Reviewers:
wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

net: retain leading zero bytes in X.509 serial numbers. X.509 serial numbers should be a positive numbers according to the spec. However, certificates have been issued with negative serial numbers. Negative serial numbers are indicated with a most-significant bit of one. Positive numbers which would have a MSB of 1 have a zero byte prepended to avoid the ambiguity. Previously we removing leading zero bytes because we were only matching against a blacklist of serial numbers, none of which were negative. This change moves the handling of serial numbers to the place where they are used, rather than where they are parsed. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107956

Patch Set 1 #

Patch Set 2 : ... #

Total comments: 17

Patch Set 3 : ... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -284 lines) Patch
M net/base/crl_set.cc View 1 2 2 chunks +13 lines, -1 line 0 comments Download
M net/base/x509_certificate.h View 1 2 1 chunk +1 line, -6 lines 0 comments Download
M net/base/x509_certificate.cc View 1 2 1 chunk +15 lines, -263 lines 0 comments Download
M net/base/x509_certificate_mac.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M net/base/x509_certificate_nss.cc View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M net/base/x509_certificate_openssl.cc View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M net/base/x509_certificate_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/base/x509_certificate_win.cc View 1 2 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
agl
This is the result of a comment on http://codereview.chromium.org/8342054 (CRL sets) which ended up needing ...
9 years, 2 months ago (2011-10-24 20:03:09 UTC) #1
wtc
agl: is this CL ready for review?
9 years, 2 months ago (2011-10-25 01:26:16 UTC) #2
agl
Yes, but I appear to have forgotten to set you as a reviewer! I'll correct ...
9 years, 2 months ago (2011-10-25 01:43:16 UTC) #3
agl
9 years, 2 months ago (2011-10-25 19:33:12 UTC) #4
wtc
Patch Set 2 LGTM. Are the serial numbers in CRL sets the original serial numbers, ...
9 years, 2 months ago (2011-10-25 21:14:44 UTC) #5
agl
Thanks. Not submitting yet because it's late on a Friday. http://codereview.chromium.org/8381017/diff/1001/net/base/crl_set.cc File net/base/crl_set.cc (right): http://codereview.chromium.org/8381017/diff/1001/net/base/crl_set.cc#newcode420 ...
9 years, 1 month ago (2011-10-28 20:29:06 UTC) #6
wtc
Patch Set 3 LGTM.
9 years, 1 month ago (2011-10-28 20:53:06 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/agl@chromium.org/8381017/4003
9 years, 1 month ago (2011-10-31 14:11:48 UTC) #8
commit-bot: I haz the power
9 years, 1 month ago (2011-10-31 15:16:57 UTC) #9
Change committed as 107956

Powered by Google App Engine
This is Rietveld 408576698