This is an archive of the discontinued Mercurial Phabricator instance.

sshpeer: implement peer for version 2 of wire protocol
ClosedPublic

Authored by indygreg on Feb 6 2018, 2:31 PM.

Details

Summary

Since the protocol is now negotiated before we construct a
peer instance, we can return the negotiated protocol from the
handshake function and instantiate an appropriate peer class
for the protocol.

Version 2 of the SSH protocol is currently identical to version
1 post handshake. So our sshv2peer class just inherits from
sshv1peer for the time being. This will obviously change
over time.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Feb 6 2018, 2:31 PM
durin42 accepted this revision.Feb 7 2018, 5:05 PM
This revision is now accepted and ready to land.Feb 7 2018, 5:05 PM
This revision was automatically updated to reflect the committed changes.