tls: add `options` argument to createSecurePair
authorКоренберг Марк <mark@ideco.ru>
Tue, 5 May 2015 07:41:16 +0000 (12:41 +0500)
committerMyles Borins <mborins@us.ibm.com>
Wed, 2 Mar 2016 22:01:11 +0000 (14:01 -0800)
commitc5bf35a5432ef46736afad60b4995fce347a0061
tree81554fe50823b04f25c7a10381a56c49cc548bd1
parent61570cc05297f65a25962ab745afaf08ee624ab3
tls: add `options` argument to createSecurePair

Helps in implementation of #6204, where some options passed to
`createSecurePair()` are ignored before this patch.

These options are very helpful if someone wants to pass
`options.servername` or `options.SNICallback` to securepair.

PR-URL: https://github.com/nodejs/node/pull/2441
Reviewed-By: Fedor Indutny <fedor@indutny.com>
doc/api/tls.markdown
lib/_tls_legacy.js
test/fixtures/google_ssl_hello.bin [new file with mode: 0644]
test/parallel/test-tls-securepair-fiftharg.js [new file with mode: 0644]