|
@ -31,10 +31,8 @@ try { |
|
|
var pseudoRandomBytes = binding.pseudoRandomBytes; |
|
|
var pseudoRandomBytes = binding.pseudoRandomBytes; |
|
|
var getCiphers = binding.getCiphers; |
|
|
var getCiphers = binding.getCiphers; |
|
|
var getHashes = binding.getHashes; |
|
|
var getHashes = binding.getHashes; |
|
|
var crypto = true; |
|
|
|
|
|
} catch (e) { |
|
|
} catch (e) { |
|
|
|
|
|
throw new Error('node.js not compiled with openssl crypto support.'); |
|
|
var crypto = false; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var stream = require('stream'); |
|
|
var stream = require('stream'); |
|
@ -62,10 +60,6 @@ function Credentials(secureProtocol, flags, context) { |
|
|
return new Credentials(secureProtocol, flags, context); |
|
|
return new Credentials(secureProtocol, flags, context); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (!crypto) { |
|
|
|
|
|
throw new Error('node.js not compiled with openssl crypto support.'); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (context) { |
|
|
if (context) { |
|
|
this.context = context; |
|
|
this.context = context; |
|
|
} else { |
|
|
} else { |
|
|