PKCS#7: Provide a single place to do signed info block freeing
authorDavid Howells <dhowells@redhat.com>
Tue, 16 Sep 2014 16:29:03 +0000 (17:29 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 16 Sep 2014 16:29:03 +0000 (17:29 +0100)
commit3cd0920cde6a726b9965b60184f9d5a54358304d
tree94f4fc4be81e0d6d4dd21962ffa206a3815d99ca
parent54e2c2c1a9d6cbb270b0999a38545fa9a69bee43
PKCS#7: Provide a single place to do signed info block freeing

The code to free a signed info block is repeated several times, so move the
code to do it into a function of its own.  This gives us a place to add clean
ups for stuff that gets added to pkcs7_signed_info.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
crypto/asymmetric_keys/pkcs7_parser.c