auto populate enabled ciphersuites with supported ones

pull/23/head
Chris Conlon 2019-03-27 10:42:45 -07:00
parent 65916238ca
commit b033996821
3 changed files with 6 additions and 3 deletions

View File

@ -101,7 +101,10 @@ 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() {

View File

@ -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");
}

View File

@ -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");
}