Skip to content

WIP advanced net connection API proposal - #11

Draft
JosiahWI wants to merge 17 commits into
bneradt:masterfrom
JosiahWI:feat/net-connect-advanced
Draft

JosiahWI wants to merge 17 commits into
bneradt:masterfrom
JosiahWI:feat/net-connect-advanced

Conversation

@JosiahWI

Copy link
Copy Markdown

WIP proposal for an advanced net connection API, TSNetConnectAdvanced(), which takes a TSNetConnectOptions struct so plugins can control the source address/port, TLS, SNI, ALPN, and origin certificate verification when opening a connection.

Changes:

  • include/ts/ts.h: adds TSVerifyOriginCertFields, TSNetConnectOptions, and the TSNetConnectAdvanced() declaration.
  • src/api/InkAPI.cc: implements TSNetConnectAdvanced().

This adds to the public tsapi.

🤖 Generated with Claude Code

@bneradt bneradt left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thank you for working on this. This is a valuable addition to the connect API.

Comment thread include/ts/ts.h Resolved
Comment thread include/ts/ts.h Resolved
@JosiahWI

Copy link
Copy Markdown
Author

I am doing a bunch of additional fixes. Wait for the detailed review.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants