diff options
author | Matt Caswell <matt@openssl.org> | 2016-02-12 12:03:58 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-03-07 21:39:27 +0000 |
commit | 49580f25b3e6239a277c9fc2708c0354f419ec17 (patch) | |
tree | 999a9deacba23fb70b41ab170aca8f2a21650e4e /util/libssl.num | |
parent | dad78fb13d790cd06afd6e88067c038d22d7780f (diff) | |
download | openssl-49580f25b3e6239a277c9fc2708c0354f419ec17.zip openssl-49580f25b3e6239a277c9fc2708c0354f419ec17.tar.gz openssl-49580f25b3e6239a277c9fc2708c0354f419ec17.tar.bz2 |
Add an SSL_has_pending() function
This is similar to SSL_pending() but just returns a 1 if there is data
pending in the internal OpenSSL buffers or 0 otherwise (as opposed to
SSL_pending() which returns the number of bytes available). Unlike
SSL_pending() this will work even if "read_ahead" is set (which is the
case if you are using read pipelining, or if you are doing DTLS). A 1
return value means that we have unprocessed data. It does *not* necessarily
indicate that there will be application data returned from a call to
SSL_read(). The unprocessed data may not be application data or there
could be errors when we attempt to parse the records.
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'util/libssl.num')
-rw-r--r-- | util/libssl.num | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/libssl.num b/util/libssl.num index 3ba959d..b73962a 100644 --- a/util/libssl.num +++ b/util/libssl.num @@ -383,3 +383,4 @@ SSL_CTX_set_ct_validation_callback 382 1_1_0 EXIST::FUNCTION:CT SSL_CTX_get_ct_validation_callback 383 1_1_0 EXIST::FUNCTION:CT SSL_set_default_read_buffer_len 384 1_1_0 EXIST::FUNCTION: SSL_CTX_set_default_read_buffer_len 385 1_1_0 EXIST::FUNCTION: +SSL_has_pending 386 1_1_0 EXIST::FUNCTION: |