Skip to content

crypto: fix legacy SNICallback - #1720

Closed
indutny wants to merge 1 commit into
nodejs:masterfrom
indutny:fix/gh-node-25109
Closed

crypto: fix legacy SNICallback#1720
indutny wants to merge 1 commit into
nodejs:masterfrom
indutny:fix/gh-node-25109

Conversation

@indutny

Copy link
Copy Markdown
Member

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

See: nodejs/node-v0.x-archive#25109

@indutny

Copy link
Copy Markdown
MemberAuthor

cc @socketpair

@socketpair

Copy link
Copy Markdown
Contributor

mkey, what about tests :) ?

@mscdexmscdex added tls Issues and PRs related to the tls subsystem. crypto Issues and PRs related to the crypto subsystem. labels May 17, 2015
@indutny

Copy link
Copy Markdown
MemberAuthor

You actually already wrote one :) Haha.

@indutny

Copy link
Copy Markdown
MemberAuthor

@bnoordhuis cc

@bnoordhuis

Copy link
Copy Markdown
Member

@indutny Can you add a regression test?

Maybe use env->onselect_string() in Connection::SetSNICallback to make it more obvious that they're related.

Aside, is there a reason for the existence of sniObject_? I'm not sure why the function isn't a property of e.g. the Connection object.

`onselect` is set on the `sniObject_` not on the `Connection` instance.
See: nodejs/node-v0.x-archive#25109
PR-URL: nodejs#1720
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
@indutny

Copy link
Copy Markdown
MemberAuthor

Added a test, running CI.

@indutny

Copy link
Copy Markdown
MemberAuthor

indutny added a commit that referenced this pull request Jul 22, 2015
`onselect` is set on the `sniObject_` not on the `Connection` instance.
See: nodejs/node-v0.x-archive#25109
PR-URL: #1720
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
@indutny

Copy link
Copy Markdown
MemberAuthor

Landed in eb35968, thank you everyone!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cryptoIssues and PRs related to the crypto subsystem.tlsIssues and PRs related to the tls subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@indutny@socketpair@bnoordhuis@mscdex