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 unified build scheme: add build.info files 2016-02-01 12:46:58 +01:00
cms_asn1.c Following the license change, modify the boilerplates in crypto/cms/ 2018-12-06 14:40:53 +01:00
cms_att.c Add the content type attribute to additional CMS signerinfo. 2019-06-03 15:19:48 +10:00
cms_cd.c Change arg to cms_CompressedData_init_bio to be const 2019-03-08 16:06:26 +00:00
cms_dd.c constify *_dup() and *i2d_*() and related functions as far as possible, introducing DECLARE_ASN1_DUP_FUNCTION 2019-03-06 16:10:09 +00:00
cms_enc.c constify *_dup() and *i2d_*() and related functions as far as possible, introducing DECLARE_ASN1_DUP_FUNCTION 2019-03-06 16:10:09 +00:00
cms_env.c constify *_dup() and *i2d_*() and related functions as far as possible, introducing DECLARE_ASN1_DUP_FUNCTION 2019-03-06 16:10:09 +00:00
cms_err.c Add the content type attribute to additional CMS signerinfo. 2019-06-03 15:19:48 +10:00
cms_ess.c crypto/cms: Add support for CAdES Basic Electronic Signatures (CAdES-BES) 2019-01-27 23:59:21 +01:00
cms_io.c constify *_dup() and *i2d_*() and related functions as far as possible, introducing DECLARE_ASN1_DUP_FUNCTION 2019-03-06 16:10:09 +00:00
cms_kari.c constify *_dup() and *i2d_*() and related functions as far as possible, introducing DECLARE_ASN1_DUP_FUNCTION 2019-03-06 16:10:09 +00:00
cms_lcl.h Add the content type attribute to additional CMS signerinfo. 2019-06-03 15:19:48 +10:00
cms_lib.c constify *_dup() and *i2d_*() and related functions as far as possible, introducing DECLARE_ASN1_DUP_FUNCTION 2019-03-06 16:10:09 +00:00
cms_pwri.c constify *_dup() and *i2d_*() and related functions as far as possible, introducing DECLARE_ASN1_DUP_FUNCTION 2019-03-06 16:10:09 +00:00
cms_sd.c Add the content type attribute to additional CMS signerinfo. 2019-06-03 15:19:48 +10:00
cms_smime.c Following the license change, modify the boilerplates in crypto/cms/ 2018-12-06 14:40:53 +01:00