mirror of
https://github.com/twinksoftware/Gearslip.git
synced 2026-11-10 16:02:25 +01:00
keep homemade head units without a certificate working, and read wheel buttons and the knob as main does
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user