From: Kenzlee51 <121612281+Kenzlee51@users.noreply.github.com> Date: Tue, 8 Apr 2025 10:56:50 +0000 (+0300) Subject: Update cms_pwri.c X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=cb3fde9728b9deed1ab2fb37dbe1021a471066e0;p=thirdparty%2Fopenssl.git Update cms_pwri.c CLA: trivial When entering the branch (pbe_nid <= 0), line 66 assigns new values ​​to the variable of line 67 (pbe_nid = NID_id_pbkdf2). However, it is not used anywhere in the future. For this reason, lines 66 and 67 were removed. Reviewed-by: Saša Nedvědický Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/27296) --- diff --git a/crypto/cms/cms_pwri.c b/crypto/cms/cms_pwri.c index a7d609f8379..d907ad9a57a 100644 --- a/crypto/cms/cms_pwri.c +++ b/crypto/cms/cms_pwri.c @@ -63,9 +63,6 @@ CMS_RecipientInfo *CMS_add0_recipient_password(CMS_ContentInfo *cms, if (wrap_nid <= 0) wrap_nid = NID_id_alg_PWRI_KEK; - if (pbe_nid <= 0) - pbe_nid = NID_id_pbkdf2; - /* Get from enveloped data */ if (kekciph == NULL) kekciph = ec->cipher;