Commit e541cdd2 authored by Adam Vartanian's avatar Adam Vartanian
Browse files

Small updates to OkHttp-Conscrypt interaction

If SNIHostName throws IllegalArgumentException on a hostname, just
ignore it.  Invalid hostnames should just result in no SNI extension.

Add getApplicationProtocol() to DelegatingSSLSocket.  Without it, the
delegating socket used in some tests will report no application
protocol being selected despite one being negotiated, which means the
test will misparse the response since it thinks a different protocol
is being used.

Test: cts -m CtsLibcoreOkHttpTestCases
Bug: 129241395
Bug: 129278464
Change-Id: I750173d8b4a744ac11c0b50f67613fb3a4be3235
parent daf92ccb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment