diff options
author | Tomas Mraz <tomas@openssl.org> | 2021-06-09 13:48:21 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-06-11 09:51:14 +0200 |
commit | 20778ea7dad8c4f659dbb5dfcb4fac896e51ed6a (patch) | |
tree | 209127cde7c9941dee849201e693569d8fd3d3f6 /doc | |
parent | 451c2a95bd7b21677efedb7c4a8860d3178a5f65 (diff) | |
download | openssl-new-20778ea7dad8c4f659dbb5dfcb4fac896e51ed6a.tar.gz |
BIO_write_ex: No error only on 0 bytes to write
Fixes #15682
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15672)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man3/BIO_read.pod | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/man3/BIO_read.pod b/doc/man3/BIO_read.pod index 08104b1b92..a2d8ab3af0 100644 --- a/doc/man3/BIO_read.pod +++ b/doc/man3/BIO_read.pod @@ -27,7 +27,7 @@ stored in I<*readbytes>. BIO_write_ex() attempts to write I<dlen> bytes from I<data> to BIO I<b>. If successful then the number of bytes written is stored in I<*written> -unless I<written> is NULL. No data is written if I<b> is NULL. +unless I<written> is NULL. BIO_read() attempts to read I<len> bytes from BIO I<b> and places the data in I<buf>. @@ -59,7 +59,7 @@ BIO_puts() attempts to write a NUL-terminated string I<buf> to BIO I<b>. BIO_read_ex() returns 1 if data was successfully read, and 0 otherwise. BIO_write_ex() returns 1 if no error was encountered writing data, 0 otherwise. -Write to NULL B<BIO> is not considered as an error. +Requesting to write 0 bytes is not considered an error. BIO_write() returns -2 if the "write" operation is not implemented by the BIO or -1 on other errors. @@ -114,6 +114,9 @@ keep the '\n' at the end of the line in the buffer. BIO_get_line() was added in OpenSSL 3.0. +BIO_write_ex() returns 1 if the size of the data to write is 0 and the +I<written> parameter of the function can be NULL since OpenSSL 3.0. + =head1 COPYRIGHT Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved. |