Problem:
There is no way to determine if s2n-tls has ingested a record fragment. This makes it difficult to work with connection serialization.
Solution:
At the very least, an API to determine if there is any buffered, ciphertext data would be useful.
s2n_peek returns the available plaintext to be read.
s2n_buffered_peek has very complicated behavior, but basically doesn't solve this.
Problem:
There is no way to determine if s2n-tls has ingested a record fragment. This makes it difficult to work with connection serialization.
Solution:
At the very least, an API to determine if there is any buffered, ciphertext data would be useful.
s2n_peekreturns the available plaintext to be read.s2n_buffered_peekhas very complicated behavior, but basically doesn't solve this.