mirror of
https://github.com/nodejs/node.git
synced 2025-05-17 10:27:12 +00:00

Currently when node is build --without-ssl and the test are run, there are a number of failing test due to tests expecting crypto support to be available. This commit fixes fixes the failure and instead skips the tests that expect crypto to be available. PR-URL: https://github.com/nodejs/node/pull/11631 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
25 lines
598 B
JavaScript
25 lines
598 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
|
|
// Check ca option can contain concatenated certs by prepending an unrelated
|
|
// non-CA cert and showing that agent6's CA root is still found.
|
|
|
|
const join = require('path').join;
|
|
const {
|
|
assert, connect, keys
|
|
} = require(join(common.fixturesDir, 'tls-connect'));
|
|
|
|
connect({
|
|
client: {
|
|
checkServerIdentity: (servername, cert) => { },
|
|
ca: keys.agent1.cert + '\n' + keys.agent6.ca,
|
|
},
|
|
server: {
|
|
cert: keys.agent6.cert,
|
|
key: keys.agent6.key,
|
|
},
|
|
}, function(err, pair, cleanup) {
|
|
assert.ifError(err);
|
|
return cleanup();
|
|
});
|