From b61e682fc02c6b3bec27d8ade24d3affb04f1436 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Wed, 26 Aug 2026 23:57:30 +0200 Subject: [PATCH] Revert "crypto,https,tls: runtime-deprecate OpenSSL engine-based APIs (DEP0183)" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit da516920fc3b091e54af21a86677574270803b81. PR-URL: https://github.com/nodejs/node/pull/64777 Fixes: https://github.com/nodejs/node/issues/56733 Refs: https://github.com/nodejs/node/pull/64211 Refs: https://github.com/nodejs/node/pull/63966 Refs: https://github.com/nodejs/node/pull/53329 Refs: https://github.com/nodejs/node/pull/48950 Refs: https://github.com/nodejs/node/issues/45465 Refs: https://github.com/nodejs/node/issues/42827 Refs: https://github.com/nodejs/node/issues/47076 Refs: https://github.com/nodejs/node/pull/62862 Refs: https://github.com/nodejs/node/pull/38512 Reviewed-By: Yagiz Nizipli Reviewed-By: James M Snell Reviewed-By: Richard Lau Reviewed-By: Gürgün Dayıoğlu --- doc/api/crypto.md | 8 +------ doc/api/deprecations.md | 5 +---- doc/api/https.md | 3 --- doc/api/tls.md | 7 ------ lib/internal/crypto/util.js | 9 -------- lib/internal/tls/secure-context.js | 3 --- .../addons/openssl-client-cert-engine/test.js | 6 ----- test/addons/openssl-key-engine/test.js | 6 ----- test/parallel/test-crypto-dep0183.js | 22 ------------------- .../test-tls-clientcertengine-unsupported.js | 9 -------- test/parallel/test-tls-error-stack.js | 13 +++-------- .../test-tls-keyengine-unsupported.js | 9 -------- 12 files changed, 5 insertions(+), 95 deletions(-) delete mode 100644 test/parallel/test-crypto-dep0183.js diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 6e0250f2e86..63b85c8ca70 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -6606,9 +6606,6 @@ added: v15.6.0 -> Stability: 0 - Deprecated - * `engine` {string} * `flags` {crypto.constants} **Default:** `crypto.constants.ENGINE_METHOD_ALL` Load and set the `engine` for some or all OpenSSL functions (selected by flags). -Use of this API is deprecated because custom engine support has been deprecated -since OpenSSL 3. +Support for custom engines in OpenSSL is deprecated from OpenSSL 3. `engine` could be either an id or a path to the engine's shared library. diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 9642da384ac..6c9fcecf319 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -4111,9 +4111,6 @@ that are shorter than the default authentication tag length (i.e., shorter than -Type: Runtime +Type: Documentation-only OpenSSL 3 has deprecated support for custom engines with a recommendation to switch to its new provider model. The `clientCertEngine` option for diff --git a/doc/api/https.md b/doc/api/https.md index eba303b6600..74b759556c4 100644 --- a/doc/api/https.md +++ b/doc/api/https.md @@ -427,9 +427,6 @@ a `timeout` of 5 seconds.