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

Side by Side Diff: components/cast_certificate/cast_crl.h

Issue 2303673004: Hook up Chrome Cast sender to Cast CRL. (Closed)
Patch Set: Fixed nit 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 unified diff | Download patch
OLDNEW
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // 46 //
47 // Inputs: 47 // Inputs:
48 // * |crl_proto| is a serialized cast_certificate.CrlBundle proto. 48 // * |crl_proto| is a serialized cast_certificate.CrlBundle proto.
49 // * |time| is the unix timestamp to use for determining if the CRL is valid. 49 // * |time| is the unix timestamp to use for determining if the CRL is valid.
50 // 50 //
51 // Output: 51 // Output:
52 // Returns the CRL object if success, nullptr otherwise. 52 // Returns the CRL object if success, nullptr otherwise.
53 std::unique_ptr<CastCRL> ParseAndVerifyCRL(const std::string& crl_proto, 53 std::unique_ptr<CastCRL> ParseAndVerifyCRL(const std::string& crl_proto,
54 const base::Time& time); 54 const base::Time& time);
55 55
56 // Exposed only for testing, not for use in production code.
57 //
58 // This is an overloaded version of ParseAndVerifyCRL that allows 56 // This is an overloaded version of ParseAndVerifyCRL that allows
59 // the input of a custom TrustStore. 57 // the input of a custom TrustStore.
60 std::unique_ptr<CastCRL> ParseAndVerifyCRLForTest(const std::string& crl_proto, 58 //
61 const base::Time& time, 59 // For production use pass |trust_store| as nullptr to use the production trust
62 net::TrustStore* trust_store); 60 // store.
61 std::unique_ptr<CastCRL> ParseAndVerifyCRLUsingCustomTrustStore(
62 const std::string& crl_proto,
63 const base::Time& time,
64 net::TrustStore* trust_store);
63 65
64 } // namespace cast_certificate 66 } // namespace cast_certificate
65 67
66 #endif // COMPONENTS_CAST_CERTIFICATE_CAST_CRL_H_ 68 #endif // COMPONENTS_CAST_CERTIFICATE_CAST_CRL_H_
OLDNEW
« no previous file with comments | « components/cast_certificate/cast_cert_validator_unittest.cc ('k') | components/cast_certificate/cast_crl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698