diff options
Diffstat (limited to 'include/crypto/tlssession.h')
-rw-r--r-- | include/crypto/tlssession.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/crypto/tlssession.h b/include/crypto/tlssession.h index 15b9cef..571049b 100644 --- a/include/crypto/tlssession.h +++ b/include/crypto/tlssession.h @@ -249,6 +249,17 @@ ssize_t qcrypto_tls_session_read(QCryptoTLSSession *sess, size_t len); /** + * qcrypto_tls_session_check_pending: + * @sess: the TLS session object + * + * Check if there are unread data in the TLS buffers that have + * already been read from the underlying data source. + * + * Returns: the number of bytes available or zero + */ +size_t qcrypto_tls_session_check_pending(QCryptoTLSSession *sess); + +/** * qcrypto_tls_session_handshake: * @sess: the TLS session object * @errp: pointer to a NULL-initialized error object |