]> www.infradead.org Git - users/dwmw2/linux.git/commit
sign-file,extract-cert: use pkcs11 provider for OPENSSL MAJOR >= 3
authorJan Stancek <jstancek@redhat.com>
Fri, 20 Sep 2024 16:52:48 +0000 (19:52 +0300)
committerJarkko Sakkinen <jarkko@kernel.org>
Fri, 20 Sep 2024 16:52:48 +0000 (19:52 +0300)
commit558bdc45dfb2669e1741384a0c80be9c82fa052c
tree5567344a4e99e59aa8333e6e5b004c4960f61386
parent467d60eddf55588add232feda325da7215ddaf30
sign-file,extract-cert: use pkcs11 provider for OPENSSL MAJOR >= 3

ENGINE API has been deprecated since OpenSSL version 3.0 [1].
Distros have started dropping support from headers and in future
it will likely disappear also from library.

It has been superseded by the PROVIDER API, so use it instead
for OPENSSL MAJOR >= 3.

[1] https://github.com/openssl/openssl/blob/master/README-ENGINES.md

[jarkko: fixed up alignment issues reported by checkpatch.pl --strict]

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Tested-by: R Nageswara Sastry <rnsastry@linux.ibm.com>
Reviewed-by: Neal Gompa <neal@gompa.dev>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
certs/extract-cert.c
scripts/sign-file.c