Updated return value of PEM_write_TYPE() and PEM_write_bio_TYPE() in man-pages.
authorJeeban Sethi <13jeeban@gmail.com>
Mon, 3 Apr 2023 08:46:24 +0000 (14:16 +0530)
committerTomas Mraz <tomas@openssl.org>
Tue, 11 Apr 2023 08:45:44 +0000 (10:45 +0200)
Fixes #20218

CLA: trivial

Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20673)

doc/man3/PEM_read_CMS.pod

index 2b96db9c31a330d2ecd754e10cac451a8f03d287..311f40e343d163e9c609523d3e98ba3a5f0553fb 100644 (file)
@@ -122,8 +122,7 @@ B<PEM_read_I<TYPE>>() and B<PEM_read_bio_I<TYPE>>() return a pointer to an
 allocated object, which should be released by calling B<I<TYPE>_free>(), or
 NULL on error.
 
-B<PEM_write_I<TYPE>>() and B<PEM_write_bio_I<TYPE>>() return the number of bytes
-written or zero on error.
+B<PEM_write_I<TYPE>>() and B<PEM_write_bio_I<TYPE>>() return 1 for success or 0 for failure.
 
 =head1 SEE ALSO