update ssl for internal updater

This commit is contained in:
12aw 2024-03-10 18:56:08 +01:00
parent 87926a020a
commit 2508c00e92
2 changed files with 2 additions and 2 deletions
src/main/java/eu/siacs/conversations

View file

@ -57,7 +57,7 @@ public class UpdateService extends AsyncTask<String, Object, UpdateService.Wrapp
SSLContext sslcontext = null;
SSLSocketFactory NoSSLv3Factory = null;
try {
sslcontext = SSLContext.getInstance("TLSv1");
sslcontext = SSLContext.getInstance("TLSv1.2");
if (sslcontext != null) {
sslcontext.init(null, null, null);
NoSSLv3Factory = new NoSSLv3SocketFactory(sslcontext.getSocketFactory());

View file

@ -336,7 +336,7 @@ public class UpdaterActivity extends XmppActivity {
SSLContext sslcontext = null;
SSLSocketFactory NoSSLv3Factory = null;
try {
sslcontext = SSLContext.getInstance("TLSv1");
sslcontext = SSLContext.getInstance("TLSv1.2");
if (sslcontext != null) {
sslcontext.init(null, null, null);
NoSSLv3Factory = new NoSSLv3SocketFactory(sslcontext.getSocketFactory());