Saturday, 15 August 2015

android - how can i remove TLS_EMPTY_RENEGOTIATION_INFO_SCSV (0x00ff) from the TSL 1.0 Cipher Suites List -



android - how can i remove TLS_EMPTY_RENEGOTIATION_INFO_SCSV (0x00ff) from the TSL 1.0 Cipher Suites List -

i want remove tls_empty_renegotiation_info_scsv tsl 1.0 cipher suites list code :

public class mysslsocketfactory extends sslsocketfactory { //..... @override public socket createsocket(socket socket, string host, int port, boolean autoclose) throws ioexception { sslsocket mysocket = (sslsocket)sslcontext.getsocketfactory().createsocket(socket, host, port, autoclose); string oriciphers[] = sock.getenabledciphersuites(); list<string> mycipherslist = new arraylist<string>(); (string string : oriciphers) { if (!string.contains("tls_empty_renegotiation_info_scsv")) { mycipherslist .add(string); } } sock.setenabledciphersuites(mycipherslist.toarray(new string[mycipherslist.size()])); homecoming mysocket; } /// }

but doesn't work~ how can remove tls_empty_renegotiation_info_scsv (0x00ff) tsl 1.0 cipher suites list.thanks!

android ssl

No comments:

Post a Comment