OLD | NEW |
(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 |
OLD | NEW |