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>
Thu, 16 Nov 2023 13:46:25 +0000 (14:46 +0100)
commit83fc4bb3cbfcb8a5296470317d2c0dd22047bb90
treea9fafa7e5fd89912e2c5cabb66275f8dadd95654
parentd339f4070c40c30d99ba51df0231559efbb4280e
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>
(cherry picked from commit 9257a89b6f25dfa5aeee7114baec8ea992fcf5e5)

Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22728)
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