mariadb-java-client/remove_waffle-jna.patch

25 lines
1.1 KiB
Diff
Raw Normal View History

2018-11-26 11:08:01 +00:00
diff --git a/src/main/java/org/mariadb/jdbc/internal/com/send/gssapi/GssUtility.java b/src/main/java/org/mariadb/jdbc/internal/com/send/gssapi/GssUtility.java
index fbfd4cb5..1d54c2bd 100644
--- a/src/main/java/org/mariadb/jdbc/internal/com/send/gssapi/GssUtility.java
+++ b/src/main/java/org/mariadb/jdbc/internal/com/send/gssapi/GssUtility.java
@@ -13,19 +13,6 @@ public class GssUtility {
* @return authentication method
*/
public static BiFunction<PacketInputStream, Integer, GssapiAuth> getAuthenticationMethod() {
- 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");
- return (reader, packSeq) -> new WindowsNativeSspiAuthentication(reader, packSeq);
- } 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
- }
2018-11-26 11:08:01 +00:00
return (reader, packSeq) -> new StandardGssapiAuthentication(reader, packSeq);
}
2017-11-22 11:15:50 +00:00