diff options
author | bentley <> | 2014-10-12 09:33:04 +0000 |
---|---|---|
committer | bentley <> | 2014-10-12 09:33:04 +0000 |
commit | 82b7f378b6907ab315a6e50322d2a0a8794a0aa9 (patch) | |
tree | a5087bf8d016a6041c2b6822fbecfd8f6c5e70b1 /src/lib/libssl/doc/SSL_pending.3 | |
parent | 0a63f0cf49369e1926567ab62e04e3355cedf0cd (diff) | |
download | openbsd-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.3 | 41 |
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 | ||
13 | returns the number of bytes which are available inside | ||
14 | .Fa ssl | ||
15 | for immediate read. | ||
16 | .Sh NOTES | ||
17 | Data are received in blocks from the peer. | ||
18 | Therefore data can be buffered inside | ||
19 | .Fa ssl | ||
20 | and are ready for immediate retrieval with | ||
21 | .Xr SSL_read 3 . | ||
22 | .Sh RETURN VALUES | ||
23 | The 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 | ||
29 | takes into account only bytes from the TLS/SSL record that is currently being | ||
30 | processed (if any). | ||
31 | If the | ||
32 | .Vt SSL | ||
33 | object's | ||
34 | .Em read_ahead | ||
35 | flag is set, additional protocol bytes may have been read containing more | ||
36 | TLS/SSL records; these are ignored by | ||
37 | .Fn SSL_pending . | ||
38 | .Pp | ||
39 | Up to OpenSSL 0.9.6, | ||
40 | .Fn SSL_pending | ||
41 | does not check if the record type of pending data is application data. | ||