tls: introduce TLSSocket based on tls_wrap binding

Split `tls.js` into `_tls_legacy.js`, containing legacy
`createSecurePair` API, and `_tls_wrap.js` containing new code based on
`tls_wrap` binding.

Remove tests that are no longer useful/valid.
This commit is contained in:
Fedor Indutny 2013-06-13 15:36:00 +02:00
parent 03e008ddb8
commit af80e7bc6e
15 changed files with 1456 additions and 1765 deletions

View file

@ -37,7 +37,7 @@ testURL.rejectUnauthorized = false;
function check(request) {
// assert that I'm https
assert.ok(request.socket.encrypted);
assert.ok(request.socket._secureEstablished);
}
var server = https.createServer(httpsOptions, function(request, response) {