Skip to content

Conversation

@Hannes-Magnusson-CK
Copy link
Contributor

Checklist
Affected core subsystem(s)

tls doc

@nodejs-github-botnodejs-github-bot added doc Issues and PRs related to the documentations. tls Issues and PRs related to the tls subsystem. labels Nov 21, 2017
@Hannes-Magnusson-CK
Copy link
ContributorAuthor

See also #11467

Trott
Trott previously requested changes Nov 22, 2017
Copy link
Member

@TrottTrott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me with one requested change. Thanks for the pull request!

doc/api/tls.md Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please change this line to this?:

to be used instead of tls.checkServerIdentity()

Backticks are appropriate here. Curly braces are for types. Thanks!

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh. That makes sense. Thanks for the comment!
Fixed :)

doc/api/tls.md Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny nit: can you use tls.checkServerIdentity()? It seems to be the dominant style.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

of course! :) Updated

@Hannes-Magnusson-CK
Copy link
ContributorAuthor

Probably a dumb question, I'm new around here =):
The "Public API" comment in https://github.com/nodejs/node/blob/master/lib/tls.js#L239

What makes those export more public then say https://github.com/nodejs/node/blob/master/lib/tls.js#L168 ?

If thats purely source code readability, should I document the checkServerIdentity function?

@bnoordhuis
Copy link
Member

@Hannes-Magnusson-CK The comment is a bit misguided / misleading, it should just be removed.

You could read it as "these are the public and documented APIs" but some of the exports elsewhere are mentioned in the docs too, if only in passing.

@Hannes-Magnusson-CK
Copy link
ContributorAuthor

Ok. Thanks @bnoordhuis !
I'll see if I can create another PR for documenting the checkServerIdentity function, removing the comment, and maybe couple of other related things.

@Hannes-Magnusson-CK
Copy link
ContributorAuthor

Hannes-Magnusson-CK commented Nov 22, 2017

Added a commit documenting tls.checkServerIdentity to this PR :)

'Please use querystring.parse() instead.',
'DEP0076');

// Public API
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why remove this?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its a misleading comment. These aren't the only exported functions.

@TrottTrott dismissed their stale reviewNovember 24, 2017 22:01

requested change was made

@addaleaxaddaleax added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Nov 30, 2017
@addaleax
Copy link
Member

Landed in da429c3, df63e53

Thanks for the PR! 🎉 ✨

@addaleaxaddaleax closed this Dec 1, 2017
addaleax pushed a commit that referenced this pull request Dec 1, 2017
PR-URL: #17203 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
addaleax pushed a commit that referenced this pull request Dec 1, 2017
The funciton was added in eb2ca10 PR-URL: #17203 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
@addaleaxaddaleax removed the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Dec 1, 2017
MylesBorins pushed a commit that referenced this pull request Dec 12, 2017
PR-URL: #17203 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
MylesBorins pushed a commit that referenced this pull request Dec 12, 2017
The funciton was added in eb2ca10 PR-URL: #17203 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
MylesBorins pushed a commit that referenced this pull request Dec 12, 2017
PR-URL: #17203 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
MylesBorins pushed a commit that referenced this pull request Dec 12, 2017
The funciton was added in eb2ca10 PR-URL: #17203 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
@MylesBorinsMylesBorins mentioned this pull request Dec 12, 2017
gibfahn pushed a commit that referenced this pull request Dec 19, 2017
PR-URL: #17203 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
gibfahn pushed a commit that referenced this pull request Dec 19, 2017
The funciton was added in eb2ca10 PR-URL: #17203 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
gibfahn pushed a commit that referenced this pull request Dec 19, 2017
PR-URL: #17203 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
@gibfahn
Copy link
Member

Backported da429c3 to v6.x, df63e53 had conflicts, so choosing to leave it.

@gibfahngibfahn mentioned this pull request Dec 20, 2017
gibfahn pushed a commit that referenced this pull request Dec 20, 2017
PR-URL: #17203 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
gibfahn pushed a commit that referenced this pull request Dec 20, 2017
The funciton was added in eb2ca10 PR-URL: #17203 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
@gibfahngibfahn mentioned this pull request Dec 20, 2017
@MylesBorinsMylesBorins mentioned this pull request Dec 20, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docIssues and PRs related to the documentations.tlsIssues and PRs related to the tls subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@Hannes-Magnusson-CK@bnoordhuis@addaleax@gibfahn@jasnell@Trott@lpinca@MylesBorins@nodejs-github-bot