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

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

Issue 2746103003: Add X509CertificateBytes which uses CRYPTO_BUFFER instead of macOS-native certificate types. (Closed)
Patch Set: rebase 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
« no previous file with comments | « net/cert/x509_util_ios.h ('k') | net/cert/x509_util_mac.h » ('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 #include "net/cert/x509_util_ios.h"
6
7 #include "net/cert/x509_certificate.h"
8
9 namespace net {
10
11 namespace x509_util {
12
13 base::ScopedCFTypeRef<SecCertificateRef>
14 CreateSecCertificateFromX509Certificate(const X509Certificate* cert) {
15 return base::ScopedCFTypeRef<SecCertificateRef>(
16 reinterpret_cast<SecCertificateRef>(
17 const_cast<void*>(CFRetain(cert->os_cert_handle()))));
18 }
19
20 } // namespace x509_util
21
22 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/x509_util_ios.h ('k') | net/cert/x509_util_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698