diff options
author | Matt Caswell <matt@openssl.org> | 2016-02-12 12:03:58 +0000 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-03-08 09:20:55 -0500 |
commit | 892b9376b3f6e22ca7d7ea68e1402bf2e91035a9 (patch) | |
tree | ac84a525f00d975969651c149f9212bc5530ad02 /ssl/ssl_ciph.c | |
parent | 096665b0dca73e4244b3013ea1dddf417cf8509e (diff) |
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>
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/ssl_ciph.c')
0 files changed, 0 insertions, 0 deletions