Chromium Code Reviews| Index: net/cert/x509_util_ios_and_mac.h |
| diff --git a/net/cert/x509_util_ios_and_mac.h b/net/cert/x509_util_ios_and_mac.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4cc9183ca1a1537f389190c27123f6ad729fd4f6 |
| --- /dev/null |
| +++ b/net/cert/x509_util_ios_and_mac.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef NET_CERT_X509_UTIL_IOS_AND_MAC_H_ |
| +#define NET_CERT_X509_UTIL_IOS_AND_MAC_H_ |
| + |
| +#include <CoreFoundation/CFArray.h> |
| +#include <Security/Security.h> |
| + |
| +#include "base/mac/scoped_cftyperef.h" |
| +#include "net/base/net_export.h" |
|
Nico
2017/05/11 20:14:09
I think chrome/ios often just uses the _mac files
Eugene But (OOO till 7-30)
2017/05/11 20:40:34
+1 Chrome for iOS does not have any ios_and_mac fi
mattm
2017/05/12 01:04:15
In this case we have some functions that are mac o
|
| + |
| +namespace net { |
| + |
| +class X509Certificate; |
| + |
| +namespace x509_util { |
| + |
| +// Returns a new CFMutableArrayRef containing this certificate and its |
| +// intermediate certificates in the form expected by Security.framework |
| +// and Keychain Services, or NULL on failure. |
| +// The first item in the array will be this certificate, followed by its |
| +// intermediates, if any. |
| +NET_EXPORT base::ScopedCFTypeRef<CFMutableArrayRef> |
| +CreateSecCertificateArrayForX509Certificate(X509Certificate* cert); |
| + |
| +} // namespace x509_util |
| + |
| +} // namespace net |
| + |
| +#endif // NET_CERT_X509_UTIL_IOS_AND_MAC_H_ |