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
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/node_crypto.cc -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -3331,7 +3331,6 @@ bool Hash::HashInit(const char* hash_type) { |
3331 | 3331 | mdctx_.reset(); |
3332 | 3332 | return false; |
3333 | 3333 | } |
3334 | | - finalized_ = false; |
3335 | 3334 | return true; |
3336 | 3335 | } |
3337 | 3336 |
|
@@ -3385,7 +3384,6 @@ void Hash::HashDigest(const FunctionCallbackInfo<Value>& args) { |
3385 | 3384 | unsigned int md_len; |
3386 | 3385 |
|
3387 | 3386 | EVP_DigestFinal_ex(hash->mdctx_.get(), md_value, &md_len); |
3388 | | - hash->finalized_ = true; |
3389 | 3387 |
|
3390 | 3388 | Local<Value> error; |
3391 | 3389 | MaybeLocal<Value> rc = |
|
Collapse file
Copy file name to clipboardExpand all lines: src/node_crypto.h +1-3Lines changed: 1 addition & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -474,14 +474,12 @@ class Hash : public BaseObject { |
474 | 474 |
|
475 | 475 | Hash(Environment* env, v8::Local<v8::Object> wrap) |
476 | 476 | : BaseObject(env, wrap), |
477 | | - mdctx_(nullptr), |
478 | | - finalized_(false) { |
| 477 | + mdctx_(nullptr) { |
479 | 478 | MakeWeak(); |
480 | 479 | } |
481 | 480 |
|
482 | 481 | private: |
483 | 482 | EVPMDPointer mdctx_; |
484 | | - bool finalized_; |
485 | 483 | }; |
486 | 484 |
|
487 | 485 | class SignBase : public BaseObject { |
|