This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-crypto.git


The following commit(s) were added to refs/heads/master by this push:
     new 7e434be8 Try to support 3.2.X
7e434be8 is described below

commit 7e434be88d03463c19e96b964295c56dd6d5aa89
Author: Sebb <s...@apache.org>
AuthorDate: Fri Dec 22 13:10:07 2023 +0000

    Try to support 3.2.X
---
 src/main/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 3d78aebd..e5313d68 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 {

Reply via email to