| 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().
|
| //
|
|
|