From 7c29e9b83bf923e51d750eaad9603f2d86934b13 Mon Sep 17 00:00:00 2001 From: Gagandeep Singh Date: Sun, 18 Nov 2018 00:30:24 +0530 Subject: [PATCH] crypto: remove unnecessary fully qualified names PR-URL: https://github.com/nodejs/node/pull/24452 Reviewed-By: Ben Noordhuis Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Refael Ackermann --- src/node_crypto.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index eab8aae1809b83..972e1d0f37cccd 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -3201,7 +3201,7 @@ void CipherBase::Final(const FunctionCallbackInfo& args) { } -void Hmac::Initialize(Environment* env, v8::Local target) { +void Hmac::Initialize(Environment* env, Local target) { Local t = env->NewFunctionTemplate(New); t->InstanceTemplate()->SetInternalFieldCount(1); @@ -3323,7 +3323,7 @@ void Hmac::HmacDigest(const FunctionCallbackInfo& args) { } -void Hash::Initialize(Environment* env, v8::Local target) { +void Hash::Initialize(Environment* env, Local target) { Local t = env->NewFunctionTemplate(New); t->InstanceTemplate()->SetInternalFieldCount(1); @@ -3518,7 +3518,7 @@ static bool ApplyRSAOptions(const EVPKeyPointer& pkey, -void Sign::Initialize(Environment* env, v8::Local target) { +void Sign::Initialize(Environment* env, Local target) { Local t = env->NewFunctionTemplate(New); t->InstanceTemplate()->SetInternalFieldCount(1); @@ -3750,7 +3750,7 @@ static ParsePublicKeyResult ParsePublicKey(EVPKeyPointer* pkey, }); } -void Verify::Initialize(Environment* env, v8::Local target) { +void Verify::Initialize(Environment* env, Local target) { Local t = env->NewFunctionTemplate(New); t->InstanceTemplate()->SetInternalFieldCount(1); @@ -3969,7 +3969,7 @@ void DiffieHellman::Initialize(Environment* env, Local target) { Local t = env->NewFunctionTemplate(callback); const PropertyAttribute attributes = - static_cast(v8::ReadOnly | v8::DontDelete); + static_cast(ReadOnly | DontDelete); t->InstanceTemplate()->SetInternalFieldCount(1); @@ -4247,7 +4247,7 @@ void DiffieHellman::ComputeSecret(const FunctionCallbackInfo& args) { Buffer::New(env->isolate(), data.release(), data.size).ToLocalChecked()); } -void DiffieHellman::SetKey(const v8::FunctionCallbackInfo& args, +void DiffieHellman::SetKey(const FunctionCallbackInfo& args, int (*set_field)(DH*, BIGNUM*), const char* what) { Environment* env = Environment::GetCurrent(args);