openssl/crypto/cms
Shane Lontis 19e512a824 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)
2019-06-03 15:19:48 +10:00
..
build.info
cms_asn1.c
cms_att.c
cms_cd.c
cms_dd.c
cms_enc.c
cms_env.c
cms_err.c
cms_ess.c
cms_io.c
cms_kari.c
cms_lcl.h
cms_lib.c
cms_pwri.c
cms_sd.c
cms_smime.c