提交 dbabfb7f 编写于 作者: V valeriep

8029158: sun/security/pkcs11/Signature/TestDSAKeyLength.java does not compile (or run)

Summary: Add the missing library path and skip testing against NSS 1.14 or later due to known NSS issue
Reviewed-by: vinnie, ascarpino
上级 56657ba2
......@@ -22,10 +22,10 @@
*/
/*
* @test
* @bug 7200306
* @run main/othervm/timeout=250 TestDSAKeyLength
* @bug 7200306 8029158
* @summary verify that P11Signature impl will error out when initialized
* with unsupported key sizes
* @library ..
*/
......@@ -40,6 +40,11 @@ public class TestDSAKeyLength extends PKCS11Test {
}
public void main(Provider provider) throws Exception {
if (isNSS(provider) && getNSSVersion() >= 3.14) {
System.out.println("Skip testing NSS " + getNSSVersion());
return;
}
KeyPairGenerator kpg = KeyPairGenerator.getInstance("DSA", "SUN");
kpg.initialize(2048, new SecureRandom());
KeyPair pair = kpg.generateKeyPair();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册