Commit Graph

15 Commits

Author SHA1 Message Date
Tristan B. Velloza Kildaire 6f66247f87 Dub
- Updated dub description
2023-06-18 13:43:56 +02:00
Tristan B. Velloza Kildaire 41f43a4742 Client
- Consume received data into a buffer that `read(byte[])` can later consume from
2023-04-29 23:09:42 +02:00
Tristan B. Velloza Kildaire 3199a4e394 - Made a polciy thing to try follow their example as close as possible, big mmmmh moment 2023-04-29 22:37:34 +02:00
Tristan B. Velloza Kildaire 70053118af Credmanager
- Had to make this as was required

Server

- Server-side TLS stream thing

Client

- Client-side stream thing
2023-04-29 22:04:46 +02:00
Tristan B. Velloza Kildaire 679530662f CryptClient
- Added a `Thread` named `streamReader` which is created upon `CryptClient` construction and started. It will read from our river stream `stream` and push the TLS data (bit-by-bit of the record) to the Botan client via `receivedData(ubyte*, sizet)`
2023-04-29 19:14:09 +02:00
Tristan B. Velloza Kildaire d37446cbb5 CryptClient
- `tlsOutputHandler(in ubyte[])` now writes to the underlying `RiverStream`, `stream`
2023-04-29 18:36:31 +02:00
Tristan B. Velloza Kildaire 701d1e97b9 CryptClient
- `writeFully(byte[])` calls `write(byte[])` for now
- `write(byte[])` now calls `botalnClient.send()` with the buffer and its length
2023-04-29 18:31:06 +02:00
Tristan B. Velloza Kildaire 2c43e0ea53 Client
- Call `openCheck()`  remaining methods
2023-04-29 18:25:17 +02:00
Tristan B. Velloza Kildaire 347473df31 Client
- Added `CryptClient` which is a kind-of `Stream` (from the `river` library)
- Constructor takes in an underlying connection, potentially a socket, but some `RiverStream` that can be used for the Botan client to communicate with
- Added `openCheck()` to be called prior to any code inside the `write`, `writeFully`, `read` and `readFully` methods which calls the `botanClient.isActive()`, if this is false (i.e. the TLS session is not active) then an exception (a `StreamException`) is thrown
2023-04-29 18:24:05 +02:00
Tristan B. Velloza Kildaire 1b8d11c1af - Imported botan libraries 2023-04-29 17:43:21 +02:00
Tristan B. Velloza Kildaire cf7d29ebbd - Added package structure 2023-04-29 17:38:00 +02:00
Tristan B. Velloza Kildaire 9d2d5155ec - Set build type to `library`
- Added `botan` as a dependency
2023-04-29 17:37:52 +02:00
Tristan B. Velloza Kildaire 3b3d513f14 - Update `.gitignore` 2023-04-29 17:37:32 +02:00
Tristan B. Velloza Kildaire 0f1221b759 - Update `.gitignore` 2023-04-29 17:37:24 +02:00
Tristan B. Velloza Kildaire 7d45ca806c Initial commit 2023-04-29 17:21:15 +02:00