1
0
mirror of https://github.com/square/okhttp.git synced 2025-08-01 16:06:56 +03:00

More flexible cipherSuite matching #4685

* Match any cipher suites starting with TLS_
This commit is contained in:
Galder Zamarreño
2019-03-06 07:37:16 +01:00
parent 8c37096896
commit ee011b71cf

View File

@ -147,7 +147,7 @@ public final class LoggingEventListenerTest {
.assertLogMatch("secureConnectStart")
.assertLogMatch("secureConnectEnd: Handshake\\{"
+ "tlsVersion=TLS_1_[23] "
+ "cipherSuite=(?:TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384|TLS_AES_128_GCM_SHA256) "
+ "cipherSuite=TLS_.* "
+ "peerCertificates=\\[CN=localhost\\] "
+ "localCertificates=\\[\\]}")
.assertLogMatch("connectEnd: h2")