| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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_WHITELIST_H_ | 5 #ifndef NET_CERT_CERT_VERIFY_PROC_WHITELIST_H_ |
| 6 #define NET_CERT_CERT_VERIFY_PROC_WHITELIST_H_ | 6 #define NET_CERT_CERT_VERIFY_PROC_WHITELIST_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 8 #include <stdint.h> | 9 #include <stdint.h> |
| 9 | 10 |
| 10 #include "crypto/sha2.h" | 11 #include "crypto/sha2.h" |
| 11 #include "net/base/hash_value.h" | 12 #include "net/base/hash_value.h" |
| 12 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
| 13 | 14 |
| 14 namespace net { | 15 namespace net { |
| 15 | 16 |
| 16 class X509Certificate; | 17 class X509Certificate; |
| 17 | 18 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 37 | 38 |
| 38 // Sets the certificate whitelist for testing. Supply nullptr/0 to reset to | 39 // Sets the certificate whitelist for testing. Supply nullptr/0 to reset to |
| 39 // the built-in whitelist. | 40 // the built-in whitelist. |
| 40 void NET_EXPORT_PRIVATE | 41 void NET_EXPORT_PRIVATE |
| 41 SetCertificateWhitelistForTesting(const PublicKeyWhitelist* whitelist, | 42 SetCertificateWhitelistForTesting(const PublicKeyWhitelist* whitelist, |
| 42 size_t whitelist_size); | 43 size_t whitelist_size); |
| 43 | 44 |
| 44 } // namespace net | 45 } // namespace net |
| 45 | 46 |
| 46 #endif // NET_CERT_CERT_VERIFY_PROC_WHITELIST | 47 #endif // NET_CERT_CERT_VERIFY_PROC_WHITELIST |
| OLD | NEW |