diff options
author | Petr Gotthard <petr.gotthard@centrum.cz> | 2021-06-08 19:57:48 +0200 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2021-06-10 22:10:26 +1000 |
commit | 586820831afdd01954d82cb068e252cb1772081c (patch) | |
tree | 45b4faea63be98b3d6bf6d533bdaf266c42ee8ed /doc | |
parent | 20e80ad1bc7e432f85e696d7272cbac3c69b5633 (diff) |
doc: fix OSSL_PARAM_BLD pointers in the example
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15663)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man3/OSSL_PARAM_BLD.pod | 16 |
1 files 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) |