Provide crypto native for Linux x86_64 and OpenSSL 3.0.x (#854)

Compiled the crypto native on Debian testing (that ships with OpenSSL
3.0.5-2). Fixes #852.
This commit is contained in:
Hugo Manrique
2022-08-28 23:24:56 +02:00
committed by GitHub
parent 4b77425585
commit 6547ccaa7e
3 changed files with 5 additions and 2 deletions

View File

@@ -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. 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, * 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 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 CentOS 7 (OpenSSL 1.0.0-based), Debian 9 (OpenSSL 1.1.0-based) and Debian Bookworm (OpenSSL 3.0.0-based)
compatibility with most modern distributions. to provide the widest, most reasonable compatibility with most modern distributions.
## OS support ## OS support

View File

@@ -99,6 +99,9 @@ public class Natives {
new NativeCodeLoader.Variant<>(NativeConstraints.LINUX_X86_64, new NativeCodeLoader.Variant<>(NativeConstraints.LINUX_X86_64,
copyAndLoadNative("/linux_x86_64/velocity-cipher.so"), // Any local version copyAndLoadNative("/linux_x86_64/velocity-cipher.so"), // Any local version
"OpenSSL local (Linux x86_64)", NativeVelocityCipher.FACTORY), "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, new NativeCodeLoader.Variant<>(NativeConstraints.LINUX_X86_64,
copyAndLoadNative("/linux_x86_64/velocity-cipher-ossl11x.so"), // Debian 9 copyAndLoadNative("/linux_x86_64/velocity-cipher-ossl11x.so"), // Debian 9
"OpenSSL 1.1.x (Linux x86_64)", NativeVelocityCipher.FACTORY), "OpenSSL 1.1.x (Linux x86_64)", NativeVelocityCipher.FACTORY),