]> Savannah Git Hosting - gnulib.git/commit
af_alg: port to Ubuntu 22.04
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 May 2022 16:01:08 +0000 (09:01 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 May 2022 16:03:46 +0000 (09:03 -0700)
commit3d7075e2fb1bed02d0e978284aebb36eab24c791
tree2b28c92ed86fbf3250eae119beaae019f166d2f2
parentbd11400942d63de12371988dca8144925de9e2c3
af_alg: port to Ubuntu 22.04

Without this patch, maintainer builds of coreutils fail on Ubuntu
22.04 with diagnostics like "./lib/gl_openssl.h:79:1: error:
'MD5_Init' is deprecated: Since OpenSSL 3.0
[-Werror=deprecated-declarations]".  From
<https://wiki.openssl.org/index.php/OpenSSL_1.1.0_Changes>
it appears that Gnulib needs to either define OPENSSL_API_COMPAT
to a version less than 3.0, or use a compatibility layer, or
assume OpenSSL 1.1.0 or later.  The simplest workaround is to
define OPENSSL_API_COMPAT for 1.1.1, the oldest OpenSSL release
still supported.  A better fix would be to rewrite the code to
assume OpenSSL 1.1.1 or later, and stop using the older API.
* lib/md5.h, lib/sha1.h, lib/sha256.h, lib/sha512.h, lib/sm3.h:
Define OPENSSL_API_COMPAT to 0x10101000L to suppress
the deprecation warnings on Ubuntu 22.04.
ChangeLog
lib/md5.h
lib/sha1.h
lib/sha256.h
lib/sha512.h
lib/sm3.h