xref: /third_party/node/test/parallel/test-tls-cli-min-max-conflict.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/parallel/
11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_ciconst common = require('../common');
31cb0ef41Sopenharmony_ciif (!common.hasCrypto) common.skip('missing crypto');
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_ci// Check that conflicting TLS protocol versions are not allowed
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ciconst assert = require('assert');
81cb0ef41Sopenharmony_ciconst child_process = require('child_process');
91cb0ef41Sopenharmony_ci
101cb0ef41Sopenharmony_ciconst args = ['--tls-min-v1.3', '--tls-max-v1.2', '-p', 'process.version'];
111cb0ef41Sopenharmony_cichild_process.execFile(process.argv[0], args, (err) => {
121cb0ef41Sopenharmony_ci  assert(err);
131cb0ef41Sopenharmony_ci  assert.match(err.message, /not both/);
141cb0ef41Sopenharmony_ci});
15

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