• David Howells's avatar
    PKCS#7: Make the signature a pointer rather than embedding it · ed732bfe
    David Howells authored
    Point to the public_key_signature struct from the pkcs7_signed_info struct
    rather than embedding it.  This makes it easier to have it take an
    arbitrary number of MPIs in future.
    
    We also save a copy of the digest in the signature without sharing the
    memory with the crypto layer metadata.  This means we can use
    public_key_free() to get rid of the signature record.
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    ed732bfe
pkcs7_trust.c 4.79 KB