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

Side by Side Diff: net/cert/cert_verify_proc.cc

Issue 13006020: net: extract net/cert out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « net/cert/cert_verify_proc.h ('k') | net/cert/cert_verify_proc_android.h » ('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 (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 #include "net/base/cert_verify_proc.h" 5 #include "net/cert/cert_verify_proc.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/sha1.h" 8 #include "base/sha1.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "net/base/cert_status_flags.h"
11 #include "net/base/cert_verifier.h"
12 #include "net/base/cert_verify_result.h"
13 #include "net/base/crl_set.h"
14 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
15 #include "net/base/x509_certificate.h" 11 #include "net/cert/cert_status_flags.h"
12 #include "net/cert/cert_verifier.h"
13 #include "net/cert/cert_verify_result.h"
14 #include "net/cert/crl_set.h"
15 #include "net/cert/x509_certificate.h"
16 16
17 #if defined(USE_NSS) || defined(OS_IOS) 17 #if defined(USE_NSS) || defined(OS_IOS)
18 #include "net/base/cert_verify_proc_nss.h" 18 #include "net/cert/cert_verify_proc_nss.h"
19 #elif defined(USE_OPENSSL) && !defined(OS_ANDROID) 19 #elif defined(USE_OPENSSL) && !defined(OS_ANDROID)
20 #include "net/base/cert_verify_proc_openssl.h" 20 #include "net/cert/cert_verify_proc_openssl.h"
21 #elif defined(OS_ANDROID) 21 #elif defined(OS_ANDROID)
22 #include "net/base/cert_verify_proc_android.h" 22 #include "net/cert/cert_verify_proc_android.h"
23 #elif defined(OS_MACOSX) 23 #elif defined(OS_MACOSX)
24 #include "net/base/cert_verify_proc_mac.h" 24 #include "net/cert/cert_verify_proc_mac.h"
25 #elif defined(OS_WIN) 25 #elif defined(OS_WIN)
26 #include "net/base/cert_verify_proc_win.h" 26 #include "net/cert/cert_verify_proc_win.h"
27 #else 27 #else
28 #error Implement certificate verification. 28 #error Implement certificate verification.
29 #endif 29 #endif
30 30
31 31
32 namespace net { 32 namespace net {
33 33
34 namespace { 34 namespace {
35 35
36 // Returns true if |type| is |kPublicKeyTypeRSA| or |kPublicKeyTypeDSA|, and 36 // Returns true if |type| is |kPublicKeyTypeRSA| or |kPublicKeyTypeDSA|, and
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 memcmp(j->data(), kHashes[i], base::kSHA1Length) == 0) { 280 memcmp(j->data(), kHashes[i], base::kSHA1Length) == 0) {
281 return true; 281 return true;
282 } 282 }
283 } 283 }
284 } 284 }
285 285
286 return false; 286 return false;
287 } 287 }
288 288
289 } // namespace net 289 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/cert_verify_proc.h ('k') | net/cert/cert_verify_proc_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698