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

Unified Diff: components/cast_certificate/cast_cert_validator.h

Issue 2050983002: Cast device revocation checking. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: For review 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
Index: components/cast_certificate/cast_cert_validator.h
diff --git a/components/cast_certificate/cast_cert_validator.h b/components/cast_certificate/cast_cert_validator.h
index 1c335ae6530b446a86bf234d00ac39f5774a0c7f..12a7a23e102c87b809a183e10d0728753f463bd3 100644
--- a/components/cast_certificate/cast_cert_validator.h
+++ b/components/cast_certificate/cast_cert_validator.h
@@ -76,6 +76,20 @@ bool VerifyDeviceCert(const std::vector<std::string>& certs,
std::unique_ptr<CertVerificationContext>* context,
CastDeviceCertPolicy* policy) WARN_UNUSED_RESULT;
+// Returns the DER-encoded certificate of the trust anchor with the name
+// provided.
+//
+// Input:
+//
+// * |name| is the DER-encoded name of the trust anchor's certificate
+//
+// Output:
+//
+// Returns the DER-encoded certificate of the trust anchor if the name of the
+// certificate matches the provided name. An empty string is returned if there
+// is no match.
+const std::string FindCastTrustAnchorByName(const std::string& name);
+
// Exposed only for unit-tests, not for use in production code.
// Production code would get a context from VerifyDeviceCert().
//

Powered by Google App Engine
This is Rietveld 408576698