| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_CAST_CERTIFICATE_CAST_CRL_H_ | 5 #ifndef COMPONENTS_CAST_CERTIFICATE_CAST_CRL_H_ |
| 6 #define COMPONENTS_CAST_CERTIFICATE_CAST_CRL_H_ | 6 #define COMPONENTS_CAST_CERTIFICATE_CAST_CRL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 const base::Time& time); | 52 const base::Time& time); |
| 53 | 53 |
| 54 // Exposed only for testing, not for use in production code. | 54 // Exposed only for testing, not for use in production code. |
| 55 // | 55 // |
| 56 // Replaces trusted root certificates into the CastCRLTrustStore. | 56 // Replaces trusted root certificates into the CastCRLTrustStore. |
| 57 // | 57 // |
| 58 // Output: | 58 // Output: |
| 59 // Returns true if successful, false if nothing is changed. | 59 // Returns true if successful, false if nothing is changed. |
| 60 bool SetCRLTrustAnchorForTest(const std::string& cert) WARN_UNUSED_RESULT; | 60 bool SetCRLTrustAnchorForTest(const std::string& cert) WARN_UNUSED_RESULT; |
| 61 | 61 |
| 62 // Exposed only for testing, not for use in production code. |
| 63 // |
| 64 // Resets CastCRLTrustStore to the default set of roots. |
| 65 void ResetCRLTrustAnchorForTest(); |
| 66 |
| 62 } // namespace cast_certificate | 67 } // namespace cast_certificate |
| 63 | 68 |
| 64 #endif // COMPONENTS_CAST_CERTIFICATE_CAST_CRL_H_ | 69 #endif // COMPONENTS_CAST_CERTIFICATE_CAST_CRL_H_ |
| OLD | NEW |