diff --git a/native/README.md b/native/README.md index ce9bdb12a..d4efcf187 100644 --- a/native/README.md +++ b/native/README.md @@ -16,8 +16,8 @@ traditional Java fallbacks. way to use AES-NI extensions on modern processors, but this is less important since JDK 8 has native support. * OpenSSL is not included in Velocity. Every distribution provides it now. To deal with ABI incompatibilities, the native library (which only calls into OpenSSL and contains no cryptographic code) are available for - CentOS 7 (OpenSSL 1.0.0-based) and Debian 9 (OpenSSL 1.1.0-based) to provide the widest, most reasonable - compatibility with most modern distributions. + CentOS 7 (OpenSSL 1.0.0-based), Debian 9 (OpenSSL 1.1.0-based) and Debian Bookworm (OpenSSL 3.0.0-based) + to provide the widest, most reasonable compatibility with most modern distributions. ## OS support diff --git a/native/src/main/java/com/velocitypowered/natives/util/Natives.java b/native/src/main/java/com/velocitypowered/natives/util/Natives.java index 00db7b353..1306d7804 100644 --- a/native/src/main/java/com/velocitypowered/natives/util/Natives.java +++ b/native/src/main/java/com/velocitypowered/natives/util/Natives.java @@ -99,6 +99,9 @@ public class Natives { new NativeCodeLoader.Variant<>(NativeConstraints.LINUX_X86_64, copyAndLoadNative("/linux_x86_64/velocity-cipher.so"), // Any local version "OpenSSL local (Linux x86_64)", NativeVelocityCipher.FACTORY), + new NativeCodeLoader.Variant<>(NativeConstraints.LINUX_X86_64, + copyAndLoadNative("/linux_x86_64/velocity-cipher-ossl30x.so"), // Debian "Bookworm" + "OpenSSL 3.0.x (Linux x86_64)", NativeVelocityCipher.FACTORY), new NativeCodeLoader.Variant<>(NativeConstraints.LINUX_X86_64, copyAndLoadNative("/linux_x86_64/velocity-cipher-ossl11x.so"), // Debian 9 "OpenSSL 1.1.x (Linux x86_64)", NativeVelocityCipher.FACTORY), diff --git a/native/src/main/resources/linux_x86_64/velocity-cipher-ossl30x.so b/native/src/main/resources/linux_x86_64/velocity-cipher-ossl30x.so new file mode 100755 index 000000000..cb88a8d4d Binary files /dev/null and b/native/src/main/resources/linux_x86_64/velocity-cipher-ossl30x.so differ