oxidecomputer / sprockets

Now's the time on sprockets when we dance
Mozilla Public License 2.0
7 stars 1 forks source link

Add sprockets-proxy #20

Closed jgallagher closed 2 years ago

jgallagher commented 2 years ago

This includes two bugfixes to sprockets_host::Session discovered while implementing and testing the proxy:

  1. Our poll_flush should flush the underlying channel after flushing the encrypting buf writer.
  2. Stop using BufStream for the handshaking process, as it could eagerly read application-level data after the final handshake message, which was then lost when we discarded the BufStream.

The proxy is primarily intended to be used as a library, but an example binary (sprocksy) is included that allows basic command-line usage and testing via a simulated RoT.