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);