+if (!process.versions.openssl) {
+ console.error("Skipping because node compiled without OpenSSL.");
+ process.exit(0);
+}
+
+
var testCases =
[ { ca: ['ca1-cert'],
key: 'agent2-key',
+if (!process.versions.openssl) {
+ console.error("Skipping because node compiled without OpenSSL.");
+ process.exit(0);
+}
+
var common = require('../common');
var tls = require('tls');
var fs = require('fs');
+// There is a bug with 'openssl s_server' which makes it not flush certain
+// important events to stdout when done over a pipe. Therefore we skip this
+// test for all openssl versions less than 1.0.0.
+if (!process.versions.openssl ||
+ parseInt(process.versions.openssl.charCodeAt(0)) < 1) {
+ console.error("Skipping due to old OpenSSL version.");
+ process.exit(0);
+}
+
+
var common = require('../common');
var join = require('path').join;
var net = require('net');
+if (!process.versions.openssl) {
+ console.error("Skipping because node compiled without OpenSSL.");
+ process.exit(0);
+}
+
+
var common = require('../common');
var assert = require('assert');
+if (!process.versions.openssl) {
+ console.error("Skipping because node compiled without OpenSSL.");
+ process.exit(0);
+}
+
// This is a rather complex test which sets up various TLS servers with node
// and connects to them using the 'openssl s_client' command line utility
// with various keys. Depending on the certificate authority and other