| 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"
|
| +
|
| +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_
|
|
|