Uh oh!
There was an error while loading. Please reload this page.
tls: copy client CAs and cert store on CertCb - #3537
Conversation
There was a problem hiding this comment.
You should check the return code here.
There was a problem hiding this comment.
Good idea, though it can't fail in current OpenSSL implementation.
bnoordhuis
commented
Oct 27, 2015
Left some comments. The commit log could go into more detail into why this change is necessary. |
indutny
commented
Oct 27, 2015
@bnoordhuis pushed fixes, thanks! |
indutny
commented
Oct 27, 2015
indutny
commented
Oct 27, 2015
CI seems to be green, LGTY @bnoordhuis ? |
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: nodejs#2772
indutny
commented
Oct 27, 2015
@bnoordhuis updated commit message too |
There was a problem hiding this comment.
Can you add a comment explaining that SSL_set_client_CA_list takes ownership of the duplicate? And maybe explain why you copy it from the SSL_CTX to the SSL?
indutny
commented
Nov 12, 2015
All fixed, PTAL @bnoordhuis |
indutny
commented
Nov 12, 2015
bnoordhuis
commented
Nov 13, 2015
LGTM |
indutny
commented
Nov 13, 2015
Landed in 483a41c, thank you! |
rvagg
commented
Jan 15, 2016
I'm having trouble working out if this is a bugfix or something closer to a semver-minor. @indutny can you make a call on whether this would qualify for backporting to LTS? |
indutny
commented
Jan 15, 2016
This is a bugfix. |
indutny
commented
Jan 15, 2016
I think it qualifies for backport. |
jasnell
commented
Jan 15, 2016
The line on this one may be rather fuzzy but I tend to agree with @indutny |
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: nodejs#2772 PR-URL: nodejs#3537 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
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: nodejs#2772 PR-URL: nodejs#3537 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Copy client CA certs and cert store when asynchronously selecting
SecureContextduringSNICallback.Fix: #2772
cc @nodejs/crypto