| Index: net/quic/core/crypto/p256_key_exchange.h
|
| diff --git a/net/quic/core/crypto/p256_key_exchange.h b/net/quic/core/crypto/p256_key_exchange.h
|
| index e6b32a2b771676ba6f3e2ae11c6870433d3a1aae..64fa8b9430d80a43b99a16f2c080bf7a103a31a2 100644
|
| --- a/net/quic/core/crypto/p256_key_exchange.h
|
| +++ b/net/quic/core/crypto/p256_key_exchange.h
|
| @@ -5,6 +5,7 @@
|
| #ifndef NET_QUIC_CRYPTO_P256_KEY_EXCHANGE_H_
|
| #define NET_QUIC_CRYPTO_P256_KEY_EXCHANGE_H_
|
|
|
| +#include <openssl/base.h>
|
| #include <stdint.h>
|
|
|
| #include <memory>
|
| @@ -13,7 +14,6 @@
|
| #include "base/macros.h"
|
| #include "base/strings/string_piece.h"
|
| #include "crypto/openssl_util.h"
|
| -#include "crypto/scoped_openssl_types.h"
|
| #include "net/base/net_export.h"
|
| #include "net/quic/core/crypto/key_exchange.h"
|
|
|
| @@ -54,11 +54,12 @@ class NET_EXPORT_PRIVATE P256KeyExchange : public KeyExchange {
|
| kUncompressedECPointForm = 0x04,
|
| };
|
|
|
| - // P256KeyExchange takes ownership of |private_key|, and expects
|
| - // |public_key| consists of |kUncompressedP256PointBytes| bytes.
|
| - P256KeyExchange(EC_KEY* private_key, const uint8_t* public_key);
|
| + // P256KeyExchange wraps |private_key|, and expects |public_key| consists of
|
| + // |kUncompressedP256PointBytes| bytes.
|
| + P256KeyExchange(bssl::UniquePtr<EC_KEY> private_key,
|
| + const uint8_t* public_key);
|
|
|
| - crypto::ScopedEC_KEY private_key_;
|
| + bssl::UniquePtr<EC_KEY> private_key_;
|
| // The public key stored as an uncompressed P-256 point.
|
| uint8_t public_key_[kUncompressedP256PointBytes];
|
|
|
|
|