Avril
d271f164fa
Start sock capabilities
...
Fortune for rsh's current commit: Future blessing − 末吉
3 years ago
Avril
538080a6f1
Added MAX_BODY_SIZE
...
Fortune for rsh's current commit: Small blessing − 小吉
3 years ago
Avril
cf71fe20ab
Set `StackVec` stack size to 2KB (from 4KB).
...
Fortune for rsh's current commit: Small blessing − 小吉
3 years ago
Avril
37a00d1099
Improved de/serialise error messages
...
Fortune for rsh's current commit: Half curse − 半凶
3 years ago
Avril
46cd0e4a9f
from_buffer(): Implemented.
...
Fortune for rsh's current commit: Great blessing − 大吉
3 years ago
Avril
52d19c730b
Start reworking SerializedMessage -> binary pipeline.
...
Moved from `io::Write` to `bytes::BufMut`, etc.
TODO: Move from `io::Read` to `bytes::Buf` (SerializedMessage::<impl MessageValue>::from_buffer(impl Buf))
Fortune for rsh's current commit: Future small blessing − 末小吉
3 years ago
Avril
6afb148068
Added `UntypedSerializedMessage`: A `SerializedMessage` whos original value type has been erased. A `SerializedMessage<V>` can be converted into this with `.into_untyped()`, and can be converted back with the `unsafe` function `into_typed<V>()`.
...
Untyped serialized mmessages cannot be deserialized, they must first be given a type with `into_typed<V>()`. This operation is unsafe as it may cause a potential type confusion if the message"s original `V` is different from the newly specified `V`.
Fortune for rsh's current commit: Half curse − 半凶
3 years ago
Avril
c286708bff
Start: `UntypedMessageValue` for unsafe casting of `SerializedMessage`s
...
Fortune for rsh's current commit: Half blessing − 半吉
3 years ago
Avril
7765c33070
Moved `MessageValue` to own file
...
Fortune for rsh's current commit: Curse − 凶
3 years ago
Avril
ab97278dbd
Added `subtrait!` macro for creating a blanket-impl trait that ``inherits" from one or more different traits in a few different ways (normal -> `Sized` types only, `dyn`: Sized and unsized types , `virtual`: Sized and unsized types, downcastable.)
...
Fortune for rsh's current commit: Curse − 凶
3 years ago
Avril
2308b61b58
Start: Raw socket handling function
...
Fortune for rsh's current commit: Middle blessing − 中吉
3 years ago
Avril
d3c43b323b
Added task cancelling module
...
Fortune for rsh's current commit: Future blessing − 末吉
3 years ago
Avril
c98f1c5c6c
Added message header accessors.
...
Fortune for rsh's current commit: Future small blessing − 末小吉
3 years ago
Avril
2931a3e8cb
Moved message tests to own file.
...
Fortune for rsh's current commit: Small blessing − 小吉
3 years ago
Avril
674c7a1171
Sign & Encrypt tests working okay
...
Fortune for rsh's current commit: Half blessing − 半吉
3 years ago
Avril
101ce28602
Encrypt + Sign tests work.
...
Fortune for rsh's current commit: Future blessing − 末吉
3 years ago
Avril
226901861a
Start adding stack-allocation helper functions. (ext.rs)
...
Fortune for rsh's current commit: Half curse − 半凶
3 years ago
Avril
4877a843bd
Added `DefaultMessageSender`, `DefaultMessageReceiver`, `DefaultMessageSenderReceiver` types, which function the same as `()` for the cases of the trait(s) that they implement.
...
Fortune for rsh's current commit: Half blessing − 半吉
3 years ago
Avril
36f3ed4586
Abstracted message serialisation test code.
...
When implementing tests for signing and/or encrypting messages, we can just implement the `MessageSender`/`MessageReceiver` traits when needed then call into this function.
(Those traits may need refactoring if the format of the adapter is not desireable (i.e. `&self` instead of `&mut self` or `self`; we could only blanket-impl those function to `Fn()` closures, not `FnMut()` or `FnOnce()`. (not that we should try this.)), but for now we"ll leave it as it is.)
Fortune for rsh's current commit: Small blessing − 小吉
3 years ago
Avril
1f2655a7f2
Basic message de/serialisation test passes. (Value -> Message -> SerializedMessage -> Bytes -> SerializedMessage -> Message -> Value). No encryption tests yet.
...
TODO: Better size checks.
TODO: Test message de/serialisation with encryption and/or signing enabled.
Fortune for rsh's current commit: Half curse − 半凶
3 years ago
Avril
3e59440609
Message de/serial test written (currently failing due to serde_cbor being greedy when deserialising from reader)
...
Fortune for rsh's current commit: Middle blessing − 中吉
3 years ago
Avril
c41d5c2c28
Added `SerializedMessage::from_reader()` (reading untrusted messages)
...
TODO: XXX: Validate the length of message bodies somehow before naively trying to read them.
Fortune for rsh's current commit: Half curse − 半凶
3 years ago
Avril
9142244bca
Started `Message` protocol.
...
Fortune for rsh's current commit: Small curse − 小凶
3 years ago