Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(754)

Unified Diff: components/webcrypto/blink_key_handle.cc

Issue 2407633002: Use new BoringSSL scopers in //components. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/webcrypto/blink_key_handle.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webcrypto/blink_key_handle.cc
diff --git a/components/webcrypto/blink_key_handle.cc b/components/webcrypto/blink_key_handle.cc
index 65825a43ae8bae369aff7ad7d0a12dd852206642..5dbe35296478c9aae679bfa2e7dbee958de4ba77 100644
--- a/components/webcrypto/blink_key_handle.cc
+++ b/components/webcrypto/blink_key_handle.cc
@@ -4,6 +4,8 @@
#include "components/webcrypto/blink_key_handle.h"
+#include <openssl/evp.h>
+
#include <utility>
#include "base/logging.h"
@@ -67,7 +69,7 @@ class SymKey : public Key {
class AsymKey : public Key {
public:
// After construction the |pkey| should NOT be mutated.
- AsymKey(crypto::ScopedEVP_PKEY pkey,
+ AsymKey(bssl::UniquePtr<EVP_PKEY> pkey,
const std::vector<uint8_t>& serialized_key_data)
: Key(CryptoData(serialized_key_data)), pkey_(std::move(pkey)) {}
@@ -77,7 +79,7 @@ class AsymKey : public Key {
EVP_PKEY* pkey() { return pkey_.get(); }
private:
- crypto::ScopedEVP_PKEY pkey_;
+ bssl::UniquePtr<EVP_PKEY> pkey_;
DISALLOW_COPY_AND_ASSIGN(AsymKey);
};
@@ -110,7 +112,7 @@ blink::WebCryptoKeyHandle* CreateSymmetricKeyHandle(
}
blink::WebCryptoKeyHandle* CreateAsymmetricKeyHandle(
- crypto::ScopedEVP_PKEY pkey,
+ bssl::UniquePtr<EVP_PKEY> pkey,
const std::vector<uint8_t>& serialized_key_data) {
return new AsymKey(std::move(pkey), serialized_key_data);
}
« no previous file with comments | « components/webcrypto/blink_key_handle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698