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

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

Issue 16917011: mac: Replace base::mac::ScopedCFTypeRef with base::ScopedCFTypeRef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with fixed off-by-1 in git-clang-format Created 7 years, 6 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_ios.cc ('k') | net/cert/x509_util_ios.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 (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_certificate.h" 5 #include "net/cert/x509_certificate.h"
6 6
7 #include <CommonCrypto/CommonDigest.h> 7 #include <CommonCrypto/CommonDigest.h>
8 #include <CoreServices/CoreServices.h> 8 #include <CoreServices/CoreServices.h>
9 #include <Security/Security.h> 9 #include <Security/Security.h>
10 10
(...skipping 10 matching lines...) Expand all
21 #include "base/sha1.h" 21 #include "base/sha1.h"
22 #include "base/strings/string_piece.h" 22 #include "base/strings/string_piece.h"
23 #include "base/strings/sys_string_conversions.h" 23 #include "base/strings/sys_string_conversions.h"
24 #include "base/synchronization/lock.h" 24 #include "base/synchronization/lock.h"
25 #include "crypto/cssm_init.h" 25 #include "crypto/cssm_init.h"
26 #include "crypto/mac_security_services_lock.h" 26 #include "crypto/mac_security_services_lock.h"
27 #include "crypto/nss_util.h" 27 #include "crypto/nss_util.h"
28 #include "crypto/rsa_private_key.h" 28 #include "crypto/rsa_private_key.h"
29 #include "net/cert/x509_util_mac.h" 29 #include "net/cert/x509_util_mac.h"
30 30
31 using base::mac::ScopedCFTypeRef; 31 using base::ScopedCFTypeRef;
32 using base::Time; 32 using base::Time;
33 33
34 namespace net { 34 namespace net {
35 35
36 namespace { 36 namespace {
37 37
38 void GetCertDistinguishedName( 38 void GetCertDistinguishedName(
39 const x509_util::CSSMCachedCertificate& cached_cert, 39 const x509_util::CSSMCachedCertificate& cached_cert,
40 const CSSM_OID* oid, 40 const CSSM_OID* oid,
41 CertPrincipal* result) { 41 CertPrincipal* result) {
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 *type = kPublicKeyTypeDH; 741 *type = kPublicKeyTypeDH;
742 break; 742 break;
743 default: 743 default:
744 *type = kPublicKeyTypeUnknown; 744 *type = kPublicKeyTypeUnknown;
745 *size_bits = 0; 745 *size_bits = 0;
746 break; 746 break;
747 } 747 }
748 } 748 }
749 749
750 } // namespace net 750 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/x509_certificate_ios.cc ('k') | net/cert/x509_util_ios.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698