[openssl] openssl-3.0 update

Dr. Paul Dale pauli at openssl.org
Tue Sep 28 08:17:37 UTC 2021


The branch openssl-3.0 has been updated
       via  4ff1639adb732f0f49652ed22124df2c0b199726 (commit)
      from  144562d412580f58656d64959bfe6d4794fef6a2 (commit)


- Log -----------------------------------------------------------------
commit 4ff1639adb732f0f49652ed22124df2c0b199726
Author: Peiwei Hu <58985155+PeiweiHu at users.noreply.github.com>
Date:   Sun Sep 26 15:44:42 2021 +0800

    Fix some documentation errors
    
    CLA: trivial
    
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    Reviewed-by: Paul Dale <pauli at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/16684)
    
    (cherry picked from commit 9efdf4ad6b130aa4e206a8fd612539925c0b1e45)

-----------------------------------------------------------------------

Summary of changes:
 doc/man3/BIO_s_file.pod | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/man3/BIO_s_file.pod b/doc/man3/BIO_s_file.pod
index c2beb7f924..aaaf2dc39e 100644
--- a/doc/man3/BIO_s_file.pod
+++ b/doc/man3/BIO_s_file.pod
@@ -87,7 +87,7 @@ BIO_s_file() returns the file BIO method.
 BIO_new_file() and BIO_new_fp() return a file BIO or NULL if an error
 occurred.
 
-BIO_set_fp() and BIO_get_fp() return 1 for success or 0 for failure
+BIO_set_fp() and BIO_get_fp() return 1 for success or <=0 for failure
 (although the current implementation never return 0).
 
 BIO_seek() returns the same value as the underlying fseek() function:
@@ -96,7 +96,7 @@ BIO_seek() returns the same value as the underlying fseek() function:
 BIO_tell() returns the current file position.
 
 BIO_read_filename(), BIO_write_filename(), BIO_append_filename() and
-BIO_rw_filename() return 1 for success or 0 for failure.
+BIO_rw_filename() return 1 for success or <=0 for failure.
 
 =head1 EXAMPLES
 
@@ -114,7 +114,7 @@ Alternative technique:
  bio_out = BIO_new(BIO_s_file());
  if (bio_out == NULL)
      /* Error */
- if (!BIO_set_fp(bio_out, stdout, BIO_NOCLOSE))
+ if (BIO_set_fp(bio_out, stdout, BIO_NOCLOSE) <= 0)
      /* Error */
  BIO_printf(bio_out, "Hello World\n");
 
@@ -135,7 +135,7 @@ Alternative technique:
  out = BIO_new(BIO_s_file());
  if (out == NULL)
      /* Error */
- if (!BIO_write_filename(out, "filename.txt"))
+ if (BIO_write_filename(out, "filename.txt") <= 0)
      /* Error */
  BIO_printf(out, "Hello World\n");
  BIO_free(out);


More information about the openssl-commits mailing list