From d4a8a5307b56c289ec6d6d8cb2decd2e03d58688 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Thu, 15 Sep 2022 11:51:30 +0200 Subject: CMS_decrypt*(): fix misconceptions and mem leak Also document CMS_decrypt_set1_password() and fix CMS_EnvelopedData_create.pod. Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale Reviewed-by: David von Oheimb (Merged from https://github.com/openssl/openssl/pull/20209) (cherry picked from commit 26521faae48c14597877e330911171105ab6c30f) --- crypto/cms/cms_env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/cms/cms_env.c') diff --git a/crypto/cms/cms_env.c b/crypto/cms/cms_env.c index 51a1d7df84..584fe1a547 100644 --- a/crypto/cms/cms_env.c +++ b/crypto/cms/cms_env.c @@ -138,7 +138,7 @@ int ossl_cms_env_asn1_ctrl(CMS_RecipientInfo *ri, int cmd) return 1; } -CMS_EncryptedContentInfo* ossl_cms_get0_env_enc_content(const CMS_ContentInfo *cms) +CMS_EncryptedContentInfo *ossl_cms_get0_env_enc_content(const CMS_ContentInfo *cms) { switch (cms_get_enveloped_type(cms)) { case CMS_ENVELOPED_STANDARD: -- cgit v1.2.3