OSDN Git Service

Skip hostname verification when using insecure factory
authorAndrew Stadler <stadler@android.com>
Mon, 12 Jul 2010 22:31:40 +0000 (15:31 -0700)
committerAndrew Stadler <stadler@android.com>
Mon, 12 Jul 2010 22:31:40 +0000 (15:31 -0700)
commitdf27c0c26209fe04de332497beafcafc1fbaad2b
treea60a0e4c7fe440f543f5d3924f56d57d817dc0a4
parentef13d028217ac9766735f627dedc4fc7f48a6f1f
Skip hostname verification when using insecure factory

If the factory was obtained by calling getInsecure(), calls to
createSocket() should skip hostname verification (along with all of the
other skipped safety checks.)

This change slightly relaxes the too-strict checking that was introduced
in change 7fc93c36ae235115727296780dbc35101622bbd4.

Bug: 2834174
Change-Id: Iab7ef861ad0ca727f82ee8cdb78b89b9e835740d
core/java/android/net/SSLCertificateSocketFactory.java