Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connection: Enable access to underlying net.Conn #31

Merged
merged 1 commit into from
Nov 22, 2022

Conversation

erincandescent
Copy link
Contributor

This allows applications to do authenticatication via Unix SO_PEERCREDS,
for example

This allows applications to do authenticatication via Unix SO_PEERCREDS,
for example
// GetNetConn allows access to the underlying net.Conn (where one exists)
// You shouldn't use this for I/O - but might use it to do things like access
// peer credentials on a unix socket
type GetNetConn interface {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The method name was picked to match the equivalent tls.Conn method

@haraldh haraldh merged commit 38f589f into varlink:master Nov 22, 2022
@haraldh
Copy link
Contributor

haraldh commented Nov 22, 2022

Thanks!

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.

None yet

2 participants