Blame SOURCES/remove_waffle-jna.patch

fbd856
diff -up mariadb-connector-j-2.7.1/src/main/java/org/mariadb/jdbc/internal/com/send/authentication/gssapi/GssUtility.java.patch0 mariadb-connector-j-2.7.1/src/main/java/org/mariadb/jdbc/internal/com/send/authentication/gssapi/GssUtility.java
fbd856
--- mariadb-connector-j-2.7.1/src/main/java/org/mariadb/jdbc/internal/com/send/authentication/gssapi/GssUtility.java.patch0	2020-12-10 21:04:22.902932157 +0100
fbd856
+++ mariadb-connector-j-2.7.1/src/main/java/org/mariadb/jdbc/internal/com/send/authentication/gssapi/GssUtility.java	2020-12-10 21:06:46.303703168 +0100
fbd856
@@ -57,26 +57,11 @@ import com.sun.jna.Platform;
fbd856
 public class GssUtility {
fbd856
 
fbd856
   /**
fbd856
-   * Get authentication method according to classpath. Windows native authentication is using
fbd856
-   * Waffle-jna.
fbd856
+   * Get authentication method according to classpath.
fbd856
    *
fbd856
    * @return authentication method
fbd856
    */
fbd856
   public static GssapiAuth getAuthenticationMethod() {
fbd856
-    try {
fbd856
-      // Waffle-jna has jna as dependency, so if not available on classpath, just use standard
fbd856
-      // authentication
fbd856
-      if (Platform.isWindows()) {
fbd856
-        try {
fbd856
-          Class.forName("waffle.windows.auth.impl.WindowsAuthProviderImpl");
fbd856
-          return new WindowsNativeSspiAuthentication();
fbd856
-        } catch (ClassNotFoundException cle) {
fbd856
-          // waffle not in the classpath
fbd856
-        }
fbd856
-      }
fbd856
-    } catch (Throwable cle) {
fbd856
-      // jna jar's are not in classpath
fbd856
-    }
fbd856
     return new StandardGssapiAuthentication();
fbd856
   }
fbd856
 }