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: remove finalized_ member from Hash class · nodejs/node@7455597

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_crypto.cc
    • node_crypto.h
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
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3331,7 +3331,6 @@ bool Hash::HashInit(const char* hash_type) {
33313331
mdctx_.reset();
33323332
return false;
33333333
}
3334-
finalized_ = false;
33353334
return true;
33363335
}
33373336

@@ -3385,7 +3384,6 @@ void Hash::HashDigest(const FunctionCallbackInfo<Value>& args) {
33853384
unsigned int md_len;
33863385

33873386
EVP_DigestFinal_ex(hash->mdctx_.get(), md_value, &md_len);
3388-
hash->finalized_ = true;
33893387

33903388
Local<Value> error;
33913389
MaybeLocal<Value> rc =
Collapse file

‎src/node_crypto.h‎

Copy file name to clipboardExpand all lines: src/node_crypto.h
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,14 +474,12 @@ class Hash : public BaseObject {
474474

475475
Hash(Environment* env, v8::Local<v8::Object> wrap)
476476
: BaseObject(env, wrap),
477-
mdctx_(nullptr),
478-
finalized_(false) {
477+
mdctx_(nullptr) {
479478
MakeWeak();
480479
}
481480

482481
private:
483482
EVPMDPointer mdctx_;
484-
bool finalized_;
485483
};
486484

487485
class SignBase : public BaseObject {

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.