Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
733e5e7a
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看板
提交
733e5e7a
编写于
4月 12, 2011
作者:
V
valeriep
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6986789: Sun pkcs11 provider fails to parse path name containing "+"
Summary: Modified to accept '+' as valid character. Reviewed-by: weijun
上级
7607e559
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
21 addition
and
12 deletion
+21
-12
src/share/classes/sun/security/pkcs11/Config.java
src/share/classes/sun/security/pkcs11/Config.java
+1
-0
test/sun/security/pkcs11/Provider/ConfigShortPath.java
test/sun/security/pkcs11/Provider/ConfigShortPath.java
+16
-12
test/sun/security/pkcs11/Provider/cspPlus.cfg
test/sun/security/pkcs11/Provider/cspPlus.cfg
+4
-0
未找到文件。
src/share/classes/sun/security/pkcs11/Config.java
浏览文件 @
733e5e7a
...
@@ -343,6 +343,7 @@ final class Config {
...
@@ -343,6 +343,7 @@ final class Config {
st
.
wordChars
(
'{'
,
'{'
);
// need {} for property subst
st
.
wordChars
(
'{'
,
'{'
);
// need {} for property subst
st
.
wordChars
(
'}'
,
'}'
);
st
.
wordChars
(
'}'
,
'}'
);
st
.
wordChars
(
'*'
,
'*'
);
st
.
wordChars
(
'*'
,
'*'
);
st
.
wordChars
(
'+'
,
'+'
);
st
.
wordChars
(
'~'
,
'~'
);
st
.
wordChars
(
'~'
,
'~'
);
// XXX check ASCII table and add all other characters except special
// XXX check ASCII table and add all other characters except special
...
...
test/sun/security/pkcs11/Provider/ConfigShortPath.java
浏览文件 @
733e5e7a
/*
/*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010,
2011,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -22,8 +22,8 @@
...
@@ -22,8 +22,8 @@
*/
*/
/**
/**
* @test
* @test
* @bug 6581254
* @bug 6581254
6986789
* @summary Allow
"~" in config to support windows short path
* @summary Allow
'~' and '+' in config file
* @author Valerie Peng
* @author Valerie Peng
*/
*/
...
@@ -32,17 +32,21 @@ import java.io.*;
...
@@ -32,17 +32,21 @@ import java.io.*;
public
class
ConfigShortPath
{
public
class
ConfigShortPath
{
private
static
final
String
[]
configNames
=
{
"csp.cfg"
,
"cspPlus.cfg"
};
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
String
testSrc
=
System
.
getProperty
(
"test.src"
,
"."
);
String
testSrc
=
System
.
getProperty
(
"test.src"
,
"."
);
String
configFile
=
testSrc
+
File
.
separator
+
"csp.cfg"
;
for
(
int
i
=
0
;
i
<
configNames
.
length
;
i
++)
{
System
.
out
.
println
(
"Testing against "
+
configFile
);
String
configFile
=
testSrc
+
File
.
separator
+
configNames
[
i
];
try
{
System
.
out
.
println
(
"Testing against "
+
configFile
);
Provider
p
=
new
sun
.
security
.
pkcs11
.
SunPKCS11
(
configFile
);
try
{
}
catch
(
ProviderException
pe
)
{
Provider
p
=
new
sun
.
security
.
pkcs11
.
SunPKCS11
(
configFile
);
String
cause
=
pe
.
getCause
().
getMessage
();
}
catch
(
ProviderException
pe
)
{
if
(
cause
.
indexOf
(
"Unexpected token"
)
!=
-
1
)
{
String
cause
=
pe
.
getCause
().
getMessage
();
// re-throw to indicate test failure
if
(
cause
.
indexOf
(
"Unexpected token"
)
!=
-
1
)
{
throw
pe
;
// re-throw to indicate test failure
throw
pe
;
}
}
}
}
}
}
}
...
...
test/sun/security/pkcs11/Provider/cspPlus.cfg
0 → 100644
浏览文件 @
733e5e7a
showInfo = false
name = NSS
nssSecmodDirectory = /export/local/38289.JDK7.PIT.JSN-TL+7-b112_pit_security_oel5.5-x64-32/results/ResultDir/KeytoolNSS/db
nssLibraryDirectory = /export/local/common/testbase/7/security/tools/lib/nss/Linux2.6
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录