mirror of
https://github.com/etesync/android
synced 2024-11-15 20:38:58 +00:00
Add TLS cipher info to tests (see #344)
This commit is contained in:
parent
1ec1db3045
commit
b8a728bdb9
@ -0,0 +1,27 @@
|
||||
package at.bitfire.davdroid.webdav;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.net.ssl.SSLSocket;
|
||||
|
||||
import android.util.Log;
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class TlsSniSocketFactoryTest extends TestCase {
|
||||
private static final String TAG = "davdroid.TlsSniSocketFactoryTest";
|
||||
|
||||
public void testCiphers() throws IOException {
|
||||
SSLSocket socket = (SSLSocket)TlsSniSocketFactory.INSTANCE.createSocket(null);
|
||||
|
||||
Log.i(TAG, "Enabled:");
|
||||
for (String cipher : socket.getEnabledCipherSuites())
|
||||
Log.i(TAG, cipher);
|
||||
|
||||
Log.i(TAG, "Supported:");
|
||||
for (String cipher : socket.getSupportedCipherSuites())
|
||||
Log.i(TAG, cipher);
|
||||
|
||||
assert(true);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user