Commit 039baf390e for openssl.org

commit 039baf390e5e6a3ea8cbb564302a4d5cf2cec502
Author: kovan <xaum.io@gmail.com>
Date:   Mon Feb 2 15:43:14 2026 +0100

    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 <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)

diff --git a/doc/man3/RSA_set_method.pod b/doc/man3/RSA_set_method.pod
index cee191a6cd..580cfe5d8c 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<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