From 4ca2bb5b35e3b04704a6f142eef9e121bb70be10 Mon Sep 17 00:00:00 2001 From: tb Date: Sun, 21 Jul 2024 08:10:17 +0000 Subject: [PATCH] Garbage collect ENGINE "use" from EVP_PKEY_decrypt() example --- lib/libcrypto/man/EVP_PKEY_decrypt.3 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/libcrypto/man/EVP_PKEY_decrypt.3 b/lib/libcrypto/man/EVP_PKEY_decrypt.3 index af5ed93fba7..2166003af8c 100644 --- a/lib/libcrypto/man/EVP_PKEY_decrypt.3 +++ b/lib/libcrypto/man/EVP_PKEY_decrypt.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: EVP_PKEY_decrypt.3,v 1.8 2022/03/31 17:27:17 naddy Exp $ +.\" $OpenBSD: EVP_PKEY_decrypt.3,v 1.9 2024/07/21 08:10:17 tb Exp $ .\" full merge up to: OpenSSL 48e5119a Jan 19 10:49:22 2018 +0100 .\" .\" This file was written by Dr. Stephen Henson . @@ -49,7 +49,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: March 31 2022 $ +.Dd $Mdocdate: July 21 2024 $ .Dt EVP_PKEY_DECRYPT 3 .Os .Sh NAME @@ -130,16 +130,15 @@ Decrypt data using OAEP (for RSA keys): #include EVP_PKEY_CTX *ctx; -ENGINE *eng; unsigned char *out, *in; size_t outlen, inlen; EVP_PKEY *key; /* - * Assumes that key, eng, in, and inlen are already set up + * Assumes that key, in, and inlen are already set up * and that key is an RSA private key. */ -ctx = EVP_PKEY_CTX_new(key, eng); +ctx = EVP_PKEY_CTX_new(key, NULL); if (!ctx) /* Error occurred */ if (EVP_PKEY_decrypt_init(ctx) <= 0) -- 2.20.1