getAllProtocols, getSupportedProtocols to get built in protocols
parent
140f2eb78d
commit
7fc87f550f
|
@ -175,9 +175,6 @@ public class WolfSSLEngineHelper {
|
||||||
|
|
||||||
/* gets all supported protocols */
|
/* gets all supported protocols */
|
||||||
protected String[] getAllProtocols() {
|
protected String[] getAllProtocols() {
|
||||||
if(ssl != null)
|
|
||||||
return WolfSSL.getProtocolsMask(ssl.getOptions());
|
|
||||||
else
|
|
||||||
return WolfSSL.getProtocols();
|
return WolfSSL.getProtocols();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,7 @@ public class WolfSSLServerSocket extends SSLServerSocket {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String[] getSupportedProtocols() {
|
public String[] getSupportedProtocols() {
|
||||||
return WolfSSL.getProtocols();
|
return params.getProtocols();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -160,10 +160,6 @@ public class WolfSSLServerSocket extends SSLServerSocket {
|
||||||
|
|
||||||
/* sanitize protocol array for unsupported strings */
|
/* sanitize protocol array for unsupported strings */
|
||||||
List<String> supported;
|
List<String> supported;
|
||||||
if(context != null)
|
|
||||||
supported = Arrays.asList(
|
|
||||||
WolfSSL.getProtocolsMask(context.getOptions()));
|
|
||||||
else
|
|
||||||
supported = Arrays.asList(WolfSSL.getProtocols());
|
supported = Arrays.asList(WolfSSL.getProtocols());
|
||||||
|
|
||||||
for (int i = 0; i < protocols.length; i++) {
|
for (int i = 0; i < protocols.length; i++) {
|
||||||
|
|
Loading…
Reference in New Issue