btrfs-progs: build: require Botan version 3.x

The library version 2 is being removed from distros, use the newer one.
The minimum requirement of BLAKE2b support is already in the version
3.0.0.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2025-01-06 13:17:27 +01:00
parent 60f399b208
commit 9f6333a289
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ dependencies are not desired.
- libgcrypt >= 1.8.0
- libsodium >= 1.0.4
- libkcapi >= 1.0.0
- Botan >= 2.19.0
- Botan >= 3.0.0
- OpenSSL >= 3.2.0
Optionally, multipath device detection requires libudev and running udev

View File

@ -274,9 +274,9 @@ elif test "$with_crypto" = "libkcapi"; then
cryptoproviderversion=`${PKG_CONFIG} libkcapi --modversion`
elif test "$with_crypto" = "botan"; then
cryptoprovider="botan"
PKG_CHECK_MODULES(BOTAN, [botan-2 >= 2.19.0])
PKG_CHECK_MODULES(BOTAN, [botan-3 >= 3.0.0])
CRYPTOPROVIDER_BOTAN=1
cryptoproviderversion=`${PKG_CONFIG} botan-2 --modversion`
cryptoproviderversion=`${PKG_CONFIG} botan-3 --modversion`
elif test "$with_crypto" = "openssl"; then
cryptoprovider="openssl"
PKG_CHECK_MODULES(OPENSSL, [libcrypto >= 3.2.0])