Skip to content

Commit

Permalink
Merge pull request #8704 from garymathews/TIMOB-24246
Browse files Browse the repository at this point in the history
[TIMOB-24246] Android: Init SSLContext with SecureRandom
  • Loading branch information
Frankie committed Jan 4, 2017
2 parents 978ded7 + 99d9feb commit fb3a85b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import java.security.KeyManagementException;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.security.UnrecoverableKeyException;
import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -71,7 +72,7 @@ public TiSocketFactory(KeyManager[] keyManagers, TrustManager[] trustManagers, i
}

sslContext = SSLContext.getInstance(tlsVersion);
sslContext.init(keyManagers, trustManagers, null);
sslContext.init(keyManagers, trustManagers, new SecureRandom());

}

Expand Down

0 comments on commit fb3a85b

Please sign in to comment.