Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2020-05-10 18:37:09 +0300
committerAnna Henningsen <anna@addaleax.net>2020-06-22 21:50:31 +0300
commit1e27e0a4db7f26bbfbe4f9902fe33d1145b0ac11 (patch)
tree413c2d97f5f4a2615620652ba0bcd3998c9af096 /src/node_crypto.h
parentadf14e2617b0d85c7b23020ed8761b47e92ce336 (diff)
src: rename internal key handles to KeyObjectHandle
PR-URL: https://github.com/nodejs/node/pull/33360 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r--src/node_crypto.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h
index 1eea1239f19..b3f3c2133c0 100644
--- a/src/node_crypto.h
+++ b/src/node_crypto.h
@@ -343,7 +343,7 @@ class ByteSource {
static ByteSource NullTerminatedCopy(Environment* env,
v8::Local<v8::Value> value);
- static ByteSource FromSymmetricKeyObject(v8::Local<v8::Value> handle);
+ static ByteSource FromSymmetricKeyObjectHandle(v8::Local<v8::Value> handle);
ByteSource(const ByteSource&) = delete;
ByteSource& operator=(const ByteSource&) = delete;
@@ -408,7 +408,7 @@ class ManagedEVPPKey {
EVPKeyPointer pkey_;
};
-class KeyObject : public BaseObject {
+class KeyObjectHandle : public BaseObject {
public:
static v8::Local<v8::Function> Initialize(Environment* env,
v8::Local<v8::Object> target);
@@ -419,8 +419,8 @@ class KeyObject : public BaseObject {
// TODO(tniessen): track the memory used by OpenSSL types
SET_NO_MEMORY_INFO()
- SET_MEMORY_INFO_NAME(KeyObject)
- SET_SELF_SIZE(KeyObject)
+ SET_MEMORY_INFO_NAME(KeyObjectHandle)
+ SET_SELF_SIZE(KeyObjectHandle)
KeyType GetKeyType() const;
@@ -452,7 +452,9 @@ class KeyObject : public BaseObject {
v8::MaybeLocal<v8::Value> ExportPrivateKey(
const PrivateKeyEncodingConfig& config) const;
- KeyObject(Environment* env, v8::Local<v8::Object> wrap, KeyType key_type);
+ KeyObjectHandle(Environment* env,
+ v8::Local<v8::Object> wrap,
+ KeyType key_type);
private:
const KeyType key_type_;