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

Side by Side Diff: net/cert/x509_util_ios_and_mac.h

Issue 2864133002: Convert iOS to use X509CertificateBytes. (Closed)
Patch Set: static_cast, more unittest Created 3 years, 7 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/cert/x509_util_ios.cc ('k') | net/cert/x509_util_ios_and_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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NET_CERT_X509_UTIL_IOS_AND_MAC_H_
6 #define NET_CERT_X509_UTIL_IOS_AND_MAC_H_
7
8 #include <CoreFoundation/CFArray.h>
9 #include <Security/Security.h>
10
11 #include "base/mac/scoped_cftyperef.h"
12 #include "net/base/net_export.h"
13
14 namespace net {
15
16 class X509Certificate;
17
18 namespace x509_util {
19
20 // Returns a new CFMutableArrayRef containing this certificate and its
21 // intermediate certificates in the form expected by Security.framework
22 // and Keychain Services, or NULL on failure.
23 // The first item in the array will be this certificate, followed by its
24 // intermediates, if any.
25 NET_EXPORT base::ScopedCFTypeRef<CFMutableArrayRef>
26 CreateSecCertificateArrayForX509Certificate(X509Certificate* cert);
27
28 } // namespace x509_util
29
30 } // namespace net
31
32 #endif // NET_CERT_X509_UTIL_IOS_AND_MAC_H_
OLDNEW
« no previous file with comments | « net/cert/x509_util_ios.cc ('k') | net/cert/x509_util_ios_and_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698