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:
Seb3thehacker committed 2026-11-02 16:52:58 -08:00
1 parent 3e2e410115
commit a1dc9a6519
1 file changed
+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")