1
0
mirror of https://github.com/square/okhttp.git synced 2025-08-08 23:42:08 +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("secureConnectStart")
.assertLogMatch("secureConnectEnd: Handshake\\{" .assertLogMatch("secureConnectEnd: Handshake\\{"
+ "tlsVersion=TLS_1_[23] " + "tlsVersion=TLS_1_[23] "
+ "cipherSuite=(?:TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384|TLS_AES_128_GCM_SHA256) " + "cipherSuite=TLS_.* "
+ "peerCertificates=\\[CN=localhost\\] " + "peerCertificates=\\[CN=localhost\\] "
+ "localCertificates=\\[\\]}") + "localCertificates=\\[\\]}")
.assertLogMatch("connectEnd: h2") .assertLogMatch("connectEnd: h2")