GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: replace to CHECK_NOT_NULL in node_crypto · nodejs/node@8ada953

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_crypto.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node_crypto.cc‎

Copy file name to clipboardExpand all lines: src/node_crypto.cc
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2923,7 +2923,7 @@ ByteSource ByteSource::NullTerminatedCopy(Environment* env,
29232923
ByteSource 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

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.