From fd819adc99dbabf4ce925dfbc5c65f18587edf31 Mon Sep 17 00:00:00 2001 From: tb Date: Sun, 21 Jul 2024 08:02:17 +0000 Subject: [PATCH] Make example slightly less terrible by dropping the ENGINE "handling" --- lib/libcrypto/man/EVP_PKEY_keygen.3 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/libcrypto/man/EVP_PKEY_keygen.3 b/lib/libcrypto/man/EVP_PKEY_keygen.3 index e86c0498434..32ed4a15c8b 100644 --- a/lib/libcrypto/man/EVP_PKEY_keygen.3 +++ b/lib/libcrypto/man/EVP_PKEY_keygen.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: EVP_PKEY_keygen.3,v 1.13 2023/09/10 04:05:26 jsg Exp $ +.\" $OpenBSD: EVP_PKEY_keygen.3,v 1.14 2024/07/21 08:02:17 tb Exp $ .\" full merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100 .\" .\" This file is a derived work. @@ -66,7 +66,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: September 10 2023 $ +.Dd $Mdocdate: July 21 2024 $ .Dt EVP_PKEY_KEYGEN 3 .Os .Sh NAME @@ -286,11 +286,10 @@ Generate a key from a set of parameters: #include EVP_PKEY_CTX *ctx; -ENGINE *eng; EVP_PKEY *pkey = NULL, *param; -/* Assumes that param and eng are already set up. */ -ctx = EVP_PKEY_CTX_new(param, eng); +/* Assumes that param is already set up. */ +ctx = EVP_PKEY_CTX_new(param, NULL); if (!ctx) /* Error occurred */ if (EVP_PKEY_keygen_init(ctx) <= 0) -- 2.20.1