Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilip Skokan <panva.ip@gmail.com>2019-03-19 23:38:23 +0300
committerTobias Nießen <tniessen@tnie.de>2019-04-01 13:49:17 +0300
commit7c1fc93e30e4dac664782c7d229823fd10fa71ba (patch)
tree923f5ccaeacc41224d78f175f36f7bbc44c0b73b /src/node_crypto.h
parent66b95362dfabb72a92afe25c7a8d650f1e04e5e2 (diff)
crypto: don't crash on unknown asymmetricKeyType
PR-URL: https://github.com/nodejs/node/pull/26786 Fixes: https://github.com/nodejs/node/issues/26775 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r--src/node_crypto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h
index 7de42a07f11..2955f6be640 100644
--- a/src/node_crypto.h
+++ b/src/node_crypto.h
@@ -470,7 +470,7 @@ class KeyObject : public BaseObject {
static void GetAsymmetricKeyType(
const v8::FunctionCallbackInfo<v8::Value>& args);
- v8::Local<v8::String> GetAsymmetricKeyType() const;
+ v8::Local<v8::Value> GetAsymmetricKeyType() const;
static void GetSymmetricKeySize(
const v8::FunctionCallbackInfo<v8::Value>& args);