Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
09679ff6
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
09679ff6
编写于
5月 07, 2013
作者:
W
weijun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8010192: Enable native JGSS provider on Mac
Reviewed-by: valeriep
上级
2e5d85af
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
24 addition
and
11 deletion
+24
-11
make/sun/security/Makefile
make/sun/security/Makefile
+2
-4
makefiles/CompileNativeLibraries.gmk
makefiles/CompileNativeLibraries.gmk
+0
-2
src/share/classes/sun/security/jgss/GSSManagerImpl.java
src/share/classes/sun/security/jgss/GSSManagerImpl.java
+1
-0
src/share/classes/sun/security/jgss/wrapper/SunNativeProvider.java
.../classes/sun/security/jgss/wrapper/SunNativeProvider.java
+5
-0
src/share/native/sun/security/jgss/wrapper/gssapi.h
src/share/native/sun/security/jgss/wrapper/gssapi.h
+15
-0
test/sun/security/krb5/runNameEquals.sh
test/sun/security/krb5/runNameEquals.sh
+1
-5
未找到文件。
make/sun/security/Makefile
浏览文件 @
09679ff6
...
...
@@ -38,12 +38,10 @@ SUBDIRS_MAKEFLAGS += JAVAC_MAX_WARNINGS=true
SUBDIRS_MAKEFLAGS
+=
JAVAC_WARNINGS_FATAL
=
true
include
$(BUILDDIR)/common/Defs.gmk
# build sun/security/jgss/wrapper on non-windows
non-macosx
platforms
# build sun/security/jgss/wrapper on non-windows platforms
JGSS_WRAPPER
=
ifneq
($(PLATFORM), windows)
ifneq
($(PLATFORM), macosx)
JGSS_WRAPPER
=
jgss/wrapper
endif
JGSS_WRAPPER
=
jgss/wrapper
endif
# Build PKCS#11 on all platforms
...
...
makefiles/CompileNativeLibraries.gmk
浏览文件 @
09679ff6
...
...
@@ -2545,7 +2545,6 @@ BUILD_LIBRARIES += $(BUILD_LIBJ2PCSC)
##########################################################################################
ifneq ($(OPENJDK_TARGET_OS), windows)
ifneq ($(OPENJDK_TARGET_OS), macosx)
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2GSS,\
LIBRARY:=j2gss,\
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
...
...
@@ -2565,7 +2564,6 @@ $(eval $(call SetupNativeCompilation,BUILD_LIBJ2GSS,\
BUILD_LIBRARIES += $(BUILD_LIBJ2GSS)
endif
endif
##########################################################################################
...
...
src/share/classes/sun/security/jgss/GSSManagerImpl.java
浏览文件 @
09679ff6
...
...
@@ -48,6 +48,7 @@ public class GSSManagerImpl extends GSSManager {
public
Boolean
run
()
{
String
osname
=
System
.
getProperty
(
"os.name"
);
if
(
osname
.
startsWith
(
"SunOS"
)
||
osname
.
contains
(
"OS X"
)
||
osname
.
startsWith
(
"Linux"
))
{
return
new
Boolean
(
System
.
getProperty
(
USE_NATIVE_PROP
));
...
...
src/share/classes/sun/security/jgss/wrapper/SunNativeProvider.java
浏览文件 @
09679ff6
...
...
@@ -90,6 +90,11 @@ public final class SunNativeProvider extends Provider {
"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
};
...
...
src/share/native/sun/security/jgss/wrapper/gssapi.h
浏览文件 @
09679ff6
...
...
@@ -32,10 +32,21 @@
#ifndef _GSSAPI_H_
#define _GSSAPI_H_
#if defined(__MACH__) && defined(__APPLE__)
# include <TargetConditionals.h>
# if TARGET_RT_MAC_CFM
# error "Use KfM 4.0 SDK headers for CFM compilation."
# endif
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
/* __cplusplus */
#if TARGET_OS_MAC
# pragma pack(push,2)
#endif
/*
* First, include stddef.h to get size_t defined.
*/
...
...
@@ -671,6 +682,10 @@ OM_uint32 gss_canonicalize_name(
gss_name_t
*
/* output_name */
);
#if TARGET_OS_MAC
# pragma pack(pop)
#endif
#ifdef __cplusplus
}
#endif
...
...
test/sun/security/krb5/runNameEquals.sh
浏览文件 @
09679ff6
...
...
@@ -52,15 +52,11 @@ NATIVE=false
# set platform-dependent variables
OS
=
`
uname
-s
`
case
"
$OS
"
in
SunOS
|
Linux
)
SunOS
|
Linux
|
Darwin
)
PATHSEP
=
":"
FILESEP
=
"/"
NATIVE
=
true
;;
Darwin
)
PATHSEP
=
":"
FILESEP
=
"/"
;;
CYGWIN
*
)
PATHSEP
=
";"
FILESEP
=
"/"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录