summaryrefslogtreecommitdiffstats
path: root/net/ssl/ssl_platform_key.h
blob: a6d53138cbd348906f2267942bd1ae4dcde03690 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2015 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_SSL_SSL_PLATFORM_KEY_H_
#define NET_SSL_SSL_PLATFORM_KEY_H_

#include "base/lazy_instance.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "net/base/net_export.h"

namespace base {
class SequencedTaskRunner;
}

namespace net {

class SSLPrivateKey;
class X509Certificate;

// Looks up the private key from the platform key store corresponding to
// |certificate|'s public key and returns an SSLPrivateKey backed by the
// playform key.
NET_EXPORT scoped_refptr<SSLPrivateKey> FetchClientCertPrivateKey(
    X509Certificate* certificate);

}  // namespace net

#endif  // NET_SSL_SSL_PLATFORM_KEY_H_