Skip to content

crypto: improve errors in DiffieHellmanGroup

  1. The DiffieHellmanGroup class is only instantiated from within Node.js, which always passes exactly one argument.
  2. Use the existing ERR_CRYPTO_UNKNOWN_DH_GROUP error code for the existing "Unknown group" error. The message has not been changed to prevent breaking existing applications.
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Merge request reports

Loading