Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37809995
en ru br
Репозитории ALT
S:3.0.7-alt1_1jpp11
www.altlinux.org/Changes

Группа :: Разработка/Java
Пакет: mariadb-java-client

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: remove_waffle-jna.patch
Скачать


Date: Thu, 6 May 2021 08:28:06 +0200
Subject: [PATCH] remove waffle-jna
---
 .../authentication/addon/gssapi/GssUtility.java | 17 +----------------
 1 file changed, 1 insertion(+), 16 deletions(-)
diff --git a/src/main/java/org/mariadb/jdbc/plugin/authentication/addon/gssapi/GssUtility.java b/src/main/java/org/mariadb/jdbc/plugin/authentication/addon/gssapi/GssUtility.java
index 5f050df..1801701 100644
--- a/src/main/java/org/mariadb/jdbc/plugin/authentication/addon/gssapi/GssUtility.java
+++ b/src/main/java/org/mariadb/jdbc/plugin/authentication/addon/gssapi/GssUtility.java
@@ -9,26 +9,11 @@ import com.sun.jna.Platform;
 public class GssUtility {
 
   /**
-   * Get authentication method according to classpath. Windows native authentication is using
-   * Waffle-jna.
+   * Get authentication method according to classpath
    *
    * @return authentication method
    */
   public static GssapiAuth getAuthenticationMethod() {
-    try {
-      // Waffle-jna has jna as dependency, so if not available on classpath, just use standard
-      // authentication
-      if (Platform.isWindows()) {
-        try {
-          Class.forName("waffle.windows.auth.impl.WindowsAuthProviderImpl");
-          return new WindowsNativeSspiAuthentication();
-        } catch (ClassNotFoundException cle) {
-          // waffle not in the classpath
-        }
-      }
-    } catch (Throwable cle) {
-      // jna jar's are not in classpath
-    }
     return new StandardGssapiAuthentication();
   }
 }
-- 
2.30.2
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin