File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2923,7 +2923,7 @@ ByteSource ByteSource::NullTerminatedCopy(Environment* env,
29232923ByteSource ByteSource::FromSymmetricKeyObject (Local<Value> handle) {
29242924 CHECK (handle->IsObject ());
29252925 KeyObject* key = Unwrap<KeyObject>(handle.As <Object>());
2926- CHECK (key);
2926+ CHECK_NOT_NULL (key);
29272927 return Foreign (key->GetSymmetricKey (), key->GetSymmetricKeySize ());
29282928}
29292929
@@ -3129,7 +3129,7 @@ static ManagedEVPPKey GetPublicOrPrivateKeyFromJs(
31293129 } else {
31303130 CHECK (args[*offset]->IsObject ());
31313131 KeyObject* key = Unwrap<KeyObject>(args[*offset].As <Object>());
3132- CHECK (key);
3132+ CHECK_NOT_NULL (key);
31333133 CHECK_NE (key->GetKeyType (), kKeyTypeSecret );
31343134 (*offset) += 4 ;
31353135 return key->GetAsymmetricKey ();
@@ -3271,7 +3271,7 @@ MaybeLocal<Object> KeyObject::Create(Environment* env,
32713271 }
32723272
32733273 KeyObject* key = Unwrap<KeyObject>(obj);
3274- CHECK (key);
3274+ CHECK_NOT_NULL (key);
32753275 if (key_type == kKeyTypePublic )
32763276 key->InitPublic (pkey);
32773277 else
You can’t perform that action at this time.
0 commit comments