• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2016 The Chromium Authors
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_SSL_SSL_PLATFORM_KEY_MAC_H_
6 #define NET_SSL_SSL_PLATFORM_KEY_MAC_H_
7 
8 #include <Security/SecBase.h>
9 
10 #include "base/memory/scoped_refptr.h"
11 #include "net/base/net_export.h"
12 
13 namespace net {
14 
15 class SSLPrivateKey;
16 class X509Certificate;
17 
18 // Returns an `SSLPrivateKey` backed by the platform private key in `key`, which
19 // must correspond to `certificate`'s public key.
20 NET_EXPORT scoped_refptr<SSLPrivateKey> CreateSSLPrivateKeyForSecKey(
21     const X509Certificate* certificate,
22     SecKeyRef key);
23 
24 }  // namespace net
25 
26 #endif  // NET_SSL_SSL_PLATFORM_KEY_MAC_H_
27