Chromium Code Reviews| Index: net/ssl/openssl_platform_key.h |
| diff --git a/net/ssl/openssl_platform_key.h b/net/ssl/openssl_platform_key.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..10b23712f063e9853e3800c3ef29a9dd437b3951 |
| --- /dev/null |
| +++ b/net/ssl/openssl_platform_key.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2014 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_OPENSSL_PLATFORM_KEY_H_ |
| +#define NET_SSL_OPENSSL_PLATFORM_KEY_H_ |
| + |
| +#include "crypto/scoped_openssl_types.h" |
| + |
| +#include "net/base/net_export.h" |
|
wtc
2014/07/16 00:09:58
You don't need to include this header.
davidben
2014/07/16 16:25:35
Done.
|
| + |
| +namespace net { |
| + |
| +class X509Certificate; |
| + |
| +// Looks up the private key from the platform key store corresponding |
| +// to |certificate|'s public key. Then wraps it in an OpenSSL EVP_PKEY |
| +// structure to be used for SSL client auth. |
| +// |
| +// TODO(davidben): This combines looking up a private key with |
| +// wrapping it in an OpenSSL structure. This will be separated with |
| +// https://crbug.com/394131 |
| +crypto::ScopedEVP_PKEY FetchClientCertPrivateKey( |
| + const X509Certificate* certificate); |
| + |
| +} // namespace net |
| + |
| +#endif // NET_SSL_OPENSSL_PLATFORM_KEY_H_ |