Always try to set ASN.1 parameters for CMS.
authorDr. Stephen Henson <steve@openssl.org>
Mon, 21 Mar 2016 15:48:51 +0000 (15:48 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 5 May 2016 21:30:23 +0000 (22:30 +0100)
commit3fd60dc42288591737a35a90368d72dbd00fdef8
tree1f85d76e5ba1380386401df3042cd6ecc2ffc3d1
parent50b4a9ba1382de7a1990fb4716585754b9c7f50d
Always try to set ASN.1 parameters for CMS.

Try to set the ASN.1 parameters for CMS encryption even if the IV
length is zero as the underlying cipher should still set the type.

This will correctly result in errors if an attempt is made to use
an unsupported cipher type.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/cms/cms_enc.c