tls: wrap tls inside tls using legacy API
authorFedor Indutny <fedor.indutny@gmail.com>
Tue, 24 Sep 2013 12:53:49 +0000 (16:53 +0400)
committerFedor Indutny <fedor.indutny@gmail.com>
Tue, 24 Sep 2013 16:46:59 +0000 (20:46 +0400)
commit42acbf809b67ff5015e12f2df12515342b223261
tree8f3b09da3262fc43ce3d5c86e688b68c516997dc
parent970bdccc38fee27e10ff1a3b68f3fea3417788a1
tls: wrap tls inside tls using legacy API

Allow wrapping TLSSocket inside another TLSSocket, emulate it using
SecurePair in legacy APIs.

fix #6204
lib/_tls_legacy.js
lib/_tls_wrap.js
src/node_crypto.cc
test/simple/test-tls-inception.js [new file with mode: 0644]