cms demos: print signingTime attributes
authorJames Muir <james@openssl.org>
Fri, 3 Nov 2023 17:15:04 +0000 (13:15 -0400)
committerTomas Mraz <tomas@openssl.org>
Fri, 10 Nov 2023 12:06:46 +0000 (13:06 +0100)
commit9257a89b6f25dfa5aeee7114baec8ea992fcf5e5
treec9c6cc474b0fc688e1694e115f84b732fff4a91a
parent8286e63271c94fb815f007cb6ecd0fe20647253a
cms demos: print signingTime attributes

Add a makefile for the cms demos, and add a routine to cms_ver.c to
print any signingTime attributes from the CMS_ContentInfo object.
This provides an example that could be extended if an application
wants to examine the purported signing times.

Part of #8026

Testing:

  $ cd demos/cms
  $ make test

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22618)
demos/cms/Makefile [new file with mode: 0644]
demos/cms/cms_dec.c
demos/cms/cms_enc.c
demos/cms/cms_sign2.c
demos/cms/cms_ver.c