From b62b2cda811eb26882ba6eb737b566e44c3e7d04 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sun, 11 Aug 2019 11:04:18 +0000 Subject: Expand M_ASN1_new_of and M_ASN1_free_of macros. --- src/lib/libcrypto/cms/cms_pwri.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/libcrypto/cms/cms_pwri.c') diff --git a/src/lib/libcrypto/cms/cms_pwri.c b/src/lib/libcrypto/cms/cms_pwri.c index 6423ddeaf9..ef38a3f0f4 100644 --- a/src/lib/libcrypto/cms/cms_pwri.c +++ b/src/lib/libcrypto/cms/cms_pwri.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cms_pwri.c,v 1.24 2019/08/11 10:54:11 jsing Exp $ */ +/* $OpenBSD: cms_pwri.c,v 1.25 2019/08/11 11:04:18 jsing Exp $ */ /* * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. @@ -158,11 +158,11 @@ CMS_add0_recipient_password(CMS_ContentInfo *cms, int iter, int wrap_nid, ctx = NULL; /* Initialize recipient info */ - ri = M_ASN1_new_of(CMS_RecipientInfo); + ri = (CMS_RecipientInfo *)ASN1_item_new(&CMS_RecipientInfo_it); if (ri == NULL) goto merr; - ri->d.pwri = M_ASN1_new_of(CMS_PasswordRecipientInfo); + ri->d.pwri = (CMS_PasswordRecipientInfo *)ASN1_item_new(&CMS_PasswordRecipientInfo_it); if (ri->d.pwri == NULL) goto merr; ri->type = CMS_RECIPINFO_PASS; @@ -206,7 +206,7 @@ CMS_add0_recipient_password(CMS_ContentInfo *cms, int iter, int wrap_nid, err: EVP_CIPHER_CTX_free(ctx); if (ri) - M_ASN1_free_of(ri, CMS_RecipientInfo); + ASN1_item_free((ASN1_VALUE *)ri, &CMS_RecipientInfo_it); X509_ALGOR_free(encalg); return NULL; -- cgit v1.2.3-55-g6feb