Add new ParsedCertificate class, move TrustStore to own file.
This consolidates the certificate parsing from various places in
verify_certificate_chain.cc into a single class that pre-parses all the
important information.
The relevant places are all changed to use the new ParsedCertificate
class, and TrustStore is separated into its own file.
BUG=410574
Review-Url: https://codereview.chromium.org/1976433002
Cr-Commit-Position: refs/heads/master@{#397863}
diff --git a/net/net.gypi b/net/net.gypi
index 868c64c3..ea7bc65 100644
--- a/net/net.gypi
+++ b/net/net.gypi
@@ -98,10 +98,14 @@
'cert/internal/parse_name.h',
'cert/internal/parse_ocsp.cc',
'cert/internal/parse_ocsp.h',
+ 'cert/internal/parsed_certificate.cc',
+ 'cert/internal/parsed_certificate.h',
'cert/internal/signature_algorithm.cc',
'cert/internal/signature_algorithm.h',
'cert/internal/signature_policy.cc',
'cert/internal/signature_policy.h',
+ 'cert/internal/trust_store.cc',
+ 'cert/internal/trust_store.h',
'cert/internal/verify_certificate_chain.cc',
'cert/internal/verify_certificate_chain.h',
'cert/internal/verify_name_match.cc',