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

Unified Diff: components/cast_certificate/cast_cert_validator.cc

Issue 1969293002: Remove net::ParsedCertificate struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/cert/internal/parse_certificate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cast_certificate/cast_cert_validator.cc
diff --git a/components/cast_certificate/cast_cert_validator.cc b/components/cast_certificate/cast_cert_validator.cc
index 3a3ce0b091404cd882f0a7010f5cbf7df70e8be3..b83ad541174068c04236a0af64260beda24bc4c5 100644
--- a/components/cast_certificate/cast_cert_validator.cc
+++ b/components/cast_certificate/cast_cert_validator.cc
@@ -177,12 +177,15 @@ WARN_UNUSED_RESULT bool CheckTargetCertificate(
// TODO(eroman): Simplify this. The certificate chain verification
// function already parses this stuff, awkward to re-do it here.
- net::ParsedCertificate cert;
- if (!net::ParseCertificate(cert_der, &cert))
+ net::der::Input tbs_certificate_tlv;
+ net::der::Input signature_algorithm_tlv;
+ net::der::BitString signature_value;
+ if (!net::ParseCertificate(cert_der, &tbs_certificate_tlv,
+ &signature_algorithm_tlv, &signature_value))
return false;
net::ParsedTbsCertificate tbs;
- if (!net::ParseTbsCertificate(cert.tbs_certificate_tlv, &tbs))
+ if (!net::ParseTbsCertificate(tbs_certificate_tlv, &tbs))
return false;
// Get the extensions.
« no previous file with comments | « no previous file | net/cert/internal/parse_certificate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698