]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[crypto] Hold CMS message as a single ASN.1 object
authorMichael Brown <mcb30@ipxe.org>
Fri, 23 Aug 2024 11:25:36 +0000 (12:25 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 23 Aug 2024 12:43:42 +0000 (13:43 +0100)
commitbdb5b4aef46ed34b47094652f3eefc7d0463d166
treefe75769107040f350e611c0bb4b4f5c340e1f861
parent46937a9df622d1e9fb5b1e926a04176b8855fdce
[crypto] Hold CMS message as a single ASN.1 object

Reduce the number of dynamic allocations required to parse a CMS
message by retaining the ASN.1 cursor returned from image_asn1() for
the lifetime of the CMS message.  This allows embedded ASN.1 cursors
to be used for parsed objects within the message, such as embedded
signatures.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/crypto/cms.c
src/include/ipxe/cms.h