Skip to content
Snippets Groups Projects
Verified Commit c18a5675 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixes #89

parent 3c070eb1
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -30,7 +30,7 @@ class QuasselCertificateManager( ...@@ -30,7 +30,7 @@ class QuasselCertificateManager(
fun isServerTrusted(chain: Array<out X509Certificate>?): Boolean { fun isServerTrusted(chain: Array<out X509Certificate>?): Boolean {
// Verify input conditions // Verify input conditions
// If no certificate exists, this can’t be valid // If no certificate exists, this can’t be valid
val leafCertificate = chain?.lastOrNull() ?: return false val leafCertificate = chain?.firstOrNull() ?: return false
return isServerTrusted(leafCertificate) return isServerTrusted(leafCertificate)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment