CryptClient

- `writeFully(byte[])` calls `write(byte[])` for now
- `write(byte[])` now calls `botalnClient.send()` with the buffer and its length
This commit is contained in:
Tristan B. Velloza Kildaire 2023-04-29 18:31:06 +02:00
parent 2c43e0ea53
commit 701d1e97b9
1 changed files with 8 additions and 3 deletions

View File

@ -43,7 +43,7 @@ public class CryptClient : RiverStream
{
/* Ensure the TLS session is active */
openCheck();
// TODO: Implement me
return 0;
}
@ -64,7 +64,8 @@ public class CryptClient : RiverStream
// TODO: Implement me
// botanClient.send()
/* Send data to Botan */
botanClient.send(cast(ubyte*)fromArray.ptr, fromArray.length);
return 0;
}
@ -76,7 +77,11 @@ public class CryptClient : RiverStream
openCheck();
// TODO: Implement me
return 0;
// FIXME: Change this (if required), for now I am just going to call write
return write(fromArray);
// return 0;
}
public override void close()