From 64d17e7087842f367a931fb5694ef9a2c6af6a8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Thu, 8 Jul 2021 14:10:02 +0200 Subject: [PATCH] Disable unsupported OpenSSL features MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Disable no-certificate PSK authentication There is no obvious way to reimplement it using only OpenSSL 1.0 public APIs. - Disable queries for standard cipher name OpenSSL 1.0 does not record said names. - Remove ClientHello getters The disabled functions internally use `SSL_client_hello_get0_ext`/`SSL_client_hello_get0_ciphers`, which are not available on legacy OpenSSL. There may be another way to get to the same data, but nothing jumps out in the OpenSSL 1.0.2 documentation. - Remove TLSv1.3 CLI options Signed-off-by: Jan Staněk --- doc/api/cli.md | 18 ------------------ doc/api/tls.md | 15 +++++++-------- src/env.h | 11 ++++++++++- src/node_crypto_common.cc | 12 ++++++++++++ src/node_crypto_common.h | 6 ++++++ src/node_options.cc | 10 +++++++++- .../test-tls-cli-max-version-1.3.js | 0 .../test-tls-cli-min-max-conflict.js | 0 .../test-tls-cli-min-version-1.3.js | 0 9 files changed, 44 insertions(+), 28 deletions(-) rename test/{parallel => known_issues}/test-tls-cli-max-version-1.3.js (100%) rename test/{parallel => known_issues}/test-tls-cli-min-max-conflict.js (100%) rename test/{parallel => known_issues}/test-tls-cli-min-version-1.3.js (100%) diff --git a/doc/api/cli.md b/doc/api/cli.md index 86635f267b..6a1cad9b74 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -816,14 +816,6 @@ added: v12.0.0 Set [`tls.DEFAULT_MAX_VERSION`][] to 'TLSv1.2'. Use to disable support for TLSv1.3. -### `--tls-max-v1.3` - - -Set default [`tls.DEFAULT_MAX_VERSION`][] to 'TLSv1.3'. Use to enable support -for TLSv1.3. - ### `--tls-min-v1.0` - -Set default [`tls.DEFAULT_MIN_VERSION`][] to 'TLSv1.3'. Use to disable support -for TLSv1.2, which is not as secure as TLSv1.3. - ### `--trace-deprecation`