From 7e434be88d03463c19e96b964295c56dd6d5aa89 Mon Sep 17 00:00:00 2001 From: Sebb Date: Fri, 22 Dec 2023 13:10:07 +0000 Subject: [PATCH] Try to support 3.2.X --- .../java/org/apache/commons/crypto/jna/OpenSslNativeJna.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/crypto/jna/OpenSslNativeJna.java b/src/main/java/org/apache/commons/crypto/jna/OpenSslNativeJna.java index 3d78aebd4..e5313d68a 100644 --- a/src/main/java/org/apache/commons/crypto/jna/OpenSslNativeJna.java +++ b/src/main/java/org/apache/commons/crypto/jna/OpenSslNativeJna.java @@ -48,6 +48,7 @@ final class OpenSslNativeJna { static final long VERSION_2_0_X = 0x20000000; static final long VERSION_3_0_X = 0x30000000; static final long VERSION_3_1_X = 0x30100000; + static final long VERSION_3_2_X = 0x30200000; private static final OpenSslInterfaceNativeJna JnaImplementation; @@ -91,7 +92,7 @@ final class OpenSslNativeJna { } else if (VERSION_X_Y == VERSION_2_0_X) { OpenSslJna.debug("Creating LibreSsl20XNativeJna"); JnaImplementation = new LibreSsl20XNativeJna(); - } else if (VERSION_X_Y == VERSION_3_0_X || VERSION_X_Y == VERSION_3_1_X) { // assume these are the same + } else if (VERSION_X_Y == VERSION_3_0_X || VERSION_X_Y == VERSION_3_1_X || VERSION_X_Y == VERSION_3_2_X) { // assume these are the same OpenSslJna.debug("Creating OpenSsl30XNativeJna"); JnaImplementation = new OpenSsl30XNativeJna(); } else {