src/share/classes/sun/security/jgss/wrapper/SunNativeProvider.java

Print this page
rev 6670 : 8010192: Enable native JGSS provider on Mac

@@ -88,10 +88,15 @@
                                 gssLibs = new String[]{
                                     "libgssapi.so",
                                     "libgssapi_krb5.so",
                                     "libgssapi_krb5.so.2",
                                 };
+                            } else if (osname.contains("OS X")) {
+                                gssLibs = new String[]{
+                                    "libgssapi_krb5.dylib",
+                                    "/usr/lib/sasl2/libgssapiv2.2.so",
+                               };
                             }
                         } else {
                             gssLibs = new String[]{ defaultLib };
                         }
                         for (String libName: gssLibs) {