Skip to content

Commit

Permalink
updage
Browse files Browse the repository at this point in the history
  • Loading branch information
taoliult committed Apr 15, 2024
1 parent 4069371 commit c40bb09
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions test/jdk/sun/security/pkcs11/fips/TestTLS12.java
Original file line number Diff line number Diff line change
Expand Up @@ -375,17 +375,21 @@ private static void runDelegatedTasks(SSLEngineResult result,
}

private static SSLEngine[][] getSSLEnginesToTest() throws Exception {
SSLEngine[][] enginesToTest = new SSLEngine[2][2];
SSLEngine[][] enginesToTest = new SSLEngine[1][2];
// TLS_RSA_WITH_AES_128_GCM_SHA256 ciphersuite is available but
// must not be chosen for the TLS connection if not supported.
// See JDK-8222937.
String[][] preferredSuites = new String[][]{ new String[] {
"TLS_RSA_WITH_AES_128_GCM_SHA256",
"TLS_RSA_WITH_AES_128_CBC_SHA256"
}, new String[] {
"TLS_RSA_WITH_AES_128_GCM_SHA256",
"TLS_DHE_RSA_WITH_AES_128_CBC_SHA256"
}};
// String[][] preferredSuites = new String[][]{ new String[] {
// "TLS_RSA_WITH_AES_128_GCM_SHA256",
// "TLS_RSA_WITH_AES_128_CBC_SHA256"
// }, new String[] {
// "TLS_RSA_WITH_AES_128_GCM_SHA256",
// "TLS_DHE_RSA_WITH_AES_128_CBC_SHA256"
// }};
String[][] preferredSuites = new String[][] { new String[] {
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
} };
for (int i = 0; i < enginesToTest.length; i++) {
enginesToTest[i][0] = createSSLEngine(true);
enginesToTest[i][1] = createSSLEngine(false);
Expand Down

0 comments on commit c40bb09

Please sign in to comment.