]> git.ipfire.org Git - thirdparty/systemd.git/commit
openssl: add hash_algorithm parameter to pkcs7_new()
authorDan Streetman <ddstreet@ieee.org>
Fri, 6 Jun 2025 16:31:40 +0000 (12:31 -0400)
committerDan Streetman <ddstreet@ieee.org>
Tue, 10 Jun 2025 12:44:51 +0000 (08:44 -0400)
commit768a297c4216656a20c9483bbd003cd91e75ecc3
tree17490e8bc9370e7a290a81a6e19d1b28187183c5
parentd83ceacc7eaee58ab5d928a20986ba946104d478
openssl: add hash_algorithm parameter to pkcs7_new()

The pkcs7_new() function currently uses the hash algorithm from the X509
certificate's signature, but the content signature may use a different hash
algorithm. This adds a parameter to allow specifying what hash algorithm the
content signature generation used.
src/keyutil/keyutil.c
src/sbsign/sbsign.c
src/shared/openssl-util.c
src/shared/openssl-util.h