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

Unified Diff: net/cert/asn1_util.h

Issue 2436233002: Record UMA metrics for Must-Staple certificates on private roots (Closed)
Patch Set: Add another histogram for OCSP response status 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') | net/cert/asn1_util.cc » ('J')
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..7887b46c4976686e541b452dce7d2b73efd1f274 100644
--- a/net/cert/asn1_util.h
+++ b/net/cert/asn1_util.h
@@ -43,6 +43,14 @@ NET_EXPORT_PRIVATE bool ExtractCRLURLsFromDERCert(
base::StringPiece cert,
std::vector<base::StringPiece>* urls_out);
+// HasTLSFeatureExtensions parses the DER encoded certificate in |cert|
eroman 2016/10/21 01:49:23 typo: HasTLSFeatureExtension
estark 2016/10/21 02:11:29 Done.
+// and extracts the TLS feature extension
+// (https://tools.ietf.org/html/rfc7633) if present. On successful
eroman 2016/10/21 01:49:22 Thanks for including the RFC reference in the comm
+// return, |*has_tls_feature_extension| to true if the TLS feature
eroman 2016/10/21 01:49:23 Can you re-work the wording on this? Feels like so
estark 2016/10/21 02:11:29 Done.
+// extension was present and false otherwise.
+NET_EXPORT_PRIVATE bool HasTLSFeatureExtension(base::StringPiece cert,
eroman 2016/10/21 01:49:22 API question: Instead of two bool outputs, can the
estark 2016/10/21 02:11:29 Yeah, I think that'll work. Done.
+ bool* has_tls_feature_extension);
+
} // namespace asn1
} // namespace net
« no previous file with comments | « no previous file | net/cert/asn1_util.cc » ('j') | net/cert/asn1_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698