Chromium Code Reviews| Index: extensions/common/cast/cast_cert_validator.cc |
| diff --git a/extensions/common/cast/cast_cert_validator.cc b/extensions/common/cast/cast_cert_validator.cc |
| index f80b1063d132cecaa7cbd1f2dc177230e5d6f621..2b7add252f035700d840691f9cdfcc9400aeac2c 100644 |
| --- a/extensions/common/cast/cast_cert_validator.cc |
| +++ b/extensions/common/cast/cast_cert_validator.cc |
| @@ -289,6 +289,11 @@ scoped_ptr<CertVerificationContext> CertVerificationContextImplForTest( |
| new CertVerificationContextImpl(net::der::Input(spki), "CommonName")); |
| } |
| +bool AddTrustAnchorForTest(const uint8_t* data, size_t length) { |
| + return CastTrustStore::Get().AddTrustedCertificateWithoutCopying(data, |
|
eroman
2016/04/22 05:58:54
If you are using the "*WithoutCopying()" flavor, p
ryanchung
2016/04/22 19:03:49
Done, I added the warning. The certificate data wi
|
| + length); |
| +} |
| + |
| } // namespace cast_crypto |
| } // namespace api |
| } // namespace extensions |