From 166a5076b132cef85986ca675f5309730b78187b Mon Sep 17 00:00:00 2001 From: Philipp Heckel Date: Fri, 9 Jan 2026 20:20:03 -0500 Subject: [PATCH] Manual fixes --- app/src/main/java/io/heckel/ntfy/util/CertUtil.kt | 5 ++--- app/src/main/res/values-hu/strings.xml | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/heckel/ntfy/util/CertUtil.kt b/app/src/main/java/io/heckel/ntfy/util/CertUtil.kt index 8cbd93d9..08daa1d8 100644 --- a/app/src/main/java/io/heckel/ntfy/util/CertUtil.kt +++ b/app/src/main/java/io/heckel/ntfy/util/CertUtil.kt @@ -46,7 +46,7 @@ class CertUtil private constructor(context: Context) { val clientCertKeyManagers = clientCert?.let { clientCertKeyManagers(it) } // Determine which trust manager to use: - // - If there is a en exception and a pinned cert, use it + // - If there is a pinned cert (manually added cert exception), use it // - Otherwise, use system trust val trustManager: X509TrustManager = if (pinnedCert != null) { try { @@ -59,8 +59,7 @@ class CertUtil private constructor(context: Context) { systemTrustManager() } - // Bypass hostname verification for pinned certificates. We specifically added this certificate - // for a base URL and trusted the exception, so the CN does not have to match the hostname. + // We selected the pinned certificate by hostname, so we can bypass hostname verification. // We do, however, still verify the certificate validity and ensure that the fingerprint matches. if (pinnedCert != null) { builder.hostnameVerifier(trustAllHostnameVerifier()) diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index 0bb42753..f31954ce 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -95,6 +95,7 @@ Vágólapra másolva Azonnali küldés bekapcsolva Azonnali küldés kikapcsolva + Mentés Fájl megnyitása Fájl törlése URL másolása