don't disable any ciphers

This commit is contained in:
iNPUTmice 2015-02-02 14:22:49 +01:00
parent 206fd3fc4b
commit bd3fccd2dc
1 changed files with 4 additions and 3 deletions

View File

@ -98,8 +98,9 @@ public final class CryptoHelper {
}
public static String[] getSupportedCipherSuites(final String[] platformSupportedCipherSuites) {
final Collection<String> cipherSuites = new LinkedHashSet<>(Arrays.asList(Config.ENABLED_CIPHERS));
cipherSuites.retainAll(Arrays.asList(platformSupportedCipherSuites));
return cipherSuites.toArray(new String[cipherSuites.size()]);
//final Collection<String> cipherSuites = new LinkedHashSet<>(Arrays.asList(Config.ENABLED_CIPHERS));
//cipherSuites.retainAll(Arrays.asList(platformSupportedCipherSuites));
//return cipherSuites.toArray(new String[cipherSuites.size()]);
return platformSupportedCipherSuites;
}
}