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

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

Issue 1753553002: Suppress the clang warning "-Wdeprecated-declarations" for CSSM API calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp5_gtm2
Patch Set: nits Created 4 years, 9 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
« no previous file with comments | « net/base/keygen_handler_mac.cc ('k') | net/cert/x509_cert_types_mac.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/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 14 matching lines...) Expand all
25 #include "net/base/net_errors.h" 25 #include "net/base/net_errors.h"
26 #include "net/cert/asn1_util.h" 26 #include "net/cert/asn1_util.h"
27 #include "net/cert/cert_status_flags.h" 27 #include "net/cert/cert_status_flags.h"
28 #include "net/cert/cert_verifier.h" 28 #include "net/cert/cert_verifier.h"
29 #include "net/cert/cert_verify_result.h" 29 #include "net/cert/cert_verify_result.h"
30 #include "net/cert/crl_set.h" 30 #include "net/cert/crl_set.h"
31 #include "net/cert/test_root_certs.h" 31 #include "net/cert/test_root_certs.h"
32 #include "net/cert/x509_certificate.h" 32 #include "net/cert/x509_certificate.h"
33 #include "net/cert/x509_util_mac.h" 33 #include "net/cert/x509_util_mac.h"
34 34
35 // CSSM functions are deprecated as of OSX 10.7, but have no replacement.
36 // https://bugs.chromium.org/p/chromium/issues/detail?id=590914#c1
37 #pragma clang diagnostic push
38 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
39
35 // From 10.7.2 libsecurity_keychain-55035/lib/SecTrustPriv.h, for use with 40 // From 10.7.2 libsecurity_keychain-55035/lib/SecTrustPriv.h, for use with
36 // SecTrustCopyExtendedResult. 41 // SecTrustCopyExtendedResult.
37 #ifndef kSecEVOrganizationName 42 #ifndef kSecEVOrganizationName
38 #define kSecEVOrganizationName CFSTR("Organization") 43 #define kSecEVOrganizationName CFSTR("Organization")
39 #endif 44 #endif
40 45
41 using base::ScopedCFTypeRef; 46 using base::ScopedCFTypeRef;
42 47
43 namespace net { 48 namespace net {
44 49
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 } 833 }
829 } 834 }
830 } 835 }
831 } 836 }
832 } 837 }
833 838
834 return OK; 839 return OK;
835 } 840 }
836 841
837 } // namespace net 842 } // namespace net
843
844 #pragma clang diagnostic pop // "-Wdeprecated-declarations"
OLDNEW
« no previous file with comments | « net/base/keygen_handler_mac.cc ('k') | net/cert/x509_cert_types_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698