OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |