From: Arthur Gautier Date: Sun, 14 Mar 2021 22:23:01 +0000 (+0000) Subject: EVP_KDF-KB man page: fixup ABI/API change X-Git-Tag: openssl-3.0.0-alpha14~262 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4139a0c6ec4633351929fdde728dc984f562c51c;p=thirdparty%2Fopenssl.git EVP_KDF-KB man page: fixup ABI/API change fixup 7c75f2daf8b50c92bfb5c17fa62136e61f6eb515 https://github.com/openssl/openssl/pull/14310 Previous commit changes the api, one code sample was left with previous API. CLA: trivial Signed-off-by: Arthur Gautier Reviewed-by: Shane Lontis Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/14551) --- diff --git a/doc/man7/EVP_KDF-KB.pod b/doc/man7/EVP_KDF-KB.pod index 2ab3e55076f..3020a42a815 100644 --- a/doc/man7/EVP_KDF-KB.pod +++ b/doc/man7/EVP_KDF-KB.pod @@ -138,9 +138,7 @@ Label "label", and IV "sixteen bytes iv". *p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_SEED, iv, strlen(iv)); *p = OSSL_PARAM_construct_end(); - if (EVP_KDF_CTX_set_params(kctx, params) <= 0) - error("EVP_KDF_CTX_set_params"); - else if (EVP_KDF_derive(kctx, out, sizeof(out)) <= 0) + if (EVP_KDF_derive(kctx, out, sizeof(out), params) <= 0) error("EVP_KDF_derive"); EVP_KDF_CTX_free(kctx);