These source files let you use the SecretHandshake protocol (see parent directory) with the awesome Crouton coroutine & I/O library.
- The
SecretHandshake
class simply runs the handshake over a CroutonIStream
. SecretHandshakeStream
is anIStream
subclass that wraps another stream, typically from aTCPSocket
, and transparently runs the handshake and then encrypts/decrypts traffic.
They're both pretty easy to use. See shsCroutonTests.cc for an example.