Skip to content

Commit

Permalink
8333317: Test sun/security/pkcs11/sslecc/ClientJSSEServerJSSE.java fa…
Browse files Browse the repository at this point in the history
…iled with: Invalid ECDH ServerKeyExchange signature

Backport-of: c6f0a35
  • Loading branch information
Ramesh Bhagavatam Gangadhar authored and coffeys committed Oct 10, 2024
1 parent e2f4c7a commit 5de6c65
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/jdk/ProblemList.txt
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ com/sun/security/sasl/gsskerb/NoSecurityLayer.java 8039280 generic-
sun/security/provider/PolicyFile/GrantAllPermToExtWhenNoPolicy.java 8039280 generic-all
sun/security/provider/PolicyParser/PrincipalExpansionError.java 8039280 generic-all

sun/security/pkcs11/sslecc/ClientJSSEServerJSSE.java 8316183,8333317 generic-all
sun/security/pkcs11/sslecc/ClientJSSEServerJSSE.java 8316183 linux-ppc64le

############################################################################

Expand Down
2 changes: 1 addition & 1 deletion test/jdk/sun/security/pkcs11/PKCS11Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public abstract class PKCS11Test {

// Version of the NSS artifact. This coincides with the version of
// the NSS version
private static final String NSS_BUNDLE_VERSION = "3.96";
private static final String NSS_BUNDLE_VERSION = "3.101";
private static final String NSSLIB = "jpg.tests.jdk.nsslib";

static double nss_version = -1;
Expand Down
10 changes: 7 additions & 3 deletions test/jdk/sun/security/pkcs11/Signature/TestDSAKeyLength.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2024, 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
Expand Down Expand Up @@ -48,8 +48,12 @@ public static void main(String[] args) throws Exception {

@Override
protected boolean skipTest(Provider provider) {
if (isNSS(provider) && (getNSSVersion() == 0.0 || getNSSVersion() >= 3.14)) {
System.out.println("Skip testing NSS " + getNSSVersion());
double version = getNSSVersion();
String[] versionStrs = Double.toString(version).split("\\.");
int major = Integer.parseInt(versionStrs[0]);
int minor = Integer.parseInt(versionStrs[1]);
if (isNSS(provider) && (version == 0.0 || (major >= 3 && minor >= 14))) {
System.out.println("Skip testing NSS " + version);
return true;
}

Expand Down

1 comment on commit 5de6c65

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.