DescriptionOn OS X, when accessing a certificate field (subject, issuer, extension, etc), rather than parsing the entire certificate and converting all known fields to their CSSM equivalents, just parse the desired field.
Additionally, when parsing multiple fields, instead of parsing the certificate multiple times, parse it once and cache the internal parse results. While the cached handle cannot reliably be used across threads, it can reduce the amount of parsing for the common case, where constructing an X509Certificate on OS X requires parsing three fields.
BUG=101231
TEST=net_unittests passes on OS X 10.5, 10.6, and 10.7
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112636
Patch Set 1 #
Total comments: 12
Patch Set 2 : Rebased #Patch Set 3 : Review feedback #Messages
Total messages: 7 (0 generated)
|