Chromium Code Reviews| Index: net/cert/x509_util_ios.h |
| diff --git a/net/cert/x509_util_ios.h b/net/cert/x509_util_ios.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e0b5c2a12f7caff4e368183b957e89786ffcf9c7 |
| --- /dev/null |
| +++ b/net/cert/x509_util_ios.h |
| @@ -0,0 +1,27 @@ |
| +// 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_H_ |
| +#define NET_CERT_X509_UTIL_IOS_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 SecCertificate representing |cert|, or NULL on failure. |
| +base::ScopedCFTypeRef<SecCertificateRef> NET_EXPORT |
|
eroman
2017/03/29 23:06:55
should net_export be before the return type?
mattm
2017/03/30 04:38:10
hmm, I guess so. Done.
|
| +CreateSecCertificateFromX509Certificate(const X509Certificate* cert); |
| + |
| +} // namespace x509_util |
| + |
| +} // namespace net |
| + |
| +#endif // NET_CERT_X509_UTIL_IOS_H_ |