Commit 359962a8 authored by rsleevi@chromium.org's avatar rsleevi@chromium.org

On OS X, when accessing a certificate field (subject, issuer, extension, etc),...

On 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


Review URL: http://codereview.chromium.org/8470012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112636 0039d316-1c4b-4281-b951-d872f2087c98
parent 123f2748
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment