auto populate enabled ciphersuites with supported ones
parent
65916238ca
commit
b033996821
|
@ -102,6 +102,9 @@ public class WolfSSLContext extends SSLContextSpi {
|
|||
} catch (Exception e) {
|
||||
throw new IllegalArgumentException(e);
|
||||
}
|
||||
|
||||
/* auto-populate enabled ciphersuites with supported ones */
|
||||
params.setCipherSuites(WolfSSL.getCiphersIana());
|
||||
}
|
||||
|
||||
private void LoadTrustedRootCerts() {
|
||||
|
|
|
@ -167,7 +167,7 @@ public class WolfSSLServerSocketTest {
|
|||
s.close();
|
||||
|
||||
/* should be null since we haven't set them */
|
||||
if (cipherSuites != null) {
|
||||
if (cipherSuites == null) {
|
||||
System.out.println("\t... failed");
|
||||
fail("SSLServerSocket.getEnabledCipherSuites() failed");
|
||||
}
|
||||
|
|
|
@ -196,7 +196,7 @@ public class WolfSSLSocketTest {
|
|||
SSLSocket s = socks.get(i);
|
||||
String[] cipherSuites = s.getEnabledCipherSuites();
|
||||
|
||||
if (cipherSuites != null) {
|
||||
if (cipherSuites == null) {
|
||||
System.out.println("\t... failed");
|
||||
fail("SSLSocket.getEnabledCipherSuites() failed");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue