| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 NET_CERT_CT_POLICY_ENFORCER_H | 5 #ifndef NET_CERT_CT_POLICY_ENFORCER_H |
| 6 #define NET_CERT_CT_POLICY_ENFORCER_H | 6 #define NET_CERT_CT_POLICY_ENFORCER_H |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 X509Certificate* cert, | 86 X509Certificate* cert, |
| 87 const SCTList& verified_scts, | 87 const SCTList& verified_scts, |
| 88 const BoundNetLog& net_log); | 88 const BoundNetLog& net_log); |
| 89 | 89 |
| 90 // Returns the CT/EV policy compliance status for a given certificate | 90 // Returns the CT/EV policy compliance status for a given certificate |
| 91 // and collection of SCTs. | 91 // and collection of SCTs. |
| 92 // |cert| is the certificate for which to check compliance, and | 92 // |cert| is the certificate for which to check compliance, and |
| 93 // ||verified_scts| contains any/all SCTs associated with |cert| that | 93 // ||verified_scts| contains any/all SCTs associated with |cert| that |
| 94 // |have been verified (well-formed, issued by known logs, and | 94 // |have been verified (well-formed, issued by known logs, and |
| 95 // |applying to |cert|). | 95 // |applying to |cert|). |
| 96 // Note: |ev_whitelist| is an optional whitelist of certificates considered |
| 97 // to be conforming. |
| 96 virtual ct::EVPolicyCompliance DoesConformToCTEVPolicy( | 98 virtual ct::EVPolicyCompliance DoesConformToCTEVPolicy( |
| 97 X509Certificate* cert, | 99 X509Certificate* cert, |
| 98 const ct::EVCertsWhitelist* ev_whitelist, | 100 const ct::EVCertsWhitelist* ev_whitelist, |
| 99 const SCTList& verified_scts, | 101 const SCTList& verified_scts, |
| 100 const BoundNetLog& net_log); | 102 const BoundNetLog& net_log); |
| 101 }; | 103 }; |
| 102 | 104 |
| 103 } // namespace net | 105 } // namespace net |
| 104 | 106 |
| 105 #endif // NET_CERT_CT_POLICY_ENFORCER_H | 107 #endif // NET_CERT_CT_POLICY_ENFORCER_H |
| OLD | NEW |