]> granicus.if.org Git - openssl/commit
Add an SSL_has_pending() function
authorMatt Caswell <matt@openssl.org>
Fri, 12 Feb 2016 12:03:58 +0000 (12:03 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 7 Mar 2016 21:39:27 +0000 (21:39 +0000)
commit49580f25b3e6239a277c9fc2708c0354f419ec17
tree999a9deacba23fb70b41ab170aca8f2a21650e4e
parentdad78fb13d790cd06afd6e88067c038d22d7780f
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>
include/openssl/ssl.h
ssl/record/rec_layer_s3.c
ssl/record/record.h
ssl/ssl_lib.c
util/libssl.num
util/ssleay.num [new file with mode: 0755]