Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
LinuxSuRen
Dragonwell11
提交
e971fae4
D
Dragonwell11
项目概览
LinuxSuRen
/
Dragonwell11
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Dragonwell11
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
e971fae4
编写于
5月 21, 2019
作者:
W
weijun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8224025: Fix for JDK-8220302 is not complete
Reviewed-by: ahgross, mullan, valeriep
上级
e120eb4c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
44 addition
and
0 deletion
+44
-0
src/java.security.jgss/macosx/native/libosxkrb5/nativeccache.c
...ava.security.jgss/macosx/native/libosxkrb5/nativeccache.c
+44
-0
未找到文件。
src/java.security.jgss/macosx/native/libosxkrb5/nativeccache.c
浏览文件 @
e971fae4
...
...
@@ -261,6 +261,7 @@ JNIEXPORT jobject JNICALL Java_sun_security_krb5_Credentials_acquireDefaultNativ
int
netypes
;
jint
*
etypes
=
NULL
;
int
proxy_flag
=
0
;
/* Initialize the Kerberos 5 context */
err
=
krb5_init_context
(
&
kcontext
);
...
...
@@ -273,6 +274,48 @@ JNIEXPORT jobject JNICALL Java_sun_security_krb5_Credentials_acquireDefaultNativ
err
=
krb5_cc_set_flags
(
kcontext
,
ccache
,
flags
);
/* turn off OPENCLOSE */
}
// First round read. The proxy_impersonator config flag is not supported.
// This ccache will not be used if this flag exists.
if
(
!
err
)
{
err
=
krb5_cc_start_seq_get
(
kcontext
,
ccache
,
&
cursor
);
}
if
(
!
err
)
{
while
((
err
=
krb5_cc_next_cred
(
kcontext
,
ccache
,
&
cursor
,
&
creds
))
==
0
)
{
char
*
serverName
=
NULL
;
if
(
!
err
)
{
err
=
krb5_unparse_name
(
kcontext
,
creds
.
server
,
&
serverName
);
printiferr
(
err
,
"while unparsing server name"
);
}
if
(
!
err
)
{
if
(
!
strcmp
(
serverName
,
"krb5_ccache_conf_data/proxy_impersonator@X-CACHECONF:"
))
{
proxy_flag
=
1
;
}
}
if
(
serverName
!=
NULL
)
{
krb5_free_unparsed_name
(
kcontext
,
serverName
);
}
krb5_free_cred_contents
(
kcontext
,
&
creds
);
if
(
proxy_flag
)
break
;
}
if
(
err
==
KRB5_CC_END
)
{
err
=
0
;
}
printiferr
(
err
,
"while retrieving a ticket"
);
}
if
(
!
err
)
{
err
=
krb5_cc_end_seq_get
(
kcontext
,
ccache
,
&
cursor
);
printiferr
(
err
,
"while finishing ticket retrieval"
);
}
if
(
proxy_flag
)
{
goto
outer_cleanup
;
}
// End of first round read
if
(
!
err
)
{
err
=
krb5_cc_start_seq_get
(
kcontext
,
ccache
,
&
cursor
);
}
...
...
@@ -400,6 +443,7 @@ cleanup:
printiferr
(
err
,
"while finishing ticket retrieval"
);
}
outer_cleanup:
if
(
!
err
)
{
flags
=
KRB5_TC_OPENCLOSE
;
/* restore OPENCLOSE mode */
err
=
krb5_cc_set_flags
(
kcontext
,
ccache
,
flags
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录