keep homemade head units without a certificate working, and read wheel buttons and the knob as main does

This commit is contained in:
Seb3thehacker committed 2026-10-21 12:30:38 -07:00
1 parent c7077f2a57
commit ac8488200d
3 files changed
+10 -10

No files matched your search

@@ -44,11 +44,11 @@ class CryptoTest {
}
@Test
fun `TLS rejects a head unit that does not present a client certificate`() {
fun `TLS still connects a head unit that presents no certificate, as homemade ones may`() {
val generated = SelfSignedCert.generate()
val identity = CertProvider.Identity(generated.keyStore, generated.certificate,
SelfSignedCert.PASSWORD, "test")
assertFalse(TlsSelfTest.run(identity, withClientCertificate = false))
assertTrue(TlsSelfTest.run(identity, withClientCertificate = false))
}
@Test