From b219124c6e14ff89261af37c1afcea40b3bcef53 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 1842d03dcbb87d..066d67c0f075ae 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -3216,7 +3216,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); @@ -3338,7 +3338,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); @@ -3533,7 +3533,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); @@ -3765,7 +3765,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); @@ -3984,7 +3984,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); @@ -4262,7 +4262,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);