From: kovan Date: Mon, 2 Feb 2026 14:43:14 +0000 (+0100) Subject: doc: fix RSA_set_method return value documentation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=039baf390e5e6a3ea8cbb564302a4d5cf2cec502;p=thirdparty%2Fopenssl.git doc: fix RSA_set_method return value documentation 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 Reviewed-by: Dmitry Belyavskiy Reviewed-by: Tom Cosgrove Reviewed-by: Tomas Mraz MergeDate: Thu Feb 12 15:18:38 2026 (Merged from https://github.com/openssl/openssl/pull/29916) --- diff --git a/doc/man3/RSA_set_method.pod b/doc/man3/RSA_set_method.pod index cee191a6cd4..580cfe5d8c4 100644 --- a/doc/man3/RSA_set_method.pod +++ b/doc/man3/RSA_set_method.pod @@ -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 -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 if the allocation fails. Otherwise