summaryrefslogtreecommitdiffstats
path: root/tools/aapt2/ResourceTable.cpp
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2015-05-12 15:13:50 -0700
committerKenny Root <kroot@google.com>2015-05-13 11:58:31 -0700
commit423a47bb025e8e15c9c25c4500315f8013637097 (patch)
tree77de61c9312f70ed9982f6c9022382019fc102b5 /tools/aapt2/ResourceTable.cpp
parentb9599750235985e92ed393bbbd0f59e31ec25b01 (diff)
downloadframeworks_base-423a47bb025e8e15c9c25c4500315f8013637097.zip
frameworks_base-423a47bb025e8e15c9c25c4500315f8013637097.tar.gz
frameworks_base-423a47bb025e8e15c9c25c4500315f8013637097.tar.bz2
Start handshake before calling hostname verifier
If the hostname verifier calls SSLSocket#getSession() before the handshake has been started, it will implicitly start the handshake. However, it will swallow any errors and return the canonical invalid SSLSession instead. This makes it extremely difficult to debug issues. Instead start the handshake before calling into the verifier since we are guaranteed to be the first caller of #startHandshake() and won't cause a renegotiation. That will allow us to see the actual SSLHandshakeException if it occurs. (cherry picked from commit 317c0a4959df0361431d5fbf7dacc162bfb48cd2 in external/apache-http) Bug: 14975169 Bug: 17332309 Bug: 17524215 Bug: 17812533 Bug: 18507278 Bug: 19069992 Bug: 19378885 Bug: 19414083 Bug: 19550311 Bug: 19731556 Bug: 19853723 Bug: 20908941 Bug: 21118659 Change-Id: Ie74ec12c8b131c7bf400a07fc91c78da4d5e470f
Diffstat (limited to 'tools/aapt2/ResourceTable.cpp')
0 files changed, 0 insertions, 0 deletions