diff options
author | Tobias Nießen <tniessen@tnie.de> | 2020-02-19 17:47:14 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-03-11 19:02:47 +0300 |
commit | 1b9a62cff4bd5e4e31eec30f6b3796292ac6610a (patch) | |
tree | fbb4453e41cfc638a38c373b400b8111f511b7be /src/node_crypto.cc | |
parent | e4a72d6b60008385812a819906b13daeffae76ad (diff) |
crypto: make DH error messages consistent
Refs: https://github.com/nodejs/node/pull/31178
Refs: https://github.com/nodejs/node/pull/31445
PR-URL: https://github.com/nodejs/node/pull/31873
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src/node_crypto.cc')
-rw-r--r-- | src/node_crypto.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc index fdaf91acdc0..8286e41af91 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -5217,7 +5217,7 @@ void DiffieHellman::DiffieHellmanGroup( const node::Utf8Value group_name(env->isolate(), args[0]); const modp_group* group = FindDiffieHellmanGroup(*group_name); if (group == nullptr) - return THROW_ERR_CRYPTO_UNKNOWN_DH_GROUP(env, "Unknown group"); + return THROW_ERR_CRYPTO_UNKNOWN_DH_GROUP(env); initialized = diffieHellman->Init(group->prime, group->prime_size, |