koush/AndroidAsync — pull request #34 by anupcowkur (2013-07-04 11:02:05+00:00)
Title: Added public method to set your own SSL hostname verifier.

Methods to pass in your own SSLContext and TrustMangers existed but there wasn't a way to add your own HostNameVerifier. AsyncSSLSocketWrapper was always using a StrictHostnameVerifier.

Changes:

- AsyncSSLSocketWrapper behavior changed so that it'll use user provided HostnameVerifier if present or revert to default behavior and use StrictHostnameVerifier if it's null.

- A public method to provide your own HostNameVerifier has been added to AsyncSSLSocketMiddleware.

- Constructor to AsyncSSLSocketMiddleware modified to include HostnameVerifier and call to this in AsyncHttpServer updated.