mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
508890d795
PR-URL: https://github.com/nodejs/node/pull/39928 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
15 lines
447 B
JavaScript
15 lines
447 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
if (!common.hasCrypto) common.skip('missing crypto');
|
|
|
|
// Check that conflicting TLS protocol versions are not allowed
|
|
|
|
const assert = require('assert');
|
|
const child_process = require('child_process');
|
|
|
|
const args = ['--tls-min-v1.3', '--tls-max-v1.2', '-p', 'process.version'];
|
|
child_process.execFile(process.argv[0], args, (err) => {
|
|
assert(err);
|
|
assert.match(err.message, /not both/);
|
|
});
|