[openssl] master update

Dr. Paul Dale pauli at openssl.org
Thu Jun 10 12:10:53 UTC 2021


The branch master has been updated
       via  586820831afdd01954d82cb068e252cb1772081c (commit)
      from  20e80ad1bc7e432f85e696d7272cbac3c69b5633 (commit)


- Log -----------------------------------------------------------------
commit 586820831afdd01954d82cb068e252cb1772081c
Author: Petr Gotthard <petr.gotthard at centrum.cz>
Date:   Tue Jun 8 19:57:48 2021 +0200

    doc: fix OSSL_PARAM_BLD pointers in the example
    
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    Reviewed-by: Paul Dale <pauli at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/15663)

-----------------------------------------------------------------------

Summary of changes:
 doc/man3/OSSL_PARAM_BLD.pod | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/doc/man3/OSSL_PARAM_BLD.pod b/doc/man3/OSSL_PARAM_BLD.pod
index 9190e81c01..fdc9ec3081 100644
--- a/doc/man3/OSSL_PARAM_BLD.pod
+++ b/doc/man3/OSSL_PARAM_BLD.pod
@@ -138,15 +138,15 @@ This example shows how to create an OSSL_PARAM array that contains an RSA
 private key.
 
     OSSL_PARAM_BLD *bld = OSSL_PARAM_BLD_new();
-    OSSL_PARAM *params;
+    OSSL_PARAM *params = NULL;
 
     if (bld == NULL
-        || !OSSL_PARAM_BLD_push_BN(&bld, "p", p)
-        || !OSSL_PARAM_BLD_push_BN(&bld, "q", q)
-        || !OSSL_PARAM_BLD_push_uint(&bld, "e", e)
-        || !OSSL_PARAM_BLD_push_BN(&bld, "n", n)
-        || !OSSL_PARAM_BLD_push_BN(&bld, "d", d)
-        || (params = OSSL_PARAM_BLD_to_param(&bld)) == NULL)
+        || !OSSL_PARAM_BLD_push_BN(bld, "p", p)
+        || !OSSL_PARAM_BLD_push_BN(bld, "q", q)
+        || !OSSL_PARAM_BLD_push_uint(bld, "e", e)
+        || !OSSL_PARAM_BLD_push_BN(bld, "n", n)
+        || !OSSL_PARAM_BLD_push_BN(bld, "d", d)
+        || (params = OSSL_PARAM_BLD_to_param(bld)) == NULL)
         goto err;
     OSSL_PARAM_BLD_free(bld);
     /* Use params */
@@ -159,7 +159,7 @@ This example shows how to create an OSSL_PARAM array that contains an RSA
 public key.
 
     OSSL_PARAM_BLD *bld = OSSL_PARAM_BLD_new();
-    OSSL_PARAM *params;
+    OSSL_PARAM *params = NULL;
 
     if (nld == NULL
         || !OSSL_PARAM_BLD_push_BN(bld, "n", n)


More information about the openssl-commits mailing list