We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 573c063 commit b05b980Copy full SHA for b05b980
app/src/main/java/tech/httptoolkit/android/ProxySetup.kt
@@ -179,8 +179,9 @@ fun whereIsCertTrusted(proxyConfig: ProxyConfig): String? {
179
val aliases = keyStore.aliases()
180
181
val proxyCertAliases = aliases.toList().filter { alias ->
182
- val storedCertData = keyStore.getCertificate(alias).encoded
183
- return@filter storedCertData != null && storedCertData.contentEquals(proxyCertData)
+ val storedCert = keyStore.getCertificate(alias)
+ val certData = storedCert?.encoded
184
+ return@filter certData != null && certData.contentEquals(proxyCertData)
185
}
186
187
Log.i(TAG, "Proxy cert aliases: $proxyCertAliases")
0 commit comments