crypto: TLS: introduce `check_pending`
authorAntoine Damhet <antoine.damhet@shadow.tech>
Tue, 15 Nov 2022 14:23:28 +0000 (15:23 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 15 Feb 2023 16:01:03 +0000 (11:01 -0500)
commit33ee0d8e2fb5e7772a67c8785554ec9fc9477678
tree7750cd30780d8cb0d2c2af92728bfbc38769b5d1
parent6a50f64ca01d0a7b97f14f069762bfd88160f31e
crypto: TLS: introduce `check_pending`

The new `qcrypto_tls_session_check_pending` function allows the caller
to know if data have already been consumed from the backend and is
already available.

Signed-off-by: Antoine Damhet <antoine.damhet@shadow.tech>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/tlssession.c
include/crypto/tlssession.h