mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
323 B
15 lines
323 B
11 years ago
|
var assert = require('assert');
|
||
11 years ago
|
var common = require('../common');
|
||
11 years ago
|
var tls = require('tls');
|
||
|
|
||
|
function test1() {
|
||
|
var ciphers = '';
|
||
11 years ago
|
tls.createSecureContext = function(options) {
|
||
11 years ago
|
ciphers = options.ciphers
|
||
|
}
|
||
11 years ago
|
var s = tls.connect(common.PORT);
|
||
|
s.destroy();
|
||
11 years ago
|
assert.equal(ciphers, tls.DEFAULT_CIPHERS);
|
||
|
}
|
||
|
test1();
|