]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix some documentation errors related to return values
authorPW Hu <jlu.hpw@foxmail.com>
Sat, 9 Oct 2021 07:21:00 +0000 (15:21 +0800)
committerTomas Mraz <tomas@openssl.org>
Fri, 22 Oct 2021 09:40:49 +0000 (11:40 +0200)
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16794)

(cherry picked from commit f1d077f1108b1bc2334350a4d53a46e29e082910)

doc/man3/ENGINE_add.pod
doc/man3/ERR_load_strings.pod

index 369900c248c5bb431e8874628fdf11fc5e2f4850..74589538b27cf936a6c717ad59ef543fae6d8ef7 100644 (file)
@@ -597,8 +597,7 @@ B<ENGINE> implementations.
 
 All ENGINE_register_TYPE() functions return 1 on success or 0 on error.
 
-ENGINE_register_complete() and ENGINE_register_all_complete() return 1 on success
-or 0 on error.
+ENGINE_register_complete() and ENGINE_register_all_complete() always return 1.
 
 ENGINE_ctrl() returns a positive value on success or others on error.
 
@@ -609,7 +608,7 @@ ENGINE_ctrl_cmd() and ENGINE_ctrl_cmd_string() return 1 on success or 0 on error
 ENGINE_new() returns a valid B<ENGINE> structure on success or NULL if an error
 occurred.
 
-ENGINE_free() returns 1 on success or 0 on error.
+ENGINE_free() always returns 1.
 
 ENGINE_up_ref() returns 1 on success or 0 on error.
 
index 3167f2715052df13496f38398f6362e370b85d41..8c708584c09fbf5c18d8b61bf1fdc789e0b050c8 100644 (file)
@@ -9,7 +9,7 @@ arbitrary error strings
 
  #include <openssl/err.h>
 
void ERR_load_strings(int lib, ERR_STRING_DATA str[]);
int ERR_load_strings(int lib, ERR_STRING_DATA *str);
 
  int ERR_get_next_error_library(void);
 
@@ -38,7 +38,7 @@ to user libraries at runtime.
 
 =head1 RETURN VALUES
 
-ERR_load_strings() returns no value. ERR_PACK() return the error code.
+ERR_load_strings() returns 1 for success and 0 for failure. ERR_PACK() returns the error code.
 ERR_get_next_error_library() returns zero on failure, otherwise a new
 library number.