mariadb-java-client/remove_waffle-jna.patch

33 lines
1.3 KiB
Diff
Raw Normal View History

2019-01-29 10:45:15 +00:00
diff --git a/src/main/java/org/mariadb/jdbc/internal/com/send/authentication/gssapi/GssUtility.java b/src/main/java/org/mariadb/jdbc/internal/com/send/authentication/gssapi/GssUtility.java
index 15c61c85..7276e91e 100644
--- a/src/main/java/org/mariadb/jdbc/internal/com/send/authentication/gssapi/GssUtility.java
+++ b/src/main/java/org/mariadb/jdbc/internal/com/send/authentication/gssapi/GssUtility.java
@@ -5,25 +5,12 @@ 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.
+ *
*
2018-11-26 11:08:01 +00:00
* @return authentication method
*/
2019-01-29 10:45:15 +00:00
public static GssapiAuth getAuthenticationMethod() {
2018-11-26 11:08:01 +00:00
- try {
- //Waffle-jna has jna as dependency, so if not available on classpath, just use standard authentication
- if (Platform.isWindows()) {
2016-09-14 10:49:59 +00:00
- try {
2018-11-26 11:08:01 +00:00
- Class.forName("waffle.windows.auth.impl.WindowsAuthProviderImpl");
2019-01-29 10:45:15 +00:00
- return new WindowsNativeSspiAuthentication();
2018-11-26 11:08:01 +00:00
- } catch (ClassNotFoundException cle) {
- //waffle not in the classpath
2016-09-14 10:49:59 +00:00
- }
2018-11-26 11:08:01 +00:00
- }
- } catch (Throwable cle) {
- //jna jar's are not in classpath
2016-09-14 10:49:59 +00:00
- }
2019-01-29 10:45:15 +00:00
return new StandardGssapiAuthentication();
2018-11-26 11:08:01 +00:00
}
2017-11-22 11:15:50 +00:00