CryptClient

- `tlsOutputHandler(in ubyte[])` now writes to the underlying `RiverStream`, `stream`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-04-29 18:36:31 +02:00
parent 701d1e97b9
commit d37446cbb5
1 changed files with 6 additions and 1 deletions

View File

@ -33,9 +33,14 @@ public class CryptClient : RiverStream
// TODO: Insert code to init using botan OVER `stream`
}
// NOTE This gets called when the Botan client needs to write to
// ... the underlying output. So If we were to call `botanClient.send`
// ... (which takes in our plaintext), it would encrypt, and then
// ... push the encrypted payload into this method here below
// ... (implying we should write to our underlying stream here)
private void tlsOutputHandler(in ubyte[] dataOut)
{
stream.writeFully(cast(byte[])dataOut);
}