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

Unified Diff: net/cert/internal/parsed_certificate.h

Issue 2079273004: Allow Cast certificates to have serial numbers greater than 20 bytes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove allowance of invalid serial numbers for cast roots Created 4 years, 6 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/parse_ocsp.cc ('k') | net/cert/internal/parsed_certificate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/internal/parsed_certificate.h
diff --git a/net/cert/internal/parsed_certificate.h b/net/cert/internal/parsed_certificate.h
index 0f960e2aa022192b2a9251168c7ed46e03727e22..823775229898d2057c417b5f05519aa4f2bb5bd2 100644
--- a/net/cert/internal/parsed_certificate.h
+++ b/net/cert/internal/parsed_certificate.h
@@ -50,7 +50,8 @@ class NET_EXPORT ParsedCertificate
static scoped_refptr<ParsedCertificate> CreateFromCertificateData(
const uint8_t* data,
size_t length,
- DataSource source);
+ DataSource source,
+ const ParseCertificateOptions& options);
// Creates a ParsedCertificate and appends it to |chain|. Returns true if the
// certificate was successfully parsed and added. If false is return, |chain|
@@ -59,11 +60,13 @@ class NET_EXPORT ParsedCertificate
const uint8_t* data,
size_t length,
DataSource source,
+ const ParseCertificateOptions& options,
std::vector<scoped_refptr<net::ParsedCertificate>>* chain);
// Creates a ParsedCertificate, copying the data from |data|.
static scoped_refptr<ParsedCertificate> CreateFromCertificateCopy(
- const base::StringPiece& data);
+ const base::StringPiece& data,
+ const ParseCertificateOptions& options);
// Returns the DER-encoded certificate data for this cert.
const der::Input& der_cert() const { return cert_; }
« no previous file with comments | « net/cert/internal/parse_ocsp.cc ('k') | net/cert/internal/parsed_certificate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698