-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Open
golang/crypto
#280Labels
ProposalProposal-CryptoProposal related to crypto packages or other security issuesProposal related to crypto packages or other security issues
Milestone
Description
Proposal Details
Similar to #20288 which added a DialContext method to ssh.Client, we propose to add a top-level convenience function DialContext to the crypto/ssh package which mirrors the existing Dial func:
func DialContext(ctx context.Context, network, addr string, config *ClientConfig) (*Client, error)The DialContext func would accept a context.Context as its first argument, which would control the dial and handshake phases of the connection. Closing the Context after the connection is established would have no effect on the resulting Client. This is consistent with other DialContext uses in the Go standard library and this package.
We have a change ready to go (~33 SLOC), so happy to submit a CL when/if this is approved.
hoffie, justin-wilxite, prochac, partomatl, saolof and 2 more
Metadata
Metadata
Assignees
Labels
ProposalProposal-CryptoProposal related to crypto packages or other security issuesProposal related to crypto packages or other security issues
Type
Projects
Status
Incoming