1. 08 Nov, 2011 1 commit
  2. 02 Nov, 2011 1 commit
  3. 29 Oct, 2011 1 commit
    • Dave Cheney's avatar
      exp/ssh: fix length header leaking into channel data streams. · 0f6b80c6
      Dave Cheney authored
      The payload of a data message is defined as an SSH string type,
      which uses the first four bytes to encode its length. When channelData
      and channelExtendedData were added I defined Payload as []byte to
      be able to use it directly without a string to []byte conversion. This
      resulted in the length data leaking into the payload data.
      
      This CL fixes the bug, and restores agl's original fast path code.
      
      Additionally, a bug whereby s.lock was not released if a packet arrived
      for an invalid channel has been fixed.
      
      Finally, as they were no longer used, I have removed
      the channelData and channelExtedendData structs.
      
      R=agl, rsc
      CC=golang-dev
      https://golang.org/cl/5330053
      0f6b80c6
  4. 24 Oct, 2011 1 commit
    • Dave Cheney's avatar
      exp/ssh: introduce Session to replace Cmd for interactive commands · 57912334
      Dave Cheney authored
      This CL replaces the Cmd type with a Session type representing
      interactive channels. This lays the foundation for supporting
      other kinds of channels like direct-tcpip or x11.
      
      client.go:
      * replace chanlist map with slice.
      * generalize stdout and stderr into a single type.
      * unexport ClientChan to clientChan.
      
      doc.go:
      * update ServerConfig/ServerConn documentation.
      * update Client example for Session.
      
      message.go:
      * make channelExtendedData more like channelData.
      
      session.go:
      * added Session which replaces Cmd.
      
      R=agl, rsc, n13m3y3r, gustavo
      CC=golang-dev
      https://golang.org/cl/5302054
      57912334
  5. 18 Oct, 2011 1 commit
    • Dave Cheney's avatar
      exp/ssh: general cleanups for client support · ec158f77
      Dave Cheney authored
      common.go:
      * simplify findAgreedAlgorithms.
      * add channelExtendedData support.
      
      messages.go:
      * add clientExtendedData.
      
      server.go:
      *  use simplified findAgreedAlgorithms.
      
      server_shell.go:
      * fix shadowed err return value.
      
      transport.go:
      * introduce separate cipher, mac and compression for each direction.
      * added filteredConn and packetWriter interfaces.
      * newTransport requires a source of randomness.
      
      R=golang-dev, agl, rsc
      CC=golang-dev
      https://golang.org/cl/5285044
      ec158f77
  6. 12 Oct, 2011 1 commit
  7. 27 Sep, 2011 1 commit
  8. 26 Sep, 2011 1 commit
  9. 17 Sep, 2011 1 commit
    • Adam Langley's avatar
      exp/ssh: new package. · 605e57d8
      Adam Langley authored
      The typical UNIX method for controlling long running process is to
      send the process signals. Since this doesn't get you very far, various
      ad-hoc, remote-control protocols have been used over time by programs
      like Apache and BIND.
      
      Implementing an SSH server means that Go code will have a standard,
      secure way to do this in the future.
      
      R=bradfitz, borman, dave, gustavo, dsymonds, r, adg, rsc, rogpeppe, lvd, kevlar, raul.san
      CC=golang-dev
      https://golang.org/cl/4962064
      605e57d8