diff --git a/test/internet/test-tls-connnect-cnnic.js b/test/internet/test-tls-connnect-cnnic.js index b71a3e9a827a57..d95685a3f70c48 100644 --- a/test/internet/test-tls-connnect-cnnic.js +++ b/test/internet/test-tls-connnect-cnnic.js @@ -7,6 +7,13 @@ // 0x44, 0xB5, 0x00, 0x76, 0x48, 0x11, 0x41, 0xED }, // }, // in src/CNNICHashWhitelist.inc + +var common = require('../common'); +if (!common.hasCrypto) { + console.log('1..0 # Skipped: missing crypto'); + process.exit(); +} + var tls = require('tls'); var socket = tls.connect(443, 'www1.cnnic.cn', function() { socket.resume(); diff --git a/test/internet/test-tls-connnect-melissadata.js b/test/internet/test-tls-connnect-melissadata.js index 96ff41af30cbcc..326e76cb240899 100644 --- a/test/internet/test-tls-connnect-melissadata.js +++ b/test/internet/test-tls-connnect-melissadata.js @@ -1,6 +1,13 @@ 'use strict'; // Test for authorized access to the server which has a cross root // certification between Starfield Class 2 and ValiCert Class 2 + +var common = require('../common'); +if (!common.hasCrypto) { + console.log('1..0 # Skipped: missing crypto'); + process.exit(); +} + var tls = require('tls'); var socket = tls.connect(443, 'address.melissadata.net', function() { socket.resume();