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

Side by Side Diff: net/base/x509_certificate_mac.cc

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/x509_certificate.h" 5 #include "net/base/x509_certificate.h"
6 6
7 #include <CommonCrypto/CommonDigest.h> 7 #include <CommonCrypto/CommonDigest.h>
8 #include <time.h> 8 #include <time.h>
9 9
10 #include "base/histogram.h" 10 #include "base/histogram.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/pickle.h" 12 #include "base/pickle.h"
13 #include "net/base/cert_status_flags.h" 13 #include "net/base/cert_status_flags.h"
14 #include "net/base/ev_root_ca_metadata.h" 14 #include "net/base/ev_root_ca_metadata.h"
15 15
16 using base::Time;
17
16 namespace net { 18 namespace net {
17 19
18 namespace { 20 namespace {
19 21
20 // Calculates the SHA-1 fingerprint of the certificate. Returns an empty 22 // Calculates the SHA-1 fingerprint of the certificate. Returns an empty
21 // (all zero) fingerprint on failure. 23 // (all zero) fingerprint on failure.
22 X509Certificate::Fingerprint CalculateFingerprint( 24 X509Certificate::Fingerprint CalculateFingerprint(
23 X509Certificate::OSCertHandle cert) { 25 X509Certificate::OSCertHandle cert) {
24 X509Certificate::Fingerprint sha1; 26 X509Certificate::Fingerprint sha1;
25 memset(sha1.data, 0, sizeof(sha1.data)); 27 memset(sha1.data, 0, sizeof(sha1.data));
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 // in the certificate chain according to Section 7 (pp. 11-12) of the EV 339 // in the certificate chain according to Section 7 (pp. 11-12) of the EV
338 // Certificate Guidelines Version 1.0 at 340 // Certificate Guidelines Version 1.0 at
339 // http://cabforum.org/EV_Certificate_Guidelines.pdf. 341 // http://cabforum.org/EV_Certificate_Guidelines.pdf.
340 bool X509Certificate::IsEV(int cert_status) const { 342 bool X509Certificate::IsEV(int cert_status) const {
341 // TODO(avi): implement this 343 // TODO(avi): implement this
342 NOTIMPLEMENTED(); 344 NOTIMPLEMENTED();
343 return false; 345 return false;
344 } 346 }
345 347
346 } // namespace net 348 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698