Descriptionnet: 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 : ... #
Messages
Total messages: 9 (0 generated)
|