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