x/crypto/ssh: allow to send type specific data when accepting a channel #64211
Labels
Proposal
Proposal-Accepted
Proposal-Crypto
Proposal related to crypto packages or other security issues
Milestone
According to RFC 4254 section 5.1,
SSH_MSG_CHANNEL_OPEN_CONFIRMATION
can contain some type specific data, we have mapping for this extra payload but currently the field is unused.I propose to add API to allow setting this field when accepting a channel on the server side and to retrieve the value on the client side.
Proposed API for the server side part:
Proposed API for the client side part:
for the client side part we can also evaluate an interface extension for Conn to add something like this:
this way the payload is returned directly after opening the channel without the need to call the
Payload()
method on the channel as proposed above.I prefer the first option because I'm not a big fan of methods that return multiple values, but that's just a personal preference.
Thank you!
cc @golang/proposal-review
The text was updated successfully, but these errors were encountered: