• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Flags: --tls-min-v1.1
2'use strict';
3const common = require('../common');
4if (!common.hasCrypto) common.skip('missing crypto');
5
6// Check that node `--tls-v1.1` is supported.
7
8const assert = require('assert');
9const tls = require('tls');
10
11assert.strictEqual(tls.DEFAULT_MAX_VERSION, 'TLSv1.3');
12assert.strictEqual(tls.DEFAULT_MIN_VERSION, 'TLSv1.1');
13
14// Check the min-max version protocol versions against these CLI settings.
15require('./test-tls-min-max-version.js');
16