8200468: Port the native GSS-API bridge to Windows

Reviewed-by: ihse, valeriep
This commit is contained in:
Weijun Wang 2018-04-13 15:29:33 +08:00
parent 468c1c19bb
commit 0b6fbf50d2
10 changed files with 184 additions and 160 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -46,14 +46,8 @@ public class GSSManagerImpl extends GSSManager {
USE_NATIVE =
AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
public Boolean run() {
String osname = System.getProperty("os.name");
if (osname.startsWith("SunOS") ||
osname.contains("OS X") ||
osname.startsWith("Linux")) {
return Boolean.valueOf(System.getProperty
(USE_NATIVE_PROP));
}
return Boolean.FALSE;
return Boolean.valueOf(System.getProperty
(USE_NATIVE_PROP));
}
});