summaryrefslogtreecommitdiff
path: root/src/se/leap/leapclient/LeapHttpClient.java
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-07-29 18:33:55 +0200
committerParménides GV <parmegv@sdf.org>2013-07-29 18:33:55 +0200
commit381956b28a5b015767b884cff099e0956ef38d96 (patch)
tree33f0d83c1e104f2b0c6bc915e57208314d5f8cb8 /src/se/leap/leapclient/LeapHttpClient.java
parenta1a03615cb9c4f978142b234f028e718eb91a103 (diff)
LeapHttpClient verifies hostname.
This fixes #3287
Diffstat (limited to 'src/se/leap/leapclient/LeapHttpClient.java')
-rw-r--r--src/se/leap/leapclient/LeapHttpClient.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/se/leap/leapclient/LeapHttpClient.java b/src/se/leap/leapclient/LeapHttpClient.java
index 686d3cc0..d28476c3 100644
--- a/src/se/leap/leapclient/LeapHttpClient.java
+++ b/src/se/leap/leapclient/LeapHttpClient.java
@@ -65,15 +65,12 @@ public class LeapHttpClient extends DefaultHttpClient {
/**
* Uses keystore from ConfigHelper for the SSLSocketFactory.
- *
- * Sets hostname verifier to allow all hostname verifier.
* @return
*/
private SSLSocketFactory newSslSocketFactory() {
try {
KeyStore trusted = ConfigHelper.getKeystore();
SSLSocketFactory sf = new SSLSocketFactory(trusted);
- sf.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
return sf;
} catch (Exception e) {