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

Side by Side Diff: net/cert/internal/signature_policy.cc

Issue 2824713002: Trim some dependencies on crypto/x509 headers. (Closed)
Patch Set: . Created 3 years, 8 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
« no previous file with comments | « net/cert/cert_verify_proc_android.cc ('k') | net/cert/internal/verify_signed_data_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "net/cert/internal/signature_policy.h" 5 #include "net/cert/internal/signature_policy.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/cert/internal/cert_error_params.h" 8 #include "net/cert/internal/cert_error_params.h"
9 #include "net/cert/internal/cert_errors.h" 9 #include "net/cert/internal/cert_errors.h"
10 #include "third_party/boringssl/src/include/openssl/obj.h" 10 #include "third_party/boringssl/src/include/openssl/nid.h"
11 11
12 namespace net { 12 namespace net {
13 13
14 DEFINE_CERT_ERROR_ID(kRsaModulusTooSmall, "RSA modulus too small"); 14 DEFINE_CERT_ERROR_ID(kRsaModulusTooSmall, "RSA modulus too small");
15 15
16 namespace { 16 namespace {
17 17
18 DEFINE_CERT_ERROR_ID(kUnacceptableCurveForEcdsa, 18 DEFINE_CERT_ERROR_ID(kUnacceptableCurveForEcdsa,
19 "Only P-256, P-384, P-521 are supported for ECDSA"); 19 "Only P-256, P-384, P-521 are supported for ECDSA");
20 20
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 : min_rsa_modulus_length_bits_(min_rsa_modulus_length_bits) {} 101 : min_rsa_modulus_length_bits_(min_rsa_modulus_length_bits) {}
102 102
103 bool SimpleSignaturePolicy::IsAcceptableModulusLengthForRsa( 103 bool SimpleSignaturePolicy::IsAcceptableModulusLengthForRsa(
104 size_t modulus_length_bits, 104 size_t modulus_length_bits,
105 CertErrors* errors) const { 105 CertErrors* errors) const {
106 return IsModulusSizeGreaterOrEqual(modulus_length_bits, 106 return IsModulusSizeGreaterOrEqual(modulus_length_bits,
107 min_rsa_modulus_length_bits_, errors); 107 min_rsa_modulus_length_bits_, errors);
108 } 108 }
109 109
110 } // namespace net 110 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/cert_verify_proc_android.cc ('k') | net/cert/internal/verify_signed_data_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698