]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
doc: fix RSA_set_method return value documentation
authorkovan <xaum.io@gmail.com>
Mon, 2 Feb 2026 14:43:14 +0000 (15:43 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 12 Feb 2026 15:18:24 +0000 (16:18 +0100)
The documentation incorrectly stated that RSA_set_method() returns
a pointer to the old RSA_METHOD. In fact, it returns int (1 for success).
The SYNOPSIS correctly shows 'int RSA_set_method(...)' but the
RETURN VALUES section was wrong.

Fixes #13884

CLA: trivial

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
MergeDate: Thu Feb 12 15:18:38 2026
(Merged from https://github.com/openssl/openssl/pull/29916)

doc/man3/RSA_set_method.pod

index cee191a6cd459089ae1ba386e84d503a72d8078b..580cfe5d8c4c251be54448f26ed0c1c3b67235b9 100644 (file)
@@ -138,9 +138,7 @@ and RSA_get_method() return pointers to the respective RSA_METHODs.
 
 RSA_set_default_method() returns no value.
 
-RSA_set_method() returns a pointer to the old RSA_METHOD implementation
-that was replaced. The return type may be replaced with a B<void>
-declaration in a future release.
+RSA_set_method() returns 1 for success. It always succeeds.
 
 RSA_new_method() returns NULL and sets an error code that can be obtained
 by L<ERR_get_error(3)> if the allocation fails. Otherwise