diff options
author | himself65 <himself65@outlook.com> | 2020-03-11 10:22:34 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-03-28 16:34:35 +0300 |
commit | a744dad589cdfe35f322f28d199968559cd4953a (patch) | |
tree | a0aea910cef79018f0c4f6ec46a2dc63afa2c7aa /src/node_crypto.cc | |
parent | 2565442ac0215cbea398d7f0dc1faa49e9632a93 (diff) |
src: remove excess v8 namespace
PR-URL: https://github.com/nodejs/node/pull/32191
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_crypto.cc')
-rw-r--r-- | src/node_crypto.cc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc index e136903989e..5a0b40a9b8e 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -520,7 +520,7 @@ void SecureContext::Initialize(Environment* env, Local<Object> target) { env->set_secure_context_constructor_template(t); } -SecureContext::SecureContext(Environment* env, v8::Local<v8::Object> wrap) +SecureContext::SecureContext(Environment* env, Local<Object> wrap) : BaseObject(env, wrap) { MakeWeak(); env->isolate()->AdjustAmountOfExternalAllocatedMemory(kExternalSize); @@ -3305,7 +3305,7 @@ KeyType KeyObject::GetKeyType() const { } KeyObject::KeyObject(Environment* env, - v8::Local<v8::Object> wrap, + Local<Object> wrap, KeyType key_type) : BaseObject(env, wrap), key_type_(key_type), @@ -3350,7 +3350,7 @@ void KeyObject::Init(const FunctionCallbackInfo<Value>& args) { } } -void KeyObject::InitSecret(v8::Local<v8::ArrayBufferView> abv) { +void KeyObject::InitSecret(Local<ArrayBufferView> abv) { CHECK_EQ(this->key_type_, kKeyTypeSecret); size_t key_len = abv->ByteLength(); @@ -3414,7 +3414,7 @@ void KeyObject::GetSymmetricKeySize(const FunctionCallbackInfo<Value>& args) { args.GetReturnValue().Set(static_cast<uint32_t>(key->GetSymmetricKeySize())); } -void KeyObject::Export(const v8::FunctionCallbackInfo<v8::Value>& args) { +void KeyObject::Export(const FunctionCallbackInfo<Value>& args) { KeyObject* key; ASSIGN_OR_RETURN_UNWRAP(&key, args.Holder()); @@ -3458,7 +3458,7 @@ MaybeLocal<Value> KeyObject::ExportPrivateKey( } CipherBase::CipherBase(Environment* env, - v8::Local<v8::Object> wrap, + Local<Object> wrap, CipherKind kind) : BaseObject(env, wrap), ctx_(nullptr), @@ -4077,7 +4077,7 @@ void CipherBase::Final(const FunctionCallbackInfo<Value>& args) { args.GetReturnValue().Set(out.ToBuffer().ToLocalChecked()); } -Hmac::Hmac(Environment* env, v8::Local<v8::Object> wrap) +Hmac::Hmac(Environment* env, Local<Object> wrap) : BaseObject(env, wrap), ctx_(nullptr) { MakeWeak(); @@ -4187,7 +4187,7 @@ void Hmac::HmacDigest(const FunctionCallbackInfo<Value>& args) { args.GetReturnValue().Set(rc.ToLocalChecked()); } -Hash::Hash(Environment* env, v8::Local<v8::Object> wrap) +Hash::Hash(Environment* env, Local<Object> wrap) : BaseObject(env, wrap), mdctx_(nullptr), has_md_(false), @@ -4420,7 +4420,7 @@ void CheckThrow(Environment* env, SignBase::Error error) { } } -SignBase::SignBase(Environment* env, v8::Local<v8::Object> wrap) +SignBase::SignBase(Environment* env, Local<Object> wrap) : BaseObject(env, wrap) { } @@ -4447,7 +4447,7 @@ static bool ApplyRSAOptions(const ManagedEVPPKey& pkey, } -Sign::Sign(Environment* env, v8::Local<v8::Object> wrap) : SignBase(env, wrap) { +Sign::Sign(Environment* env, Local<Object> wrap) : SignBase(env, wrap) { MakeWeak(); } @@ -4768,8 +4768,8 @@ void SignOneShot(const FunctionCallbackInfo<Value>& args) { args.GetReturnValue().Set(signature.ToBuffer().ToLocalChecked()); } -Verify::Verify(Environment* env, v8::Local<v8::Object> wrap) : - SignBase(env, wrap) { +Verify::Verify(Environment* env, Local<Object> wrap) + : SignBase(env, wrap) { MakeWeak(); } @@ -5075,7 +5075,7 @@ void PublicKeyCipher::Cipher(const FunctionCallbackInfo<Value>& args) { args.GetReturnValue().Set(out.ToBuffer().ToLocalChecked()); } -DiffieHellman::DiffieHellman(Environment* env, v8::Local<v8::Object> wrap) +DiffieHellman::DiffieHellman(Environment* env, Local<Object> wrap) : BaseObject(env, wrap), verifyError_(0) { MakeWeak(); } @@ -5441,7 +5441,7 @@ void ECDH::Initialize(Environment* env, Local<Object> target) { t->GetFunction(env->context()).ToLocalChecked()).Check(); } -ECDH::ECDH(Environment* env, v8::Local<v8::Object> wrap, ECKeyPointer&& key) +ECDH::ECDH(Environment* env, Local<Object> wrap, ECKeyPointer&& key) : BaseObject(env, wrap), key_(std::move(key)), group_(EC_KEY_get0_group(key_.get())) { |