Files
node/lib/internal/crypto
Tobias Nießen 8cabfe7c6e crypto: fix setEngine() when OPENSSL_NO_ENGINE set
When OpenSSL is configured with OPENSSL_NO_ENGINE, setEngine() currently
throws an internal error because the C++ binding does not export the
relevant function, which causes _setEngine() to be undefined within JS.

Instead, match the behavior of tls/secure-context.js and throw the
existing error code ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED when OpenSSL
has been configured with OPENSSL_NO_ENGINE.

PR-URL: https://github.com/nodejs/node/pull/47977
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
2023-07-07 00:06:14 +03:00
..
2023-04-10 22:18:20 -04:00
2023-04-10 22:18:20 -04:00
2023-04-10 22:18:20 -04:00
2023-04-10 22:18:20 -04:00
2023-04-10 22:18:20 -04:00
2023-04-10 22:18:20 -04:00