RSA_get0_ functions permit NULL parameters
authorKen Goldman <kgoldman@us.ibm.com>
Mon, 31 Jul 2017 20:44:47 +0000 (16:44 -0400)
committerMatt Caswell <matt@openssl.org>
Tue, 1 Aug 2017 17:14:43 +0000 (18:14 +0100)
Document that the RSA_get0_ functions permit a NULL BIGNUM **. Those output parameters are ignored.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4064)

(cherry picked from commit 07c54e598ce8a15c08abcfcae939bdf8f017dae3)

doc/crypto/RSA_get0_key.pod

index 52f83e1b907ba356b78425752cf7de08c8672b18..827c22fa9f63e5a770405719265c1970b96103bb 100644 (file)
@@ -58,6 +58,10 @@ set with RSA_get0_factors() and RSA_set0_factors(), and the B<dmp1>,
 B<dmq1> and B<iqmp> parameters can be obtained and set with
 RSA_get0_crt_params() and RSA_set0_crt_params().
 
+For RSA_get0_key(), RSA_get0_factors(), and RSA_get0_crt_params(),
+NULL value BIGNUM ** output parameters are permitted.  The functions
+ignore NULL parameters but return values for other, non-NULL, parameters.
+
 RSA_set_flags() sets the flags in the B<flags> parameter on the RSA
 object. Multiple flags can be passed in one go (bitwise ORed together).
 Any flags that are already set are left set. RSA_test_flags() tests to