apps/ca,req,x509: Switch to EVP_DigestSignInit_ex
authorPetr Gotthard <petr.gotthard@centrum.cz>
Sat, 24 Apr 2021 10:40:36 +0000 (12:40 +0200)
committerDmitry Belyavskiy <beldmit@gmail.com>
Fri, 30 Apr 2021 19:02:59 +0000 (21:02 +0200)
commit91034b68b39e3525f09fb263b9272de410a3ba4c
tree1594bb987f08265e80328f491f11fc4f1c5551ca
parent4489655c23f1f7f412309e25a5b9fd7acf7db3f2
apps/ca,req,x509: Switch to EVP_DigestSignInit_ex

Switch lib/apps.c do_sign_init() to use EVP_DigestSignInit_ex, so it
works with external providers.
Since EVP_DigestSignInit_ex requires a digest name instead of
an EVP_MD pointer, the apps using do_sign_init() had to be modified
to pass char* instead of EVP_MD*.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/15014)
apps/ca.c
apps/include/apps.h
apps/lib/apps.c
apps/req.c
apps/x509.c