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

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

Issue 14223008: net: Update the include paths of base/string_piece.h to its new location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/x509_certificate_mac.cc ('k') | net/dns/dns_query.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/x509_util.h" 5 #include "net/cert/x509_util.h"
6 #include "net/cert/x509_util_openssl.h" 6 #include "net/cert/x509_util_openssl.h"
7 7
8 #include <algorithm> 8 #include <algorithm>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/string_piece.h" 11 #include "base/strings/string_piece.h"
12 #include "net/cert/x509_cert_types.h" 12 #include "net/cert/x509_cert_types.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 namespace x509_util { 16 namespace x509_util {
17 17
18 bool IsSupportedValidityRange(base::Time not_valid_before, 18 bool IsSupportedValidityRange(base::Time not_valid_before,
19 base::Time not_valid_after) { 19 base::Time not_valid_after) {
20 if (not_valid_before > not_valid_after) 20 if (not_valid_before > not_valid_after)
21 return false; 21 return false;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 x509_time->length); 110 x509_time->length);
111 111
112 CertDateFormat format = x509_time->type == V_ASN1_UTCTIME ? 112 CertDateFormat format = x509_time->type == V_ASN1_UTCTIME ?
113 CERT_DATE_FORMAT_UTC_TIME : CERT_DATE_FORMAT_GENERALIZED_TIME; 113 CERT_DATE_FORMAT_UTC_TIME : CERT_DATE_FORMAT_GENERALIZED_TIME;
114 return ParseCertificateDate(str_date, format, time); 114 return ParseCertificateDate(str_date, format, time);
115 } 115 }
116 116
117 } // namespace x509_util 117 } // namespace x509_util
118 118
119 } // namespace net 119 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/x509_certificate_mac.cc ('k') | net/dns/dns_query.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698