|
|
@ -19,10 +19,13 @@ |
|
|
|
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
|
|
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
|
|
|
|
if (!process.versions.openssl) { |
|
|
|
console.error('Skipping because node compiled without OpenSSL.'); |
|
|
|
var common = require('../common'); |
|
|
|
|
|
|
|
if (!common.opensslCli) { |
|
|
|
console.error('Skipping because node compiled without OpenSSL CLI.'); |
|
|
|
process.exit(0); |
|
|
|
} |
|
|
|
|
|
|
|
doTest(); |
|
|
|
|
|
|
|
// This test consists of three TLS requests --
|
|
|
@ -34,7 +37,6 @@ doTest(); |
|
|
|
// that we used has expired by now.
|
|
|
|
|
|
|
|
function doTest() { |
|
|
|
var common = require('../common'); |
|
|
|
var assert = require('assert'); |
|
|
|
var tls = require('tls'); |
|
|
|
var fs = require('fs'); |
|
|
|