openssl/crypto/cms
Shane Lontis d63d841fb5 Add the content type attribute to additional CMS signerinfo.
Fixes #8923

Found using the openssl cms -resign option.
This uses an alternate path to do the signing which was not adding the required signed attribute
content type. The content type attribute should always exist since it is required is there are
any signed attributes.
As the signing time attribute is always added in code, the content type attribute is also required.
The CMS_si_check_attributes() method adds validity checks for signed and unsigned attributes
e.g. The message digest attribute is a signed attribute that must exist if any signed attributes
exist, it cannot be an unsigned attribute and there must only be one instance containing a single
value.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8944)

(cherry picked from commit 19e512a824)
2019-06-03 15:25:10 +10:00
..
build.info
cms_asn1.c Fix gcc-7 warnings. 2017-05-11 19:39:38 +02:00
cms_att.c Add the content type attribute to additional CMS signerinfo. 2019-06-03 15:25:10 +10:00
cms_cd.c Fix enable-zlib 2016-08-22 09:43:13 +01:00
cms_dd.c
cms_enc.c Update copyright year 2018-04-17 15:18:40 +02:00
cms_env.c Update copyright year 2018-05-29 13:16:04 +01:00
cms_err.c Add the content type attribute to additional CMS signerinfo. 2019-06-03 15:25:10 +10:00
cms_ess.c
cms_io.c
cms_kari.c Update copyright year 2019-02-26 14:05:09 +00:00
cms_lcl.h Add the content type attribute to additional CMS signerinfo. 2019-06-03 15:25:10 +10:00
cms_lib.c Fix spelling errors in CMS. 2017-05-27 14:15:24 +02:00
cms_pwri.c Add missing OPENSSL_clear_free before using ec->key 2018-12-13 10:10:02 +00:00
cms_sd.c Add the content type attribute to additional CMS signerinfo. 2019-06-03 15:25:10 +10:00
cms_smime.c Update copyright year 2018-05-29 13:16:04 +01:00