Closed martinezjavier closed 3 years ago
The SHA1_*() functions have been deprecated since OpenSSL 3.0, this leads to compile errors when building with -Werror=deprecated-declarations, i.e:
... mokutil.c: In function 'print_x509': mokutil.c:424:9: error: 'SHA1_Init' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 424 | SHA1_Init (&ctx); | ^~~~~ ...
instead, the EVP_Digest*() functions could be used. Port to them and avoid these build failures with the latest OpenSSL 3.0 version.
Signed-off-by: Javier Martinez Canillas javierm@redhat.com
LGTM
The SHA1_*() functions have been deprecated since OpenSSL 3.0, this leads to compile errors when building with -Werror=deprecated-declarations, i.e:
... mokutil.c: In function 'print_x509': mokutil.c:424:9: error: 'SHA1_Init' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 424 | SHA1_Init (&ctx); | ^
~~~~ ...instead, the EVP_Digest*() functions could be used. Port to them and avoid these build failures with the latest OpenSSL 3.0 version.
Signed-off-by: Javier Martinez Canillas javierm@redhat.com