OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 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_INTERNAL_SIGNATURE_POLICY_H_ | 5 #ifndef NET_CERT_INTERNAL_SIGNATURE_POLICY_H_ |
6 #define NET_CERT_INTERNAL_SIGNATURE_POLICY_H_ | 6 #define NET_CERT_INTERNAL_SIGNATURE_POLICY_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
9 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
10 #include "net/cert/internal/signature_algorithm.h" | 12 #include "net/cert/internal/signature_algorithm.h" |
11 | 13 |
12 namespace net { | 14 namespace net { |
13 | 15 |
14 class SignatureAlgorithm; | 16 class SignatureAlgorithm; |
15 | 17 |
16 // SignaturePolicy is an interface (and base implementation) for applying | 18 // SignaturePolicy is an interface (and base implementation) for applying |
17 // policies when verifying signed data. It lets callers override which | 19 // policies when verifying signed data. It lets callers override which |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 bool IsAcceptableModulusLengthForRsa( | 57 bool IsAcceptableModulusLengthForRsa( |
56 size_t modulus_length_bits) const override; | 58 size_t modulus_length_bits) const override; |
57 | 59 |
58 private: | 60 private: |
59 const size_t min_rsa_modulus_length_bits_; | 61 const size_t min_rsa_modulus_length_bits_; |
60 }; | 62 }; |
61 | 63 |
62 } // namespace net | 64 } // namespace net |
63 | 65 |
64 #endif // NET_CERT_INTERNAL_SIGNATURE_POLICY_H_ | 66 #endif // NET_CERT_INTERNAL_SIGNATURE_POLICY_H_ |
OLD | NEW |