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

Unified Diff: net/cert/x509_util.cc

Issue 2327973002: Add CertErrors* parameter to the main Certificate parsing functions. (Closed)
Patch Set: StringPiece is kind of dangerous... Created 4 years, 3 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 | « net/cert/internal/verify_certificate_chain_pkits_unittest.cc ('k') | net/cert/x509_util_openssl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/x509_util.cc
diff --git a/net/cert/x509_util.cc b/net/cert/x509_util.cc
index 8729e560c64aecefb4befcdf59389a99429e5b6d..490252c6a4de5f90aa312f09636ef6b40cc48149 100644
--- a/net/cert/x509_util.cc
+++ b/net/cert/x509_util.cc
@@ -127,7 +127,8 @@ bool ParseCertificateSandboxed(const base::StringPiece& certificate,
der::Input cert_data(certificate);
der::Input tbs_cert, signature_alg;
der::BitString signature_value;
- if (!ParseCertificate(cert_data, &tbs_cert, &signature_alg, &signature_value))
+ if (!ParseCertificate(cert_data, &tbs_cert, &signature_alg, &signature_value,
+ nullptr))
return false;
ParsedTbsCertificate parsed_tbs_cert;
« no previous file with comments | « net/cert/internal/verify_certificate_chain_pkits_unittest.cc ('k') | net/cert/x509_util_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698