summaryrefslogtreecommitdiff
path: root/src/lib/libssl/doc/SSL_pending.3
diff options
context:
space:
mode:
authorbentley <>2014-10-12 09:33:04 +0000
committerbentley <>2014-10-12 09:33:04 +0000
commit82b7f378b6907ab315a6e50322d2a0a8794a0aa9 (patch)
treea5087bf8d016a6041c2b6822fbecfd8f6c5e70b1 /src/lib/libssl/doc/SSL_pending.3
parent0a63f0cf49369e1926567ab62e04e3355cedf0cd (diff)
downloadopenbsd-82b7f378b6907ab315a6e50322d2a0a8794a0aa9.tar.gz
openbsd-82b7f378b6907ab315a6e50322d2a0a8794a0aa9.tar.bz2
openbsd-82b7f378b6907ab315a6e50322d2a0a8794a0aa9.zip
Convert libssl manpages from pod to mdoc(7).
libcrypto has not been started yet. ok schwarze@ miod@
Diffstat (limited to 'src/lib/libssl/doc/SSL_pending.3')
-rw-r--r--src/lib/libssl/doc/SSL_pending.341
1 files changed, 41 insertions, 0 deletions
diff --git a/src/lib/libssl/doc/SSL_pending.3 b/src/lib/libssl/doc/SSL_pending.3
new file mode 100644
index 0000000000..e07ba48283
--- /dev/null
+++ b/src/lib/libssl/doc/SSL_pending.3
@@ -0,0 +1,41 @@
1.Dd $Mdocdate: October 12 2014 $
2.Dt SSL_PENDING 3
3.Os
4.Sh NAME
5.Nm SSL_pending
6.Nd obtain number of readable bytes buffered in an SSL object
7.Sh SYNOPSIS
8.In openssl/ssl.h
9.Ft int
10.Fn SSL_pending "const SSL *ssl"
11.Sh DESCRIPTION
12.Fn SSL_pending
13returns the number of bytes which are available inside
14.Fa ssl
15for immediate read.
16.Sh NOTES
17Data are received in blocks from the peer.
18Therefore data can be buffered inside
19.Fa ssl
20and are ready for immediate retrieval with
21.Xr SSL_read 3 .
22.Sh RETURN VALUES
23The number of bytes pending is returned.
24.Sh SEE ALSO
25.Xr ssl 3 ,
26.Xr SSL_read 3
27.Sh BUGS
28.Fn SSL_pending
29takes into account only bytes from the TLS/SSL record that is currently being
30processed (if any).
31If the
32.Vt SSL
33object's
34.Em read_ahead
35flag is set, additional protocol bytes may have been read containing more
36TLS/SSL records; these are ignored by
37.Fn SSL_pending .
38.Pp
39Up to OpenSSL 0.9.6,
40.Fn SSL_pending
41does not check if the record type of pending data is application data.