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

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

Issue 1838513002: Revert of Adding iOS OpenSSL Implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/BUILD.gn ('k') | net/cert/cert_verify_proc_ios.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/cert/cert_verify_proc.h" 5 #include "net/cert/cert_verify_proc.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 14 matching lines...) Expand all
25 #include "net/cert/crl_set.h" 25 #include "net/cert/crl_set.h"
26 #include "net/cert/x509_certificate.h" 26 #include "net/cert/x509_certificate.h"
27 #include "url/url_canon.h" 27 #include "url/url_canon.h"
28 28
29 #if defined(USE_NSS_VERIFIER) 29 #if defined(USE_NSS_VERIFIER)
30 #include "net/cert/cert_verify_proc_nss.h" 30 #include "net/cert/cert_verify_proc_nss.h"
31 #elif defined(USE_OPENSSL_CERTS) && !defined(OS_ANDROID) 31 #elif defined(USE_OPENSSL_CERTS) && !defined(OS_ANDROID)
32 #include "net/cert/cert_verify_proc_openssl.h" 32 #include "net/cert/cert_verify_proc_openssl.h"
33 #elif defined(OS_ANDROID) 33 #elif defined(OS_ANDROID)
34 #include "net/cert/cert_verify_proc_android.h" 34 #include "net/cert/cert_verify_proc_android.h"
35 #elif defined(OS_IOS)
36 #include "net/cert/cert_verify_proc_ios.h"
37 #elif defined(OS_MACOSX) 35 #elif defined(OS_MACOSX)
38 #include "net/cert/cert_verify_proc_mac.h" 36 #include "net/cert/cert_verify_proc_mac.h"
39 #elif defined(OS_WIN) 37 #elif defined(OS_WIN)
40 #include "net/cert/cert_verify_proc_win.h" 38 #include "net/cert/cert_verify_proc_win.h"
41 #else 39 #else
42 #error Implement certificate verification. 40 #error Implement certificate verification.
43 #endif 41 #endif
44 42
45 namespace net { 43 namespace net {
46 44
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 } // namespace 202 } // namespace
205 203
206 // static 204 // static
207 CertVerifyProc* CertVerifyProc::CreateDefault() { 205 CertVerifyProc* CertVerifyProc::CreateDefault() {
208 #if defined(USE_NSS_VERIFIER) 206 #if defined(USE_NSS_VERIFIER)
209 return new CertVerifyProcNSS(); 207 return new CertVerifyProcNSS();
210 #elif defined(USE_OPENSSL_CERTS) && !defined(OS_ANDROID) 208 #elif defined(USE_OPENSSL_CERTS) && !defined(OS_ANDROID)
211 return new CertVerifyProcOpenSSL(); 209 return new CertVerifyProcOpenSSL();
212 #elif defined(OS_ANDROID) 210 #elif defined(OS_ANDROID)
213 return new CertVerifyProcAndroid(); 211 return new CertVerifyProcAndroid();
214 #elif defined(OS_IOS)
215 return new CertVerifyProcIOS();
216 #elif defined(OS_MACOSX) 212 #elif defined(OS_MACOSX)
217 return new CertVerifyProcMac(); 213 return new CertVerifyProcMac();
218 #elif defined(OS_WIN) 214 #elif defined(OS_WIN)
219 return new CertVerifyProcWin(); 215 return new CertVerifyProcWin();
220 #else 216 #else
221 return NULL; 217 return NULL;
222 #endif 218 #endif
223 } 219 }
224 220
225 CertVerifyProc::CertVerifyProc() {} 221 CertVerifyProc::CertVerifyProc() {}
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 return true; 572 return true;
577 573
578 // For certificates issued after 1 April 2015: 39 months. 574 // For certificates issued after 1 April 2015: 39 months.
579 if (start >= time_2015_04_01 && month_diff > 39) 575 if (start >= time_2015_04_01 && month_diff > 39)
580 return true; 576 return true;
581 577
582 return false; 578 return false;
583 } 579 }
584 580
585 } // namespace net 581 } // namespace net
OLDNEW
« no previous file with comments | « net/BUILD.gn ('k') | net/cert/cert_verify_proc_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698