| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CERT_VERIFY_PROC_H_ | 5 #ifndef NET_CERT_CERT_VERIFY_PROC_H_ |
| 6 #define NET_CERT_CERT_VERIFY_PROC_H_ | 6 #define NET_CERT_CERT_VERIFY_PROC_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // to the Verify() call. The |ocsp_response| parameter passed to Verify() is | 75 // to the Verify() call. The |ocsp_response| parameter passed to Verify() is |
| 76 // ignored when this returns false. | 76 // ignored when this returns false. |
| 77 virtual bool SupportsOCSPStapling() const = 0; | 77 virtual bool SupportsOCSPStapling() const = 0; |
| 78 | 78 |
| 79 protected: | 79 protected: |
| 80 CertVerifyProc(); | 80 CertVerifyProc(); |
| 81 virtual ~CertVerifyProc(); | 81 virtual ~CertVerifyProc(); |
| 82 | 82 |
| 83 private: | 83 private: |
| 84 friend class base::RefCountedThreadSafe<CertVerifyProc>; | 84 friend class base::RefCountedThreadSafe<CertVerifyProc>; |
| 85 FRIEND_TEST_ALL_PREFIXES(CertVerifyProcTest, DigiNotarCerts); | 85 FRIEND_TEST_ALL_PREFIXES(CertVerifyProcBaseClassTest, DigiNotarCerts); |
| 86 FRIEND_TEST_ALL_PREFIXES(CertVerifyProcTest, TestHasTooLongValidity); | 86 FRIEND_TEST_ALL_PREFIXES(CertVerifyProcBaseClassTest, TestHasTooLongValidity); |
| 87 FRIEND_TEST_ALL_PREFIXES(CertVerifyProcTest, | 87 FRIEND_TEST_ALL_PREFIXES(CertVerifyProcBaseClassTest, |
| 88 VerifyRejectsSHA1AfterDeprecationLegacyMode); | 88 VerifyRejectsSHA1AfterDeprecationLegacyMode); |
| 89 | 89 |
| 90 // Performs the actual verification using the desired underlying | 90 // Performs the actual verification using the desired underlying |
| 91 // | 91 // |
| 92 // On entry, |verify_result| will be default-initialized as a successful | 92 // On entry, |verify_result| will be default-initialized as a successful |
| 93 // validation, with |verify_result->verified_cert| set to |cert|. | 93 // validation, with |verify_result->verified_cert| set to |cert|. |
| 94 // | 94 // |
| 95 // Implementations are expected to fill in all applicable fields, excluding: | 95 // Implementations are expected to fill in all applicable fields, excluding: |
| 96 // | 96 // |
| 97 // * ocsp_result | 97 // * ocsp_result |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 // Emergency kill-switch for SHA-1 deprecation. Disabled by default. | 146 // Emergency kill-switch for SHA-1 deprecation. Disabled by default. |
| 147 static const base::Feature kSHA1LegacyMode; | 147 static const base::Feature kSHA1LegacyMode; |
| 148 const bool sha1_legacy_mode_enabled; | 148 const bool sha1_legacy_mode_enabled; |
| 149 | 149 |
| 150 DISALLOW_COPY_AND_ASSIGN(CertVerifyProc); | 150 DISALLOW_COPY_AND_ASSIGN(CertVerifyProc); |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 } // namespace net | 153 } // namespace net |
| 154 | 154 |
| 155 #endif // NET_CERT_CERT_VERIFY_PROC_H_ | 155 #endif // NET_CERT_CERT_VERIFY_PROC_H_ |
| OLD | NEW |