early-access version 2698
This commit is contained in:
6
externals/libressl/crypto/cms/cms_pwri.c
vendored
6
externals/libressl/crypto/cms/cms_pwri.c
vendored
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: cms_pwri.c,v 1.26 2019/08/12 18:04:57 jsing Exp $ */
|
||||
/* $OpenBSD: cms_pwri.c,v 1.27 2022/01/19 13:47:44 inoguchi Exp $ */
|
||||
/*
|
||||
* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
|
||||
* project.
|
||||
@@ -126,7 +126,9 @@ CMS_add0_recipient_password(CMS_ContentInfo *cms, int iter, int wrap_nid,
|
||||
if (encalg == NULL) {
|
||||
goto merr;
|
||||
}
|
||||
ctx = EVP_CIPHER_CTX_new();
|
||||
|
||||
if ((ctx = EVP_CIPHER_CTX_new()) == NULL)
|
||||
goto merr;
|
||||
|
||||
if (EVP_EncryptInit_ex(ctx, kekciph, NULL, NULL, NULL) <= 0) {
|
||||
CMSerror(ERR_R_EVP_LIB);
|
||||
|
Reference in New Issue
Block a user