mirror of
https://github.com/twinksoftware/Gearslip.git
synced 2026-11-10 16:02:25 +01:00
TlsSelfTest moves to the tests, where its trust-anything peer belongs
Only the unit tests ran it, but it shipped in the APK and code scanning flagged its trust manager.
This commit is contained in:
1 parent
3e2e410115
commit
a1dc9a6519
1 file changed
+4
-1
+4
-1
@@ -11,7 +11,10 @@ import javax.net.ssl.SSLEngineResult
|
||||
import javax.net.ssl.SSLEngineResult.HandshakeStatus
|
||||
import javax.net.ssl.X509ExtendedTrustManager
|
||||
|
||||
/** Checks mutual TLS and an encrypted data round trip with an in-process head-unit peer. */
|
||||
/**
|
||||
* Checks mutual TLS and an encrypted data round trip with an in-process head-unit peer. Test code
|
||||
* only: the peer trusts any certificate, which is the point here and must never ship in the app.
|
||||
*/
|
||||
object TlsSelfTest {
|
||||
private val log = GearslipLog.tagged("TLS")
|
||||
|
||||
Reference in new issue
Block a user