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

Unified Diff: net/cert/asn1_util.h

Issue 2436233002: Record UMA metrics for Must-Staple certificates on private roots (Closed)
Patch Set: ... and to README Created 4 years, 2 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/asn1_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/asn1_util.h
diff --git a/net/cert/asn1_util.h b/net/cert/asn1_util.h
index 23bc2d2cf9039487381fbb4eb0746c06932b25fa..fb64bfbb58b38462872e5f7e911dc8b38d86bd07 100644
--- a/net/cert/asn1_util.h
+++ b/net/cert/asn1_util.h
@@ -43,6 +43,13 @@ NET_EXPORT_PRIVATE bool ExtractCRLURLsFromDERCert(
base::StringPiece cert,
std::vector<base::StringPiece>* urls_out);
+// HasTLSFeatureExtension parses the DER encoded certificate in |cert|
+// and extracts the TLS feature extension
+// (https://tools.ietf.org/html/rfc7633) if present. Returns true if the
+// TLS feature extension was present, and false if the extension was not
+// present or if there was a parsing failure.
+NET_EXPORT_PRIVATE bool HasTLSFeatureExtension(base::StringPiece cert);
+
} // namespace asn1
} // namespace net
« no previous file with comments | « no previous file | net/cert/asn1_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698