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

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

Issue 2746103003: Add X509CertificateBytes which uses CRYPTO_BUFFER instead of macOS-native certificate types. (Closed)
Patch Set: . Created 3 years, 8 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
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_H_
6 #define NET_CERT_X509_UTIL_IOS_H_
7
8 #include <Security/Security.h>
9
10 #include "base/mac/scoped_cftyperef.h"
11 #include "net/base/net_export.h"
12
13 namespace net {
14
15 class X509Certificate;
16
17 namespace x509_util {
18
19 // Returns a SecCertificate representing |cert|, or NULL on failure.
20 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.
21 CreateSecCertificateFromX509Certificate(const X509Certificate* cert);
22
23 } // namespace x509_util
24
25 } // namespace net
26
27 #endif // NET_CERT_X509_UTIL_IOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698