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

Side by Side Diff: net/cert/cert_verify_proc_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/base/platform_mime_util_mac.mm ('k') | net/cert/test_root_certs.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_mac.h" 5 #include "net/cert/cert_verify_proc_mac.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 19 matching lines...) Expand all
30 #include "net/cert/x509_certificate.h" 30 #include "net/cert/x509_certificate.h"
31 #include "net/cert/x509_certificate_known_roots_mac.h" 31 #include "net/cert/x509_certificate_known_roots_mac.h"
32 #include "net/cert/x509_util_mac.h" 32 #include "net/cert/x509_util_mac.h"
33 33
34 // From 10.7.2 libsecurity_keychain-55035/lib/SecTrustPriv.h, for use with 34 // From 10.7.2 libsecurity_keychain-55035/lib/SecTrustPriv.h, for use with
35 // SecTrustCopyExtendedResult. 35 // SecTrustCopyExtendedResult.
36 #ifndef kSecEVOrganizationName 36 #ifndef kSecEVOrganizationName
37 #define kSecEVOrganizationName CFSTR("Organization") 37 #define kSecEVOrganizationName CFSTR("Organization")
38 #endif 38 #endif
39 39
40 using base::mac::ScopedCFTypeRef; 40 using base::ScopedCFTypeRef;
41 41
42 namespace net { 42 namespace net {
43 43
44 namespace { 44 namespace {
45 45
46 typedef OSStatus (*SecTrustCopyExtendedResultFuncPtr)(SecTrustRef, 46 typedef OSStatus (*SecTrustCopyExtendedResultFuncPtr)(SecTrustRef,
47 CFDictionaryRef*); 47 CFDictionaryRef*);
48 48
49 int NetErrorFromOSStatus(OSStatus status) { 49 int NetErrorFromOSStatus(OSStatus status) {
50 switch (status) { 50 switch (status) {
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 } 709 }
710 } 710 }
711 } 711 }
712 } 712 }
713 } 713 }
714 714
715 return OK; 715 return OK;
716 } 716 }
717 717
718 } // namespace net 718 } // namespace net
OLDNEW
« no previous file with comments | « net/base/platform_mime_util_mac.mm ('k') | net/cert/test_root_certs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698