Skip to content

Commit

Permalink
Merge pull request #913 from louisroyer/tls1-3
Browse files Browse the repository at this point in the history
Enable TLSv1.3
  • Loading branch information
zhwanng authored Apr 11, 2023
2 parents 49ed5ae + 7301477 commit a8ab658
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 a8ab658

Please sign in to comment.