Skip to content

Commit

Permalink
crypto: remove unnecessary fully qualified names
Browse files Browse the repository at this point in the history
PR-URL: nodejs#24452
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
  • Loading branch information
codegagan authored and refack committed Jan 10, 2019
1 parent fbba37d commit b219124
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3216,7 +3216,7 @@ void CipherBase::Final(const FunctionCallbackInfo<Value>& args) {
}


void Hmac::Initialize(Environment* env, v8::Local<Object> target) {
void Hmac::Initialize(Environment* env, Local<Object> target) {
Local<FunctionTemplate> t = env->NewFunctionTemplate(New);

t->InstanceTemplate()->SetInternalFieldCount(1);
Expand Down Expand Up @@ -3338,7 +3338,7 @@ void Hmac::HmacDigest(const FunctionCallbackInfo<Value>& args) {
}


void Hash::Initialize(Environment* env, v8::Local<Object> target) {
void Hash::Initialize(Environment* env, Local<Object> target) {
Local<FunctionTemplate> t = env->NewFunctionTemplate(New);

t->InstanceTemplate()->SetInternalFieldCount(1);
Expand Down Expand Up @@ -3533,7 +3533,7 @@ static bool ApplyRSAOptions(const EVPKeyPointer& pkey,



void Sign::Initialize(Environment* env, v8::Local<Object> target) {
void Sign::Initialize(Environment* env, Local<Object> target) {
Local<FunctionTemplate> t = env->NewFunctionTemplate(New);

t->InstanceTemplate()->SetInternalFieldCount(1);
Expand Down Expand Up @@ -3765,7 +3765,7 @@ static ParsePublicKeyResult ParsePublicKey(EVPKeyPointer* pkey,
});
}

void Verify::Initialize(Environment* env, v8::Local<Object> target) {
void Verify::Initialize(Environment* env, Local<Object> target) {
Local<FunctionTemplate> t = env->NewFunctionTemplate(New);

t->InstanceTemplate()->SetInternalFieldCount(1);
Expand Down Expand Up @@ -3984,7 +3984,7 @@ void DiffieHellman::Initialize(Environment* env, Local<Object> target) {
Local<FunctionTemplate> t = env->NewFunctionTemplate(callback);

const PropertyAttribute attributes =
static_cast<PropertyAttribute>(v8::ReadOnly | v8::DontDelete);
static_cast<PropertyAttribute>(ReadOnly | DontDelete);

t->InstanceTemplate()->SetInternalFieldCount(1);

Expand Down Expand Up @@ -4262,7 +4262,7 @@ void DiffieHellman::ComputeSecret(const FunctionCallbackInfo<Value>& args) {
Buffer::New(env->isolate(), data.release(), data.size).ToLocalChecked());
}

void DiffieHellman::SetKey(const v8::FunctionCallbackInfo<Value>& args,
void DiffieHellman::SetKey(const FunctionCallbackInfo<Value>& args,
int (*set_field)(DH*, BIGNUM*), const char* what) {
Environment* env = Environment::GetCurrent(args);

Expand Down

0 comments on commit b219124

Please sign in to comment.