Skip to content

Commit

Permalink
Enable TLSv1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
louisroyer committed Apr 6, 2022
1 parent a503d6d commit 7301477
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ public Socket createSocket(String host, int port) throws IOException {

protected String[] getProtocolList() {
// don't offer SSLv2 or SSLv3
if (Build.VERSION.SDK_INT >= 16) {
if (Build.VERSION.SDK_INT >= 29) {
return new String[]{ "TLSv1", "TLSv1.1", "TLSv1.2", "TLSv1.3" };
} else if (Build.VERSION.SDK_INT >= 16) {
return new String[]{ "TLSv1", "TLSv1.1", "TLSv1.2" };
} else {
return new String[]{ "TLSv1" };
Expand Down

0 comments on commit 7301477

Please sign in to comment.