diff options
Diffstat (limited to 'src/lib/libcrypto/cms/cms_enc.c')
-rw-r--r-- | src/lib/libcrypto/cms/cms_enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/cms/cms_enc.c b/src/lib/libcrypto/cms/cms_enc.c index cce6e95b5e..fd2df99c6c 100644 --- a/src/lib/libcrypto/cms/cms_enc.c +++ b/src/lib/libcrypto/cms/cms_enc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cms_enc.c,v 1.19 2019/08/11 10:54:11 jsing Exp $ */ | 1 | /* $OpenBSD: cms_enc.c,v 1.20 2019/08/11 11:04:18 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
4 | * project. | 4 | * project. |
@@ -234,7 +234,7 @@ CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph, | |||
234 | return 0; | 234 | return 0; |
235 | } | 235 | } |
236 | if (ciph) { | 236 | if (ciph) { |
237 | cms->d.encryptedData = M_ASN1_new_of(CMS_EncryptedData); | 237 | cms->d.encryptedData = (CMS_EncryptedData *)ASN1_item_new(&CMS_EncryptedData_it); |
238 | if (!cms->d.encryptedData) { | 238 | if (!cms->d.encryptedData) { |
239 | CMSerror(ERR_R_MALLOC_FAILURE); | 239 | CMSerror(ERR_R_MALLOC_FAILURE); |
240 | return 0; | 240 | return 0; |