tls: copy client CAs and cert store on CertCb
authorFedor Indutny <fedor@indutny.com>
Mon, 26 Oct 2015 16:06:28 +0000 (12:06 -0400)
committerMyles Borins <mborins@us.ibm.com>
Mon, 15 Feb 2016 19:30:23 +0000 (11:30 -0800)
commitaefb20a94f1b18b9c30d5b691aae15be97b01988
tree3d8478cb8b26df170b2a9a0a0488660bd0e06f0a
parent607f545568b8ce6c066bb151889da70a0c68aed2
tls: copy client CAs and cert store on CertCb

Copy client CA certs and cert store when asynchronously selecting
`SecureContext` during `SNICallback`. We already copy private key,
certificate, and certificate chain, but the client CA certs were
missing.

Fix: #2772
PR-URL: https://github.com/nodejs/node/pull/3537
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
src/node_crypto.cc
src/node_crypto.h
src/tls_wrap.cc
test/parallel/test-tls-sni-option.js