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, additional protocol bytes may have been read
29       containing more TLS/SSL records; these are ignored by SSL_pending().
30
31       Up to OpenSSL 0.9.6, SSL_pending() does not check if the record type of
32       pending data is application data.
33

SEE ALSO

35       SSL_read(3), ssl(3)
36
37
38
390.9.8b                            2005-03-30                    SSL_pending(3)
Impressum