crypto: fix legacy SNICallback
authorFedor Indutny <fedor@indutny.com>
Sun, 17 May 2015 13:10:24 +0000 (15:10 +0200)
committerFedor Indutny <fedor@indutny.com>
Wed, 22 Jul 2015 21:00:37 +0000 (14:00 -0700)
commiteb35968de7a040d737f3280e9fed0b6edf566b2b
treedccd7d5a9b699da54cb8bc2c1bfd302cf909f654
parent9afee6785e3f0710172a423eb6140e29bf436475
crypto: fix legacy SNICallback

`onselect` is set on the `sniObject_` not on the `Connection` instance.

See: https://github.com/joyent/node/pull/25109
PR-URL: https://github.com/nodejs/io.js/pull/1720
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
src/node_crypto.cc
test/parallel/test-tls-legacy-onselect.js [new file with mode: 0644]