diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-04-26 14:55:18 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-05-04 18:16:56 +0200 |
commit | 8b25b0eb991bf70123bedc4c4c4e0215dd8bd926 (patch) | |
tree | 053a910c0d04400d9dab0392f09b923c2d151f7c /doc/man3 | |
parent | d9efb24de8765ddc921b8e304372e8e33d4d65f4 (diff) |
BIO_eof() and OSSL_STORE_eof(): Make sure to return 1 on error; improve related doc
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15029)
Diffstat (limited to 'doc/man3')
-rw-r--r-- | doc/man3/BIO_ctrl.pod | 2 | ||||
-rw-r--r-- | doc/man3/OSSL_STORE_open.pod | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/man3/BIO_ctrl.pod b/doc/man3/BIO_ctrl.pod index 328382d7c9..b3108f83ef 100644 --- a/doc/man3/BIO_ctrl.pod +++ b/doc/man3/BIO_ctrl.pod @@ -92,7 +92,7 @@ for success and -1 for failure. BIO_flush() returns 1 for success and 0 or -1 for failure. -BIO_eof() returns 1 if EOF has been reached 0 otherwise. +BIO_eof() returns 1 if EOF has been reached, 0 if not, or -1 for failure. BIO_set_close() always returns 1. diff --git a/doc/man3/OSSL_STORE_open.pod b/doc/man3/OSSL_STORE_open.pod index 61571be490..3d6d03a990 100644 --- a/doc/man3/OSSL_STORE_open.pod +++ b/doc/man3/OSSL_STORE_open.pod @@ -143,8 +143,8 @@ on error or when end of data is reached. Use OSSL_STORE_error() and OSSL_STORE_eof() to determine the meaning of a returned NULL. -OSSL_STORE_eof() returns 1 if the end of data has been reached, otherwise -0. +OSSL_STORE_eof() returns 1 if the end of data has been reached +or an error occurred, 0 otherwise. OSSL_STORE_error() returns 1 if an error occurred in an OSSL_STORE_load() call, otherwise 0. |