1SSL_pending(3)                      OpenSSL                     SSL_pending(3)
2
3
4

NAME

6       SSL_pending - obtain number of readable bytes buffered in an SSL object
7

SYNOPSIS

9        #include <openssl/ssl.h>
10
11        int SSL_pending(const SSL *ssl);
12

DESCRIPTION

14       SSL_pending() returns the number of bytes which are available inside
15       ssl for immediate read.
16

NOTES

18       Data are received in blocks from the peer. Therefore data can be
19       buffered inside ssl and are ready for immediate retrieval with
20       SSL_read(3).
21

RETURN VALUES

23       The number of bytes pending is returned.
24

BUGS

26       SSL_pending() takes into account only bytes from the TLS/SSL record
27       that is currently being processed (if any).  If the SSL object's
28       read_ahead flag is set (see SSL_CTX_set_read_ahead(3)), additional
29       protocol bytes may have been read containing more TLS/SSL records;
30       these are ignored by SSL_pending().
31
32       Up to OpenSSL 0.9.6, SSL_pending() does not check if the record type of
33       pending data is application data.
34

SEE ALSO

36       SSL_read(3), SSL_CTX_set_read_ahead(3), ssl(3)
37
38
39
401.0.2k                            2017-01-26                    SSL_pending(3)
Impressum