diff options
author | cyBerta <cyberta@riseup.net> | 2024-11-15 13:00:34 +0100 |
---|---|---|
committer | cyberta <cyberta@riseup.net> | 2024-12-11 00:09:34 +0000 |
commit | aa780e9698e0aa564ff925d4d17a59e6db67ec6b (patch) | |
tree | ca846f84306e1e7b9be81b0dd48eacaddb596094 | |
parent | c62e338821f3772948cf1550a39157197b368cf6 (diff) |
revert removal of certificate check in Provider setup v3
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerV3.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerV3.java b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerV3.java index 9f5d4853..b2c1aa10 100644 --- a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerV3.java +++ b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerV3.java @@ -244,6 +244,18 @@ public class ProviderApiManagerV3 extends ProviderApiManagerBase implements IPro return currentDownload; } + currentDownload = validateProviderDetails(provider); + //provider certificate invalid + if (currentDownload.containsKey(ERRORS)) { + currentDownload.putParcelable(PROVIDER_KEY, provider); + return currentDownload; + } + + //no provider json or certificate available + if (currentDownload.containsKey(BROADCAST_RESULT_KEY) && !currentDownload.getBoolean(BROADCAST_RESULT_KEY)) { + resetProviderDetails(provider); + } + if (!provider.hasDefinition()) { currentDownload = getAndSetProviderJson(provider); } |