diff options
author | Arne Schwabe <arne@rfc2549.org> | 2023-06-01 11:31:03 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2023-06-01 11:32:07 +0200 |
commit | 720f8271c1a15b57ebd5b66091a462fa0daa56a4 (patch) | |
tree | 84ef26fb6d81b0d153ec6f814e46b2844069b12e /main/src/ui/java/de | |
parent | dab879351ce93c684890461359b80be45d7b49da (diff) |
Fix deprecations and other warnings reported by coverity
Diffstat (limited to 'main/src/ui/java/de')
-rw-r--r-- | main/src/ui/java/de/blinkt/openvpn/fragments/Utils.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/ui/java/de/blinkt/openvpn/fragments/Utils.kt b/main/src/ui/java/de/blinkt/openvpn/fragments/Utils.kt index 8db487e7..55056424 100644 --- a/main/src/ui/java/de/blinkt/openvpn/fragments/Utils.kt +++ b/main/src/ui/java/de/blinkt/openvpn/fragments/Utils.kt @@ -306,12 +306,12 @@ object Utils { if ("insecure".equals(vp.mTlSCertProfile)) warnings.add("low security (TLS security profile 'insecure' selected)"); - var cipher= vp.mCipher?.toUpperCase(Locale.ROOT) - if (cipher.isNullOrEmpty()) + var cipher= vp.mCipher.uppercase(Locale.ROOT) + if (cipher.isEmpty()) cipher = "BF-CBC"; for (weakCipher in weakCiphers) { - if ((vp.mDataCiphers != null && vp.mDataCiphers.toUpperCase(Locale.ROOT) + if ((vp.mDataCiphers != null && vp.mDataCiphers.uppercase(Locale.ROOT) .contains(weakCipher)) || (vp.mCompatMode in 1..20399 && (cipher == weakCipher)) ) |