xref: /third_party/node/test/parallel/test-tls-cli-min-version-1.1.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/parallel/
11cb0ef41Sopenharmony_ci// Flags: --tls-min-v1.1
21cb0ef41Sopenharmony_ci'use strict';
31cb0ef41Sopenharmony_ciconst common = require('../common');
41cb0ef41Sopenharmony_ciif (!common.hasCrypto) common.skip('missing crypto');
51cb0ef41Sopenharmony_ci
61cb0ef41Sopenharmony_ci// Check that node `--tls-v1.1` is supported.
71cb0ef41Sopenharmony_ci
81cb0ef41Sopenharmony_ciconst assert = require('assert');
91cb0ef41Sopenharmony_ciconst tls = require('tls');
101cb0ef41Sopenharmony_ci
111cb0ef41Sopenharmony_ciassert.strictEqual(tls.DEFAULT_MAX_VERSION, 'TLSv1.3');
121cb0ef41Sopenharmony_ciassert.strictEqual(tls.DEFAULT_MIN_VERSION, 'TLSv1.1');
131cb0ef41Sopenharmony_ci
141cb0ef41Sopenharmony_ci// Check the min-max version protocol versions against these CLI settings.
151cb0ef41Sopenharmony_cirequire('./test-tls-min-max-version.js');
16

Indexes created Thu Nov 07 10:32:03 CST 2024