[prev in list] [next in list] [prev in thread] [next in thread]
List: libressl
Subject: Can we get something like SSL_pending for libtls?
From: Nicholas Chapman <admin () indigorenderer ! com>
Date: 2021-07-29 14:58:30
Message-ID: ff7f1d7c-d9db-0faf-ee1c-4712aec58ec8 () indigorenderer ! com
[Download RAW message or body]
Hi,
I would like a way to check if a TLS socket is readable (e.g. if the
next read call will succeed and return a non-zero number of bytes
without blocking)
With a plain socket I can use select() for that.
However as far as I can tell libressl / libtls buffers data, so there
may be readable data, even if select on the underlying socket indicates
there is no readable data.
SSL_pending provides an API call to expose this information, however
there doesn't seem to be anything similar in the libtls API.
So can we get something like SSL_pending in the libtls API?
Thanks,
Nick C.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic